kconfig: Hide the DesignWare SPI driver on unsupported platforms

When users are configuring applications they are given the option
to enable the DesignWare SPI driver. But they should not be given this
option on SoCs that don't have the DesignWare SPI HW.

This commit hides the driver by default by introducing the config
option HAS_SPI_DW.

Fixes: #10825

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-11-20 10:56:37 -06:00 committed by Anas Nashif
commit 5f09eae7a1
6 changed files with 12 additions and 0 deletions

View file

@ -6,8 +6,14 @@
# SPDX-License-Identifier: Apache-2.0
#
config HAS_SPI_DW
bool
help
Signifies whether DesignWare SPI compatible HW is available
menuconfig SPI_DW
bool "Designware SPI controller driver"
depends on HAS_SPI_DW
help
Enable support for Designware's SPI controllers.

View file

@ -9,3 +9,4 @@ config SOC_QUARK_SE_C1000_SS
select SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_2_SUPPORTED
select HAS_QMSI
select HAS_SPI_DW

View file

@ -8,3 +8,4 @@
config SOC_EMSK
bool "Synopsys ARC EM Starter Kit SoC"
select HAS_I2C_DW
select HAS_SPI_DW

View file

@ -2,3 +2,4 @@
config SOC_QUARK_D2000
bool "Intel Quark D2000"
depends on SOC_SERIES_QUARK_D2000
select HAS_SPI_DW

View file

@ -8,9 +8,11 @@ choice
config SOC_QUARK_SE_C1000
bool "Intel Quark SE C1000"
select HAS_SPI_DW
config SOC_QUARK_SE_CURIE
bool "Intel Curie"
select HAS_SPI_DW
endchoice

View file

@ -4,4 +4,5 @@
config SOC_INTEL_S1000
bool "intel_s1000"
select HAS_I2C_DW
select HAS_SPI_DW