mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 14:00:19 +00:00 
			
		
		
		
	fsl: mxc: Drop legacy I2c
Drop some old code from the mxc_i2c and ddr/fsl drivers. This will allow removal of very old common I2C code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
		
							parent
							
								
									12d38c5a70
								
							
						
					
					
						commit
						98dfa70f84
					
				@ -111,7 +111,7 @@ static int ddr_i2c_read(DEV_TYPE *dev, unsigned int addr,
 | 
				
			|||||||
#if CONFIG_IS_ENABLED(DM_I2C)
 | 
					#if CONFIG_IS_ENABLED(DM_I2C)
 | 
				
			||||||
	ret = dm_i2c_read(dev, 0, buf, len);
 | 
						ret = dm_i2c_read(dev, 0, buf, len);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
	ret = i2c_read(dev->chip, addr, alen, buf, len);
 | 
						ret = 0;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return ret;
 | 
						return ret;
 | 
				
			||||||
@ -162,7 +162,6 @@ static void __get_spd(generic_spd_eeprom_t *spd, u8 i2c_address)
 | 
				
			|||||||
	};
 | 
						};
 | 
				
			||||||
	dev = &ldev;
 | 
						dev = &ldev;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	i2c_set_bus_num(CONFIG_SYS_SPD_BUS_NUM);
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CONFIG_SYS_FSL_DDR4
 | 
					#ifdef CONFIG_SYS_FSL_DDR4
 | 
				
			||||||
 | 
				
			|||||||
@ -620,6 +620,7 @@ int enable_i2c_clk(unsigned char enable, unsigned int i2c_num)
 | 
				
			|||||||
	__attribute__((weak, alias("__enable_i2c_clk")));
 | 
						__attribute__((weak, alias("__enable_i2c_clk")));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !CONFIG_IS_ENABLED(DM_I2C)
 | 
					#if !CONFIG_IS_ENABLED(DM_I2C)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Read data from I2C device
 | 
					 * Read data from I2C device
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user