2 * Copyright (C) 2012 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 /* Handle multiple I2C buses instances */
12 int get_multi_scl_pin(void)
14 unsigned int bus = i2c_get_bus_num();
18 return CONFIG_SOFT_I2C_I2C5_SCL;
20 return CONFIG_SOFT_I2C_I2C9_SCL;
22 printf("I2C_%d not supported!\n", bus);
28 int get_multi_sda_pin(void)
30 unsigned int bus = i2c_get_bus_num();
34 return CONFIG_SOFT_I2C_I2C5_SDA;
36 return CONFIG_SOFT_I2C_I2C9_SDA;
38 printf("I2C_%d not supported!\n", bus);
44 int multi_i2c_init(void)