1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| static const struct stm32_i2c_data stm32f7_data = { .fmp_clr_offset = 0x00, };
static const struct stm32_i2c_data stm32mp15_data = { .fmp_clr_offset = 0x40, };
static const struct stm32_i2c_data stm32mp13_data = { .fmp_clr_offset = 0x4, };
static const struct udevice_id stm32_i2c_of_match[] = { { .compatible = "st,stm32f7-i2c", .data = (ulong)&stm32f7_data }, { .compatible = "st,stm32mp15-i2c", .data = (ulong)&stm32mp15_data }, { .compatible = "st,stm32mp13-i2c", .data = (ulong)&stm32mp13_data }, {} };
U_BOOT_DRIVER(stm32f7_i2c) = { .name = "stm32f7-i2c", .id = UCLASS_I2C, .of_match = stm32_i2c_of_match, .of_to_plat = stm32_of_to_plat, .probe = stm32_i2c_probe, .priv_auto = sizeof(struct stm32_i2c_priv), .ops = &stm32_i2c_ops, };
|