diff options
author | Andy Green <andy@warmcat.com> | 2011-05-30 10:43:06 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2011-10-29 04:37:07 -0400 |
commit | 67b90c67205149173dc0cfdc46039be92fa390b6 (patch) | |
tree | c94401530840404c1f5ea44135081f947a5e4393 /arch/arm/plat-omap/i2c.c | |
parent | 5c825ee202d0891269e29197d5b21f8e2be3498a (diff) |
I2C: OMAP1: set IP revision in platform data
All OMAP1 are using "IP revision 1" in terms of register
layout. We set this information in omap1_i2c_add_bus() so
we don't have to use cpu_is_xxx() any more in the omap i2c
driver.
Cc: patches@linaro.org
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/i2c.c')
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 3341ca4703e9..a938df0908a2 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -108,6 +108,9 @@ static inline int omap1_i2c_add_bus(int bus_id) | |||
108 | res[1].start = INT_I2C; | 108 | res[1].start = INT_I2C; |
109 | pdata = &i2c_pdata[bus_id - 1]; | 109 | pdata = &i2c_pdata[bus_id - 1]; |
110 | 110 | ||
111 | /* all OMAP1 have IP version 1 register set */ | ||
112 | pdata->rev = OMAP_I2C_IP_VERSION_1; | ||
113 | |||
111 | return platform_device_register(pdev); | 114 | return platform_device_register(pdev); |
112 | } | 115 | } |
113 | 116 | ||