Enable CONFIG_I2C only if needed (e.g. for OLED or EEPROM)

This commit is contained in:
Martin Jäger
2021-02-28 11:04:42 +01:00
parent f8d7b25648
commit 98c1daa865
4 changed files with 2 additions and 4 deletions
@@ -30,10 +30,9 @@ CONFIG_CLOCK_STM32_PLL_MULTIPLIER=6
CONFIG_CLOCK_STM32_AHB_PRESCALER=1
CONFIG_CLOCK_STM32_APB1_PRESCALER=1
CONFIG_I2C=y
CONFIG_CAN=y
CONFIG_THINGSET_CAN=y
CONFIG_I2C=y
CONFIG_EEPROM=y
CONFIG_EEPROM_AT24=y
@@ -57,7 +57,6 @@ CONFIG_UART_CONSOLE=y
CONFIG_ARM_MPU=y
CONFIG_I2C=y
CONFIG_I2C_1=y
CONFIG_EEPROM=y
CONFIG_EEPROM_AT24=y
+1
View File
@@ -314,6 +314,7 @@ endmenu # Charge controller setup
menu "UEXT port"
config EXT_OLED_DISPLAY
select I2C
bool "OLED display"
config EXT_OLED_BRIGHTNESS
-1
View File
@@ -21,7 +21,6 @@ CONFIG_HWINFO=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_I2C=y
CONFIG_CONSOLE_SUBSYS=y
CONFIG_CONSOLE_GETCHAR=y