I2C Manager Kconfig now generic

This commit is contained in:
Rop Gonggrijp 2021-07-12 10:24:11 +02:00
parent 048438738c
commit ef76fd1056
2 changed files with 98 additions and 99 deletions

View file

@ -4,6 +4,11 @@ menu "LVGL ESP Drivers"
rsource "lvgl_touch/Kconfig" rsource "lvgl_touch/Kconfig"
menu "I2C Port Settings"
depends on LV_I2C && !HAVE_I2C_MANAGER
rsource "i2c_manager/Kconfig" rsource "i2c_manager/Kconfig"
endmenu
endmenu endmenu

View file

@ -1,7 +1,4 @@
menu "I2C Port Settings" menu "I2C Port 0"
depends on LV_I2C && !HAVE_I2C_MANAGER
menu "I2C Port 0"
config I2C_MANAGER_0_ENABLED config I2C_MANAGER_0_ENABLED
bool "Enable I2C port 0" bool "Enable I2C port 0"
@ -47,10 +44,10 @@ menu "I2C Port Settings"
can attain. Try with these off first if you don't know. can attain. Try with these off first if you don't know.
endif endif
endmenu endmenu
menu "I2C Port 1" menu "I2C Port 1"
config I2C_MANAGER_1_ENABLED config I2C_MANAGER_1_ENABLED
bool "Enable I2C port 1" bool "Enable I2C port 1"
@ -96,7 +93,4 @@ menu "I2C Port Settings"
can attain. Try with these off first if you don't know. can attain. Try with these off first if you don't know.
endif endif
endmenu
endmenu endmenu