aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShubhrajyoti D <shubhrajyoti@ti.com>2012-11-05 07:23:39 -0500
committerWolfram Sang <w.sang@pengutronix.de>2012-11-14 11:44:40 -0500
commit2c88ab8c5af7d637d2a9d14b607fa6100fa64236 (patch)
treec3e538826b03ad2dd488a4dc45d750dd7fe70183
parentcd10c74aeea76e60ec5ab15357266b76d8e50df1 (diff)
ARM: i2c: omap: Remove the i207 errata flag
The commit [i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207] uses the revision id instead of the flag. So the flag can be safely removed. Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_2430_data.c3
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c9
-rw-r--r--drivers/i2c/busses/i2c-omap.c3
-rw-r--r--include/linux/i2c-omap.h1
4 files changed, 5 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
index c455e41b0237..b79ccf6efbe8 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
@@ -76,8 +76,7 @@ static struct omap_hwmod_class i2c_class = {
76 76
77static struct omap_i2c_dev_attr i2c_dev_attr = { 77static struct omap_i2c_dev_attr i2c_dev_attr = {
78 .fifo_depth = 8, /* bytes */ 78 .fifo_depth = 8, /* bytes */
79 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | 79 .flags = OMAP_I2C_FLAG_BUS_SHIFT_2 |
80 OMAP_I2C_FLAG_BUS_SHIFT_2 |
81 OMAP_I2C_FLAG_FORCE_19200_INT_CLK, 80 OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
82}; 81};
83 82
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index f67b7ee07dd4..943222c40489 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -791,8 +791,7 @@ static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
791/* I2C1 */ 791/* I2C1 */
792static struct omap_i2c_dev_attr i2c1_dev_attr = { 792static struct omap_i2c_dev_attr i2c1_dev_attr = {
793 .fifo_depth = 8, /* bytes */ 793 .fifo_depth = 8, /* bytes */
794 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | 794 .flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
795 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
796 OMAP_I2C_FLAG_BUS_SHIFT_2, 795 OMAP_I2C_FLAG_BUS_SHIFT_2,
797}; 796};
798 797
@@ -818,8 +817,7 @@ static struct omap_hwmod omap3xxx_i2c1_hwmod = {
818/* I2C2 */ 817/* I2C2 */
819static struct omap_i2c_dev_attr i2c2_dev_attr = { 818static struct omap_i2c_dev_attr i2c2_dev_attr = {
820 .fifo_depth = 8, /* bytes */ 819 .fifo_depth = 8, /* bytes */
821 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | 820 .flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
822 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
823 OMAP_I2C_FLAG_BUS_SHIFT_2, 821 OMAP_I2C_FLAG_BUS_SHIFT_2,
824}; 822};
825 823
@@ -845,8 +843,7 @@ static struct omap_hwmod omap3xxx_i2c2_hwmod = {
845/* I2C3 */ 843/* I2C3 */
846static struct omap_i2c_dev_attr i2c3_dev_attr = { 844static struct omap_i2c_dev_attr i2c3_dev_attr = {
847 .fifo_depth = 64, /* bytes */ 845 .fifo_depth = 64, /* bytes */
848 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | 846 .flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
849 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
850 OMAP_I2C_FLAG_BUS_SHIFT_2, 847 OMAP_I2C_FLAG_BUS_SHIFT_2,
851}; 848};
852 849
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 0ca50e71731b..11e645ab1e79 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1028,8 +1028,7 @@ static const struct i2c_algorithm omap_i2c_algo = {
1028#ifdef CONFIG_OF 1028#ifdef CONFIG_OF
1029static struct omap_i2c_bus_platform_data omap3_pdata = { 1029static struct omap_i2c_bus_platform_data omap3_pdata = {
1030 .rev = OMAP_I2C_IP_VERSION_1, 1030 .rev = OMAP_I2C_IP_VERSION_1,
1031 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | 1031 .flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1032 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1033 OMAP_I2C_FLAG_BUS_SHIFT_2, 1032 OMAP_I2C_FLAG_BUS_SHIFT_2,
1034}; 1033};
1035 1034
diff --git a/include/linux/i2c-omap.h b/include/linux/i2c-omap.h
index 92a0dc75bc74..1b25c04f82d9 100644
--- a/include/linux/i2c-omap.h
+++ b/include/linux/i2c-omap.h
@@ -21,7 +21,6 @@
21#define OMAP_I2C_FLAG_SIMPLE_CLOCK BIT(1) 21#define OMAP_I2C_FLAG_SIMPLE_CLOCK BIT(1)
22#define OMAP_I2C_FLAG_16BIT_DATA_REG BIT(2) 22#define OMAP_I2C_FLAG_16BIT_DATA_REG BIT(2)
23#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE BIT(3) 23#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE BIT(3)
24#define OMAP_I2C_FLAG_APPLY_ERRATA_I207 BIT(4)
25#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK BIT(5) 24#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK BIT(5)
26#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK BIT(6) 25#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK BIT(6)
27/* how the CPU address bus must be translated for I2C unit access */ 26/* how the CPU address bus must be translated for I2C unit access */