Patchwork [U-Boot,06/11] edminiv2: add I2C support using mvtwsi driver

login
register
mail settings
Submitter Rogan Dawes
Date March 18, 2011, 8:04 a.m.
Message ID <1300435500-4909-7-git-send-email-rogan@dawes.za.net>
Download mbox | patch
Permalink /patch/87494/
State Changes Requested
Headers show

Comments

Rogan Dawes - March 18, 2011, 8:04 a.m.
From: Albert Aribaud <albert.aribaud@free.fr>

Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
---
 include/configs/edminiv2.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Prafulla Wadaskar - March 18, 2011, 10:57 a.m.
> -----Original Message-----
> From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces@lists.denx.de]
> On Behalf Of rogan@dawes.za.net
> Sent: Friday, March 18, 2011 1:35 PM
> To: u-boot@lists.denx.de
> Subject: [U-Boot] [PATCH 06/11] edminiv2: add I2C support using mvtwsi
> driver
> 
> From: Albert Aribaud <albert.aribaud@free.fr>
> 
> Signed-off-by: Albert Aribaud <albert.aribaud@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

Pls defind _CMD_I2C above with other enabled commands and #ifdefed this stuff in it.

Regards..
Prafulla . .
Rogan Dawes - March 18, 2011, 11:16 a.m.
On 2011/03/18 12:57 PM, Prafulla Wadaskar wrote:
> 
> 
>> -----Original Message-----
>> From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces@lists.denx.de]
>> On Behalf Of rogan@dawes.za.net
>> Sent: Friday, March 18, 2011 1:35 PM
>> To: u-boot@lists.denx.de
>> Subject: [U-Boot] [PATCH 06/11] edminiv2: add I2C support using mvtwsi
>> driver
>>
>> From: Albert Aribaud <albert.aribaud@free.fr>
>>
>> Signed-off-by: Albert Aribaud <albert.aribaud@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
> 
> Pls defind _CMD_I2C above with other enabled commands and #ifdefed this stuff in it.
> 
> Regards..
> Prafulla . .

Hi Prafulla,

I only posted this series to have a record of a working config in the
archives. This patch is against 2010.06-something, and is not intended
for applying.

Sorry, I should have made it more clear in the individual patches.

Rogan

Patch

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
+
+/*
  *  Environment variables configurations
  */
 #define CONFIG_ENV_IS_IN_FLASH		1