| * Copyright (C) 2012 Samsung Electronics |
| * Lukasz Majewski <l.majewski@samsung.com> |
| * SPDX-License-Identifier: GPL-2.0+ |
| #ifndef CONFIG_SOFT_I2C_I2C10_SCL |
| #define CONFIG_SOFT_I2C_I2C10_SCL 0 |
| #ifndef CONFIG_SOFT_I2C_I2C10_SDA |
| #define CONFIG_SOFT_I2C_I2C10_SDA 0 |
| /* Handle multiple I2C buses instances */ |
| int get_multi_scl_pin(void) |
| unsigned int bus = i2c_get_bus_num(); |
| return CONFIG_SOFT_I2C_I2C5_SCL; |
| return CONFIG_SOFT_I2C_I2C9_SCL; |
| return CONFIG_SOFT_I2C_I2C10_SCL; |
| printf("I2C_%d not supported!\n", bus); |
| int get_multi_sda_pin(void) |
| unsigned int bus = i2c_get_bus_num(); |
| return CONFIG_SOFT_I2C_I2C5_SDA; |
| return CONFIG_SOFT_I2C_I2C9_SDA; |
| return CONFIG_SOFT_I2C_I2C10_SDA; |
| printf("I2C_%d not supported!\n", bus); |