public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Syed Mohammed, Khasim" <x0khasim@ti.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] I2C-1 init fix for 2430
Date: Mon, 11 Dec 2006 13:46:40 -0800	[thread overview]
Message-ID: <20061211214639.GJ6693@atomide.com> (raw)
In-Reply-To: <77C7F7CB1230A74A9D19C0C111E6EDBE0207EE14@DLEE09.ent.ti.com>

* 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

      reply	other threads:[~2006-12-11 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03 20:34 [PATCH] I2C-1 init fix for 2430 Syed Mohammed, Khasim
2006-12-11 21:46 ` Tony Lindgren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061211214639.GJ6693@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=x0khasim@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox