mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			738 B
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			738 B
		
	
	
	
		
			Diff
		
	
	
| diff -drupN a/tools/pm-sleep/include/i2c-gpio.h b/tools/pm-sleep/include/i2c-gpio.h
 | |
| --- a/tools/pm-sleep/include/i2c-gpio.h	1970-01-01 03:00:00.000000000 +0300
 | |
| +++ b/tools/pm-sleep/include/i2c-gpio.h	2022-06-09 05:02:37.000000000 +0300
 | |
| @@ -0,0 +1,19 @@
 | |
| +#ifndef __I2C_GPIO_H
 | |
| +#define __I2C_GPIO_H
 | |
| +
 | |
| +struct i2c_gpio {
 | |
| +	unsigned int scl;
 | |
| +	unsigned int sda;
 | |
| +};
 | |
| +
 | |
| +void i2c_init(struct i2c_gpio *i2c);
 | |
| +
 | |
| +int  i2c_write(struct i2c_gpio *i2c,unsigned char chip,
 | |
| +		unsigned int addr, int alen, unsigned char *buffer, int len);
 | |
| +
 | |
| +int  i2c_read(struct i2c_gpio *i2c,unsigned char chip,
 | |
| +		unsigned int addr, int alen, unsigned char *buffer, int len);
 | |
| +
 | |
| +int i2c_probe(struct i2c_gpio *i2c, unsigned char addr);
 | |
| +
 | |
| +#endif /* __I2C_GPIO_H */
 |