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 <wenping.zhang@rock-chips.com>
This commit is contained in:
Wenping Zhang 2017-10-20 09:19:01 +08:00 committed by Kever Yang
parent fe83bbf40d
commit 4a872f4aa8
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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;