Skip to content

Commit 972deb4

Browse files
Shubhrajyoti DWolfram Sang
authored andcommitted
i2c: omap: Remove the OMAP_I2C_FLAG_RESET_REGS_POSTIDLE flag
The OMAP_I2C_FLAG_RESET_REGS_POSTIDLE is not used anymore in the i2c driver. Remove the flag. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
1 parent 60937b2 commit 972deb4

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

arch/arm/mach-omap2/omap_hwmod_33xx_data.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,7 @@ static struct omap_hwmod_class i2c_class = {
11031103
};
11041104

11051105
static struct omap_i2c_dev_attr i2c_dev_attr = {
1106-
.flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE |
1107-
OMAP_I2C_FLAG_RESET_REGS_POSTIDLE,
1106+
.flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
11081107
};
11091108

11101109
/* i2c1 */

arch/arm/mach-omap2/omap_hwmod_3xxx_data.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,7 @@ static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
791791
/* I2C1 */
792792
static struct omap_i2c_dev_attr i2c1_dev_attr = {
793793
.fifo_depth = 8, /* bytes */
794-
.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
795-
OMAP_I2C_FLAG_BUS_SHIFT_2,
794+
.flags = OMAP_I2C_FLAG_BUS_SHIFT_2,
796795
};
797796

798797
static struct omap_hwmod omap3xxx_i2c1_hwmod = {
@@ -817,8 +816,7 @@ static struct omap_hwmod omap3xxx_i2c1_hwmod = {
817816
/* I2C2 */
818817
static struct omap_i2c_dev_attr i2c2_dev_attr = {
819818
.fifo_depth = 8, /* bytes */
820-
.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
821-
OMAP_I2C_FLAG_BUS_SHIFT_2,
819+
.flags = OMAP_I2C_FLAG_BUS_SHIFT_2,
822820
};
823821

824822
static struct omap_hwmod omap3xxx_i2c2_hwmod = {
@@ -843,8 +841,7 @@ static struct omap_hwmod omap3xxx_i2c2_hwmod = {
843841
/* I2C3 */
844842
static struct omap_i2c_dev_attr i2c3_dev_attr = {
845843
.fifo_depth = 64, /* bytes */
846-
.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
847-
OMAP_I2C_FLAG_BUS_SHIFT_2,
844+
.flags = OMAP_I2C_FLAG_BUS_SHIFT_2,
848845
};
849846

850847
static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {

arch/arm/mach-omap2/omap_hwmod_44xx_data.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,8 +1526,7 @@ static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
15261526
};
15271527

15281528
static struct omap_i2c_dev_attr i2c_dev_attr = {
1529-
.flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE |
1530-
OMAP_I2C_FLAG_RESET_REGS_POSTIDLE,
1529+
.flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
15311530
};
15321531

15331532
/* i2c1 */

drivers/i2c/busses/i2c-omap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,7 @@ static const struct i2c_algorithm omap_i2c_algo = {
10381038
#ifdef CONFIG_OF
10391039
static struct omap_i2c_bus_platform_data omap3_pdata = {
10401040
.rev = OMAP_I2C_IP_VERSION_1,
1041-
.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
1042-
OMAP_I2C_FLAG_BUS_SHIFT_2,
1041+
.flags = OMAP_I2C_FLAG_BUS_SHIFT_2,
10431042
};
10441043

10451044
static struct omap_i2c_bus_platform_data omap4_pdata = {

include/linux/i2c-omap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#define OMAP_I2C_FLAG_NO_FIFO BIT(0)
2121
#define OMAP_I2C_FLAG_SIMPLE_CLOCK BIT(1)
2222
#define OMAP_I2C_FLAG_16BIT_DATA_REG BIT(2)
23-
#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE BIT(3)
2423
#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK BIT(5)
2524
#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK BIT(6)
2625
/* how the CPU address bus must be translated for I2C unit access */

0 commit comments

Comments
 (0)