Patchwork [U-Boot,1/3] Add AT91SAM9G20 to list of AT91 processors in soft_i2c driver.

login
register
mail settings
Submitter Ryan Mallon
Date Jan. 25, 2011, 1:57 a.m.
Message ID <3407d3e0912e6291bce466d4dcb3fe42475492b2.1295919847.git.ryan@bluewatersys.com>
Download mbox | patch
Permalink /patch/80300/
State Superseded
Delegated to: Reinhard Meyer
Headers show

Comments

Ryan Mallon - Jan. 25, 2011, 1:57 a.m.
Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
---
 drivers/i2c/soft_i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Reinhard Meyer - Jan. 25, 2011, 4:23 a.m.
Dear Ryan Mallon,
> Signed-off-by: Ryan Mallon<ryan@bluewatersys.com>
> ---
>   drivers/i2c/soft_i2c.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c
> index 1a1809a..0a21d02 100644
> --- a/drivers/i2c/soft_i2c.c
> +++ b/drivers/i2c/soft_i2c.c
> @@ -32,7 +32,7 @@
>   #endif
>   #if defined(CONFIG_AT91RM9200) || \
>   	defined(CONFIG_AT91SAM9260) ||  defined(CONFIG_AT91SAM9261) || \
> -	defined(CONFIG_AT91SAM9263)
> +	defined(CONFIG_AT91SAM9263) ||  defined(CONFIG_AT91SAM9G20)

Please replace those individual AT91SAM9* SoC names by a simple
#if defined(CONFIG_AT91FAMILY) || defined(CONFIG_AT91RM9200)
Sorry that this list has escaped detection so far.
*RM9200 is still needed extra, because it has not yet become a member
of AT91FAMILY.

Best Regards,
Reinhard

Patch

diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c
index 1a1809a..0a21d02 100644
--- a/drivers/i2c/soft_i2c.c
+++ b/drivers/i2c/soft_i2c.c
@@ -32,7 +32,7 @@ 
 #endif
 #if defined(CONFIG_AT91RM9200) || \
 	defined(CONFIG_AT91SAM9260) ||  defined(CONFIG_AT91SAM9261) || \
-	defined(CONFIG_AT91SAM9263)
+	defined(CONFIG_AT91SAM9263) ||  defined(CONFIG_AT91SAM9G20)
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pio.h>