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:
Andre Guedes 2016-01-14 17:00:49 -02:00 committed by Anas Nashif
commit 565cb2b020

View file

@ -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