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>
This commit is contained in:
		
					parent
					
						
							
								cd10c74aee
							
						
					
				
			
			
				commit
				
					
						2c88ab8c5a
					
				
			
		
					 4 changed files with 5 additions and 11 deletions
				
			
		| 
						 | 
					@ -76,8 +76,7 @@ static struct omap_hwmod_class i2c_class = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct omap_i2c_dev_attr i2c_dev_attr = {
 | 
					static struct omap_i2c_dev_attr i2c_dev_attr = {
 | 
				
			||||||
	.fifo_depth	= 8, /* bytes */
 | 
						.fifo_depth	= 8, /* bytes */
 | 
				
			||||||
	.flags		= OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
 | 
						.flags		= OMAP_I2C_FLAG_BUS_SHIFT_2 |
 | 
				
			||||||
			  OMAP_I2C_FLAG_BUS_SHIFT_2 |
 | 
					 | 
				
			||||||
			  OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
 | 
								  OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -791,8 +791,7 @@ static struct omap_hwmod omap3xxx_dss_venc_hwmod = {
 | 
				
			||||||
/* I2C1 */
 | 
					/* I2C1 */
 | 
				
			||||||
static struct omap_i2c_dev_attr i2c1_dev_attr = {
 | 
					static struct omap_i2c_dev_attr i2c1_dev_attr = {
 | 
				
			||||||
	.fifo_depth	= 8, /* bytes */
 | 
						.fifo_depth	= 8, /* bytes */
 | 
				
			||||||
	.flags		= OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
 | 
						.flags		= OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
				
			||||||
			  OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
					 | 
				
			||||||
			  OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
								  OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -818,8 +817,7 @@ static struct omap_hwmod omap3xxx_i2c1_hwmod = {
 | 
				
			||||||
/* I2C2 */
 | 
					/* I2C2 */
 | 
				
			||||||
static struct omap_i2c_dev_attr i2c2_dev_attr = {
 | 
					static struct omap_i2c_dev_attr i2c2_dev_attr = {
 | 
				
			||||||
	.fifo_depth	= 8, /* bytes */
 | 
						.fifo_depth	= 8, /* bytes */
 | 
				
			||||||
	.flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
 | 
						.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
				
			||||||
		 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
					 | 
				
			||||||
		 OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
							 OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -845,8 +843,7 @@ static struct omap_hwmod omap3xxx_i2c2_hwmod = {
 | 
				
			||||||
/* I2C3 */
 | 
					/* I2C3 */
 | 
				
			||||||
static struct omap_i2c_dev_attr i2c3_dev_attr = {
 | 
					static struct omap_i2c_dev_attr i2c3_dev_attr = {
 | 
				
			||||||
	.fifo_depth	= 64, /* bytes */
 | 
						.fifo_depth	= 64, /* bytes */
 | 
				
			||||||
	.flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
 | 
						.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
				
			||||||
		 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
					 | 
				
			||||||
		 OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
							 OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1028,8 +1028,7 @@ static const struct i2c_algorithm omap_i2c_algo = {
 | 
				
			||||||
#ifdef CONFIG_OF
 | 
					#ifdef CONFIG_OF
 | 
				
			||||||
static struct omap_i2c_bus_platform_data omap3_pdata = {
 | 
					static struct omap_i2c_bus_platform_data omap3_pdata = {
 | 
				
			||||||
	.rev = OMAP_I2C_IP_VERSION_1,
 | 
						.rev = OMAP_I2C_IP_VERSION_1,
 | 
				
			||||||
	.flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
 | 
						.flags = OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
				
			||||||
		 OMAP_I2C_FLAG_RESET_REGS_POSTIDLE |
 | 
					 | 
				
			||||||
		 OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
							 OMAP_I2C_FLAG_BUS_SHIFT_2,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,6 @@
 | 
				
			||||||
#define OMAP_I2C_FLAG_SIMPLE_CLOCK		BIT(1)
 | 
					#define OMAP_I2C_FLAG_SIMPLE_CLOCK		BIT(1)
 | 
				
			||||||
#define OMAP_I2C_FLAG_16BIT_DATA_REG		BIT(2)
 | 
					#define OMAP_I2C_FLAG_16BIT_DATA_REG		BIT(2)
 | 
				
			||||||
#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE	BIT(3)
 | 
					#define OMAP_I2C_FLAG_RESET_REGS_POSTIDLE	BIT(3)
 | 
				
			||||||
#define OMAP_I2C_FLAG_APPLY_ERRATA_I207	BIT(4)
 | 
					 | 
				
			||||||
#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK	BIT(5)
 | 
					#define OMAP_I2C_FLAG_ALWAYS_ARMXOR_CLK	BIT(5)
 | 
				
			||||||
#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK	BIT(6)
 | 
					#define OMAP_I2C_FLAG_FORCE_19200_INT_CLK	BIT(6)
 | 
				
			||||||
/* how the CPU address bus must be translated for I2C unit access */
 | 
					/* how the CPU address bus must be translated for I2C unit access */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue