Commit 1d8f71e7 authored by Syed Mohammed Khasim's avatar Syed Mohammed Khasim Committed by Tony Lindgren

ARM: OMAP: I2C-1 init fix for 2430

I2C-1 for 2430 was commented previously, enabled in this patch.
Signed-off-by: default avatarSyed Mohammed Khasim <x0khasim@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5926ef23
...@@ -136,8 +136,10 @@ static void omap_init_i2c(void) ...@@ -136,8 +136,10 @@ static void omap_init_i2c(void)
* it can include clocking and address info, maybe more. * it can include clocking and address info, maybe more.
*/ */
if (cpu_is_omap24xx()) { if (cpu_is_omap24xx()) {
omap_cfg_reg(M19_24XX_I2C1_SCL); if (machine_is_omap_h4()) {
omap_cfg_reg(L15_24XX_I2C1_SDA); omap_cfg_reg(M19_24XX_I2C1_SCL);
omap_cfg_reg(L15_24XX_I2C1_SDA);
}
} else { } else {
omap_cfg_reg(I2C_SCL); omap_cfg_reg(I2C_SCL);
omap_cfg_reg(I2C_SDA); omap_cfg_reg(I2C_SDA);
...@@ -501,13 +503,13 @@ static int __init omap_init_devices(void) ...@@ -501,13 +503,13 @@ static int __init omap_init_devices(void)
* in alphabetical order so they're easier to sort through. * in alphabetical order so they're easier to sort through.
*/ */
omap_init_dsp(); omap_init_dsp();
omap_init_i2c();
omap_init_kp(); omap_init_kp();
omap_init_mmc(); omap_init_mmc();
omap_init_uwire(); omap_init_uwire();
omap_init_wdt(); omap_init_wdt();
omap_init_rng(); omap_init_rng();
#endif #endif
omap_init_i2c();
return 0; return 0;
} }
arch_initcall(omap_init_devices); arch_initcall(omap_init_devices);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment