kconfig: Hide the DesignWare I2C driver on unsupported platforms
When users are configuring nRF applications they are given the option to enable the DesignWare I2C driver. But they should not be given this option because nRF SoCs do not have DesignWare I2C HW. This commit hides the driver by default by introducing the config option HAS_I2C_DW. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
dab64724eb
commit
b9c125f64c
6 changed files with 12 additions and 1 deletions
|
@ -4,11 +4,17 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# This option signifies whether DesignWare I2C compatible HW is
|
||||
# available
|
||||
config HAS_I2C_DW
|
||||
bool
|
||||
|
||||
menuconfig I2C_DW
|
||||
bool "Design Ware I2C support"
|
||||
select HAS_DTS_I2C
|
||||
depends on HAS_I2C_DW
|
||||
help
|
||||
Enable Design Ware I2C support on the selected board
|
||||
Enable the Design Ware I2C driver
|
||||
|
||||
if I2C_DW
|
||||
|
||||
|
|
|
@ -7,3 +7,4 @@
|
|||
|
||||
config SOC_EMSK
|
||||
bool "Synopsys ARC EM Starter Kit SoC"
|
||||
select HAS_I2C_DW
|
||||
|
|
|
@ -8,3 +8,4 @@ config SOC_APOLLO_LAKE
|
|||
bool "Intel Apollo Lake Soc"
|
||||
select CPU_APOLLO_LAKE
|
||||
select BOOTLOADER_UNKNOWN
|
||||
select HAS_I2C_DW
|
||||
|
|
|
@ -9,5 +9,6 @@ config SOC_SERIES_QUARK_X1000
|
|||
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
|
||||
select SYS_POWER_DEEP_SLEEP_SUPPORTED
|
||||
select SOC_FAMILY_QUARK
|
||||
select HAS_I2C_DW
|
||||
help
|
||||
Intel Quark X1000 SoC.
|
||||
|
|
|
@ -8,6 +8,7 @@ config SOC_QUARK_X1000
|
|||
select PCI
|
||||
select SYS_POWER_LOW_POWER_STATE_SUPPORTED
|
||||
select SYS_POWER_DEEP_SLEEP_SUPPORTED
|
||||
select HAS_I2C_DW
|
||||
depends on SOC_SERIES_QUARK_X1000
|
||||
help
|
||||
Intel Quark X1000 SoC.
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
|
||||
config SOC_INTEL_S1000
|
||||
bool "intel_s1000"
|
||||
select HAS_I2C_DW
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue