[U-Boot] [PATCH V3 4/4] edminiv2: add I2C support using mvtwsi driver

Prafulla Wadaskar prafulla at marvell.com
Fri Aug 27 14:20:45 CEST 2010


 

> -----Original Message-----
> From: u-boot-bounces at lists.denx.de 
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert Aribaud
> Sent: Friday, August 27, 2010 11:42 AM
> To: u-boot at lists.denx.de
> Subject: [U-Boot] [PATCH V3 4/4] edminiv2: add I2C support 
> using mvtwsi driver
> 
> 
> Signed-off-by: Albert Aribaud <albert.aribaud at free.fr>
> ---
>  include/configs/edminiv2.h |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/include/configs/edminiv2.h b/include/configs/edminiv2.h
> index 57dd165..36ed392 100644
> --- a/include/configs/edminiv2.h
> +++ b/include/configs/edminiv2.h
> @@ -182,6 +182,15 @@
>  #endif /* CMD_IDE */
>  
>  /*
> + * I2C related stuff
> + */
> +#define CONFIG_I2C_DRIVER_MVTWSI
> +#define CONFIG_I2C_MVTWSI_BASE		ORION5X_TWSI_BASE
> +#define CONFIG_SYS_I2C_SLAVE		0x0
> +#define CONFIG_SYS_I2C_SPEED		100000
> +#define CONFIG_CMD_I2C

Can you pls encapsulate this in #ifdef CONFIG_CMD_I2C ?

Regards..
Prafulla . .

> +
> +/*
>   *  Environment variables configurations
>   */
>  #define CONFIG_ENV_IS_IN_FLASH		1
> -- 
> 1.7.1
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 


More information about the U-Boot mailing list