aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2011-07-10 07:27:16 -0400
committerPaul Walmsley <paul@pwsan.com>2011-07-10 07:27:16 -0400
commit4d4441a6221ca3a30290045b7b696e5134646449 (patch)
treee500cd69a55ada19ead4d556e6402e3557644d21 /arch/arm/mach-omap2/omap_hwmod_44xx_data.c
parentdb791a75299bb6212ec984bdbe4ab581dbc07902 (diff)
I2C: OMAP2+: add correct functionality flags to all omap2plus i2c dev_attr
This adds the new functionality flags for omap i2c unit to all OMAP2 hwmod definitions Cc: patches@linaro.org Cc: Ben Dooks <ben-linux@fluff.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> Signed-off-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_44xx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_44xx_data.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index 1bed3b81d981..55331df4e452 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -27,6 +27,7 @@
27#include <plat/mcspi.h> 27#include <plat/mcspi.h>
28#include <plat/mcbsp.h> 28#include <plat/mcbsp.h>
29#include <plat/mmc.h> 29#include <plat/mmc.h>
30#include <plat/i2c.h>
30 31
31#include "omap_hwmod_common_data.h" 32#include "omap_hwmod_common_data.h"
32 33
@@ -2163,6 +2164,10 @@ static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
2163 .rev = OMAP_I2C_IP_VERSION_2, 2164 .rev = OMAP_I2C_IP_VERSION_2,
2164}; 2165};
2165 2166
2167static struct omap_i2c_dev_attr i2c_dev_attr = {
2168 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
2169};
2170
2166/* i2c1 */ 2171/* i2c1 */
2167static struct omap_hwmod omap44xx_i2c1_hwmod; 2172static struct omap_hwmod omap44xx_i2c1_hwmod;
2168static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = { 2173static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
@@ -2213,6 +2218,7 @@ static struct omap_hwmod omap44xx_i2c1_hwmod = {
2213 }, 2218 },
2214 .slaves = omap44xx_i2c1_slaves, 2219 .slaves = omap44xx_i2c1_slaves,
2215 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves), 2220 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2221 .dev_attr = &i2c_dev_attr,
2216 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), 2222 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2217}; 2223};
2218 2224
@@ -2266,6 +2272,7 @@ static struct omap_hwmod omap44xx_i2c2_hwmod = {
2266 }, 2272 },
2267 .slaves = omap44xx_i2c2_slaves, 2273 .slaves = omap44xx_i2c2_slaves,
2268 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves), 2274 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2275 .dev_attr = &i2c_dev_attr,
2269 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), 2276 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2270}; 2277};
2271 2278
@@ -2319,6 +2326,7 @@ static struct omap_hwmod omap44xx_i2c3_hwmod = {
2319 }, 2326 },
2320 .slaves = omap44xx_i2c3_slaves, 2327 .slaves = omap44xx_i2c3_slaves,
2321 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves), 2328 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2329 .dev_attr = &i2c_dev_attr,
2322 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), 2330 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2323}; 2331};
2324 2332
@@ -2372,6 +2380,7 @@ static struct omap_hwmod omap44xx_i2c4_hwmod = {
2372 }, 2380 },
2373 .slaves = omap44xx_i2c4_slaves, 2381 .slaves = omap44xx_i2c4_slaves,
2374 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves), 2382 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2383 .dev_attr = &i2c_dev_attr,
2375 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), 2384 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2376}; 2385};
2377 2386