From ae89d40ab672e2391c7ad061feed843eea6d0aec Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 May 2011 18:29:47 +0800 Subject: [PATCH] add ddr init for A22 --- arch/arm/mach-rk29/board-rk29-a22.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk29/board-rk29-a22.c b/arch/arm/mach-rk29/board-rk29-a22.c index ae26d3f86ecd..e08a6b3bc563 100644 --- a/arch/arm/mach-rk29/board-rk29-a22.c +++ b/arch/arm/mach-rk29/board-rk29-a22.c @@ -43,6 +43,7 @@ #include /* ddl@rock-chips.com : camera support */ #include #include +#include #include #include @@ -1590,7 +1591,7 @@ static struct i2c_board_info __initdata board_i2c0_devices[] = { #endif #if defined (CONFIG_COMPASS_MMC328X) { - .type = "mmc3280", + .type = "mmc328x", .addr = 0x30, .flags = I2C_M_NEED_DELAY, .udelay = 100, @@ -3154,6 +3155,7 @@ static void __init machine_rk29_mapio(void) rk29_sram_init(); rk29_clock_init(periph_pll_288mhz); rk29_iomux_init(); + ddr_init(DDR_TYPE, DDR_FREQ); } MACHINE_START(RK29, "RK29board") -- 2.34.1