2 * Copyright (C) 2012 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef CONFIG_SOFT_I2C_I2C10_SCL
12 #define CONFIG_SOFT_I2C_I2C10_SCL 0
15 #ifndef CONFIG_SOFT_I2C_I2C10_SDA
16 #define CONFIG_SOFT_I2C_I2C10_SDA 0
19 /* Handle multiple I2C buses instances */
20 int get_multi_scl_pin(void)
22 unsigned int bus = i2c_get_bus_num();
26 return CONFIG_SOFT_I2C_I2C5_SCL;
28 return CONFIG_SOFT_I2C_I2C9_SCL;
30 return CONFIG_SOFT_I2C_I2C10_SCL;
32 printf("I2C_%d not supported!\n", bus);
38 int get_multi_sda_pin(void)
40 unsigned int bus = i2c_get_bus_num();
44 return CONFIG_SOFT_I2C_I2C5_SDA;
46 return CONFIG_SOFT_I2C_I2C9_SDA;
48 return CONFIG_SOFT_I2C_I2C10_SDA;
50 printf("I2C_%d not supported!\n", bus);
56 int multi_i2c_init(void)