* [PATCH] I2C-1 init fix for 2430
@ 2006-12-03 20:34 Syed Mohammed, Khasim
2006-12-11 21:46 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Syed Mohammed, Khasim @ 2006-12-03 20:34 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 100 bytes --]
Hi,
The attached patch fixes/enables the I2C-1 for OMAP2430.
Regards,
Khasim
[-- Attachment #2: 2430_i2cinit_fix.patch --]
[-- Type: application/octet-stream, Size: 1276 bytes --]
I2C-1 for 2430 was commented previously, enabled in this patch.
Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Files Changed:
devices.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
=============================================================================
diff -purN linux-omap/arch/arm/plat-omap/devices.c devpt_branch/arch/arm/plat-omap/devices.c
--- linux-omap/arch/arm/plat-omap/devices.c 2006-11-28 09:59:29.000000000 -0600
+++ devpt_branch/arch/arm/plat-omap/devices.c 2006-12-03 11:53:40.000000000 -0600
@@ -136,8 +136,10 @@ static void omap_init_i2c(void)
* it can include clocking and address info, maybe more.
*/
if (cpu_is_omap24xx()) {
- omap_cfg_reg(M19_24XX_I2C1_SCL);
- omap_cfg_reg(L15_24XX_I2C1_SDA);
+ if(machine_is_omap_h4()){
+ omap_cfg_reg(M19_24XX_I2C1_SCL);
+ omap_cfg_reg(L15_24XX_I2C1_SDA);
+ }
} else {
omap_cfg_reg(I2C_SCL);
omap_cfg_reg(I2C_SDA);
@@ -501,13 +503,13 @@ static int __init omap_init_devices(void
* in alphabetical order so they're easier to sort through.
*/
omap_init_dsp();
- omap_init_i2c();
omap_init_kp();
omap_init_mmc();
omap_init_uwire();
omap_init_wdt();
omap_init_rng();
#endif
+ omap_init_i2c();
return 0;
}
arch_initcall(omap_init_devices);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] I2C-1 init fix for 2430
2006-12-03 20:34 [PATCH] I2C-1 init fix for 2430 Syed Mohammed, Khasim
@ 2006-12-11 21:46 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2006-12-11 21:46 UTC (permalink / raw)
To: Syed Mohammed, Khasim; +Cc: linux-omap-open-source
* Syed Mohammed, Khasim <x0khasim@ti.com> [061203 12:35]:
> Hi,
>
>
>
> The attached patch fixes/enables the I2C-1 for OMAP2430.
>
>
>
> Regards,
>
> Khasim
>
Content-Description: 2430_i2cinit_fix.patch
> I2C-1 for 2430 was commented previously, enabled in this patch.
>
> Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
>
> Files Changed:
> devices.c | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
> =============================================================================
> diff -purN linux-omap/arch/arm/plat-omap/devices.c devpt_branch/arch/arm/plat-omap/devices.c
> --- linux-omap/arch/arm/plat-omap/devices.c 2006-11-28 09:59:29.000000000 -0600
> +++ devpt_branch/arch/arm/plat-omap/devices.c 2006-12-03 11:53:40.000000000 -0600
> @@ -136,8 +136,10 @@ static void omap_init_i2c(void)
> * it can include clocking and address info, maybe more.
> */
> if (cpu_is_omap24xx()) {
> - omap_cfg_reg(M19_24XX_I2C1_SCL);
> - omap_cfg_reg(L15_24XX_I2C1_SDA);
> + if(machine_is_omap_h4()){
> + omap_cfg_reg(M19_24XX_I2C1_SCL);
> + omap_cfg_reg(L15_24XX_I2C1_SDA);
> + }
> } else {
> omap_cfg_reg(I2C_SCL);
> omap_cfg_reg(I2C_SDA);
> @@ -501,13 +503,13 @@ static int __init omap_init_devices(void
> * in alphabetical order so they're easier to sort through.
> */
> omap_init_dsp();
> - omap_init_i2c();
> omap_init_kp();
> omap_init_mmc();
> omap_init_uwire();
> omap_init_wdt();
> omap_init_rng();
> #endif
> + omap_init_i2c();
> return 0;
> }
> arch_initcall(omap_init_devices);
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-11 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-03 20:34 [PATCH] I2C-1 init fix for 2430 Syed Mohammed, Khasim
2006-12-11 21:46 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox