mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-30 18:05:48 +01:00 
			
		
		
		
	This allows the driver to be used without OF_CONTROL. AM335x support DM_SPL but does not use SPL_OF_CONTROL. Enabling DM_I2C in SPL thus requires that the omap I2C can be passed platdata. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
		
			
				
	
	
		
			25 lines
		
	
	
		
			369 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			369 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| 
 | |
| #ifndef _OMAP_I2C_H
 | |
| #define _OMAP_I2C_H
 | |
| 
 | |
| #include <asm/arch/cpu.h>
 | |
| 
 | |
| #ifdef CONFIG_DM_I2C
 | |
| 
 | |
| /* Information about a GPIO bank */
 | |
| struct omap_i2c_platdata {
 | |
| 	ulong base;	/* address of registers in physical memory */
 | |
| 	int speed;
 | |
| 	int ip_rev;
 | |
| };
 | |
| 
 | |
| #endif
 | |
| 
 | |
| enum {
 | |
| 	OMAP_I2C_REV_V1 = 0,
 | |
| 	OMAP_I2C_REV_V2 = 1,
 | |
| };
 | |
| 
 | |
| #endif /* _OMAP_I2C_H */
 |