Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / mach-omap1 / i2c.h
blob03e2ac2efe50fc9f9ad85e2f09825f1bb9ab0ca4
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Helper module for board specific I2C bus registration
5 * Copyright (C) 2009 Nokia Corporation.
6 */
8 #ifndef __ARCH_ARM_MACH_OMAP1_I2C_H
9 #define __ARCH_ARM_MACH_OMAP1_I2C_H
11 struct i2c_board_info;
12 struct omap_i2c_bus_platform_data;
14 int omap_i2c_add_bus(struct omap_i2c_bus_platform_data *i2c_pdata,
15 int bus_id);
17 #if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE)
18 extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
19 struct i2c_board_info const *info,
20 unsigned len);
21 extern int omap_register_i2c_bus_cmdline(void);
22 #else
23 static inline int omap_register_i2c_bus(int bus_id, u32 clkrate,
24 struct i2c_board_info const *info,
25 unsigned len)
27 return 0;
30 static inline int omap_register_i2c_bus_cmdline(void)
32 return 0;
34 #endif
36 #endif /* __ARCH_ARM_MACH_OMAP1_I2C_H */