@@ -65,6 +65,12 @@ static const struct cgbc_i2c_platform_data cgbc_i2c_ddc0_pdata = {
.cgbc_bus_id = 4,
};
+static const struct cgbc_i2c_platform_data cgbc_i2c_i2cv_pdata = {
+ .name = "cgbc-i2cv",
+ .cgbc_bus_id = 3,
+ .fixed_freq = true,
+};
+
static const struct mfd_cell cgbc_devs[] = {
MFD_CELL_NAME("cgbc-backlight"),
MFD_CELL_NAME("cgbc-gpio"),
@@ -79,6 +85,11 @@ static const struct mfd_cell cgbc_devs[] = {
.platform_data = &cgbc_i2c_ddc0_pdata,
.pdata_size = sizeof(cgbc_i2c_ddc0_pdata),
},
+ {
+ .name = "cgbc-i2c",
+ .platform_data = &cgbc_i2c_i2cv_pdata,
+ .pdata_size = sizeof(cgbc_i2c_i2cv_pdata),
+ },
MFD_CELL_NAME("cgbc-wdt"),
};
Internally the Board Controller has a virtual I2C bus with some virtual storage devices (EEPROM and RAM). So add a new I2C cell for this I2C virtual bus. Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@bootlin.com> --- drivers/mfd/cgbc-core.c | 11 +++++++++++ 1 file changed, 11 insertions(+)