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();
17 case I2C_0: /* I2C_0 definition - compatibility layer */
19 return CONFIG_SOFT_I2C_I2C5_SCL;
21 return CONFIG_SOFT_I2C_I2C9_SCL;
23 printf("I2C_%d not supported!\n", bus);
29 int get_multi_sda_pin(void)
31 unsigned int bus = I2C_GET_BUS();
34 case I2C_0: /* I2C_0 definition - compatibility layer */
36 return CONFIG_SOFT_I2C_I2C5_SDA;
38 return CONFIG_SOFT_I2C_I2C9_SDA;
40 printf("I2C_%d not supported!\n", bus);
46 int multi_i2c_init(void)