quark_se: Fix I2C-related options selection
Currently, if we disable I2C_DW through 'menuconfig', I2C_DW_0* and I2C_DW_1* options are not disabled even if they depend on I2C_DW option. This makes the menuconfig confusing and we end up with the wrong config set in .config file: ... CONFIG_I2C_DW is not set CONFIG_I2C_DW_0=y ... CONFIG_I2C_DW_1=y ... This patch fixes this issue by surrounding the I2C_DW_0* and I2C_DW_1* options with 'if I2C_DW'. Change-Id: I7e949b066425bca2533f8b84b9ea7b1915369ff0 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
parent
ecfcb6f5e5
commit
565cb2b020
1 changed files with 4 additions and 1 deletions
|
@ -106,6 +106,7 @@ if I2C
|
|||
config I2C_DW
|
||||
def_bool y
|
||||
|
||||
if I2C_DW
|
||||
config I2C_DW_0
|
||||
def_bool y
|
||||
config I2C_DW_0_BASE
|
||||
|
@ -123,7 +124,9 @@ config I2C_DW_1_NAME
|
|||
default "I2C1"
|
||||
config I2C_DW_1_IRQ
|
||||
default 1
|
||||
endif
|
||||
endif # I2C_DW
|
||||
|
||||
endif # I2C
|
||||
|
||||
if CLOCK_CONTROL
|
||||
config CLOCK_CONTROL_QUARK_SE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue