]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
I2C: OMAP1: set IP revision in platform data
authorAndy Green <andy@warmcat.com>
Mon, 30 May 2011 14:43:06 +0000 (07:43 -0700)
committerBen Dooks <ben-linux@fluff.org>
Sat, 29 Oct 2011 08:37:07 +0000 (09:37 +0100)
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>
arch/arm/plat-omap/i2c.c

index 3341ca4703e9c29f1cffadc6d431df8f6fef5ca6..a938df0908a2a0dcbbb1f3b6ec1f398cfc4fc068 100644 (file)
@@ -108,6 +108,9 @@ static inline int omap1_i2c_add_bus(int bus_id)
        res[1].start = INT_I2C;
        pdata = &i2c_pdata[bus_id - 1];
 
+       /* all OMAP1 have IP version 1 register set */
+       pdata->rev = OMAP_I2C_IP_VERSION_1;
+
        return platform_device_register(pdev);
 }