mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 07:02:06 +00:00 
			
		
		
		
	 18f98b1e31
			
		
	
	
		18f98b1e31
		
	
	
	
	
		
			
			The following patch adds support for the OpenCores I2C controller IP core (See http://www.opencores.org/projects.cgi/web/i2c/overview). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
		
			
				
	
	
		
			20 lines
		
	
	
		
			518 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			518 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * i2c-ocores.h - definitions for the i2c-ocores interface
 | |
|  *
 | |
|  * Peter Korsgaard <jacmet@sunsite.dk>
 | |
|  *
 | |
|  * This file is licensed under the terms of the GNU General Public License
 | |
|  * version 2.  This program is licensed "as is" without any warranty of any
 | |
|  * kind, whether express or implied.
 | |
|  */
 | |
| 
 | |
| #ifndef _LINUX_I2C_OCORES_H
 | |
| #define _LINUX_I2C_OCORES_H
 | |
| 
 | |
| struct ocores_i2c_platform_data {
 | |
| 	u32 regstep;   /* distance between registers */
 | |
| 	u32 clock_khz; /* input clock in kHz */
 | |
| };
 | |
| 
 | |
| #endif /* _LINUX_I2C_OCORES_H */
 |