From 64b130683cefc7642c8f05f210cbd92997fdeb35 Mon Sep 17 00:00:00 2001 From: Kiril Zyapkov Date: Sun, 26 Aug 2018 18:16:44 +0300 Subject: [PATCH] arch: arm: stm32l4: add missing I2C_3 to dts.fixup One can enable I2C_3 in kconfig and set status = "ok" in dts, but the driver expects to find the config as fixed up with this addition. Signed-off-by: Kiril Zyapkov --- arch/arm/soc/st_stm32/stm32l4/dts.fixup | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/soc/st_stm32/stm32l4/dts.fixup b/arch/arm/soc/st_stm32/stm32l4/dts.fixup index 426875190ce..20860f1e836 100644 --- a/arch/arm/soc/st_stm32/stm32l4/dts.fixup +++ b/arch/arm/soc/st_stm32/stm32l4/dts.fixup @@ -54,6 +54,14 @@ #define CONFIG_I2C_2_ERROR_IRQ ST_STM32_I2C_V2_40005800_IRQ_ERROR #define CONFIG_I2C_2_BITRATE ST_STM32_I2C_V2_40005800_CLOCK_FREQUENCY +#define CONFIG_I2C_3_BASE_ADDRESS ST_STM32_I2C_V2_40005C00_BASE_ADDRESS +#define CONFIG_I2C_3_EVENT_IRQ_PRI ST_STM32_I2C_V2_40005C00_IRQ_EVENT_PRIORITY +#define CONFIG_I2C_3_ERROR_IRQ_PRI ST_STM32_I2C_V2_40005C00_IRQ_ERROR_PRIORITY +#define CONFIG_I2C_3_NAME ST_STM32_I2C_V2_40005C00_LABEL +#define CONFIG_I2C_3_EVENT_IRQ ST_STM32_I2C_V2_40005C00_IRQ_EVENT +#define CONFIG_I2C_3_ERROR_IRQ ST_STM32_I2C_V2_40005C00_IRQ_ERROR +#define CONFIG_I2C_3_BITRATE ST_STM32_I2C_V2_40005C00_CLOCK_FREQUENCY + #define CONFIG_I2C_4_BASE_ADDRESS ST_STM32_I2C_V2_40008400_BASE_ADDRESS #define CONFIG_I2C_4_EVENT_IRQ_PRI ST_STM32_I2C_V2_40008400_IRQ_EVENT_PRIORITY #define CONFIG_I2C_4_ERROR_IRQ_PRI ST_STM32_I2C_V2_40008400_IRQ_ERROR_PRIORITY