Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Helper module for board specific I2C bus registration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2009 Nokia Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef __ARCH_ARM_MACH_OMAP1_I2C_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define __ARCH_ARM_MACH_OMAP1_I2C_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct i2c_board_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct omap_i2c_bus_platform_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) int omap_i2c_add_bus(struct omap_i2c_bus_platform_data *i2c_pdata,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 			int bus_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 				 struct i2c_board_info const *info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 				 unsigned len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern int omap_register_i2c_bus_cmdline(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static inline int omap_register_i2c_bus(int bus_id, u32 clkrate,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 				 struct i2c_board_info const *info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 				 unsigned len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) static inline int omap_register_i2c_bus_cmdline(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #endif /* __ARCH_ARM_MACH_OMAP1_I2C_H */