1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Helper module for board specific I2C bus registration
5 * Copyright (C) 2009 Nokia Corporation.
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
,
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
,
21 extern int omap_register_i2c_bus_cmdline(void);
23 static inline int omap_register_i2c_bus(int bus_id
, u32 clkrate
,
24 struct i2c_board_info
const *info
,
30 static inline int omap_register_i2c_bus_cmdline(void)
36 #endif /* __ARCH_ARM_MACH_OMAP1_I2C_H */