From 4a872f4aa8369cafafa5dca780687b8552a7b5cb Mon Sep 17 00:00:00 2001 From: Wenping Zhang Date: Fri, 20 Oct 2017 09:19:01 +0800 Subject: [PATCH] rockchip: rk322x: speed up the emmc and the cpu. increase the cpu frequence to 816M, and enable mmc ddr mode for emmc. Change-Id: I93d6b3c625c73d5e75accfb26559930dd299e0e9 Signed-off-by: Wenping Zhang --- arch/arm/include/asm/arch-rockchip/cru_rk322x.h | 6 +++--- drivers/mmc/rockchip_dw_mmc.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk322x.h b/arch/arm/include/asm/arch-rockchip/cru_rk322x.h index a7999ca5af..c93609d5ce 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rk322x.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rk322x.h @@ -11,11 +11,11 @@ #define MHz 1000000 #define OSC_HZ (24 * MHz) -#define APLL_HZ (600 * MHz) +#define APLL_HZ (816 * MHz) #define GPLL_HZ (594 * MHz) -#define CORE_PERI_HZ 150000000 -#define CORE_ACLK_HZ 300000000 +#define CORE_PERI_HZ 204000000 +#define CORE_ACLK_HZ 408000000 #define BUS_ACLK_HZ 148500000 #define BUS_HCLK_HZ 148500000 diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index 250e6c8833..20c083db63 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -277,6 +277,7 @@ static int rockchip_dwmmc_probe(struct udevice *dev) } #endif dwmci_setup_cfg(&plat->cfg, host, priv->minmax[1], priv->minmax[0]); + plat->cfg.host_caps |= MMC_MODE_DDR_52MHz; host->mmc = &plat->mmc; host->mmc->priv = &priv->host; host->mmc->dev = dev;