diff options
author | Jagan Teki <jteki@openedev.com> | 2015-06-27 22:37:00 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-07-01 21:39:04 +0530 |
commit | e4976af8656878c708f9b90278648b39e6d88dc6 (patch) | |
tree | 3d7dc3140226f727fbb19ba3677a6fa827a87a27 /drivers | |
parent | 1360004233801aed153c7f58f316912aed062c6e (diff) | |
download | u-boot-imx-e4976af8656878c708f9b90278648b39e6d88dc6.zip u-boot-imx-e4976af8656878c708f9b90278648b39e6d88dc6.tar.gz u-boot-imx-e4976af8656878c708f9b90278648b39e6d88dc6.tar.bz2 |
spi: Kconfig: Show dm-spi drivers if DM_SPI set
DM supported spi drivers are enbled only when DM_SPI enabled,
so added DM_SPI if condition in Kconfig to show thoese only
when it enabled.
Also re-order the config items as incresing alphabetic order.
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/Kconfig | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 218657e..7277bbd 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -13,6 +13,22 @@ config DM_SPI typically use driver-private data instead of extending the spi_slave structure. +if DM_SPI + +config CADENCE_QSPI + bool "Cadence QSPI driver" + help + Enable the Cadence Quad-SPI (QSPI) driver. This driver can be + used to access the SPI NOR flash on platforms embedding this + Cadence IP core. + +config DESIGNWARE_SPI + bool "Designware SPI driver" + help + Enable the Designware SPI driver. This driver can be used to + access the SPI NOR flash on platforms embedding this Designware + IP core. + config SANDBOX_SPI bool "Sandbox SPI driver" depends on SANDBOX && DM @@ -36,33 +52,10 @@ config SANDBOX_SPI spi-max-frequency = <40000000>; sandbox,filename = "spi.bin"; }; - }; - -config DESIGNWARE_SPI - bool "Designware SPI driver" - depends on DM_SPI - help - Enable the Designware SPI driver. This driver can be used to - access the SPI NOR flash on platforms embedding this Designware - IP core. - -config CADENCE_QSPI - bool "Cadence QSPI driver" - depends on DM_SPI - help - Enable the Cadence Quad-SPI (QSPI) driver. This driver can be - used to access the SPI NOR flash on platforms embedding this - Cadence IP core. - -config TI_QSPI - bool "TI QSPI driver" - help - Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms. - This driver support spi flash single, quad and memory reads. + }; config XILINX_SPI bool "Xilinx SPI driver" - depends on DM_SPI help Enable the Xilinx SPI driver from the Xilinx EDK. This SPI controller support 8 bit SPI transfers only, with or w/o FIFO. @@ -71,10 +64,18 @@ config XILINX_SPI config ZYNQ_SPI bool "Zynq SPI driver" - depends on DM_SPI && (ARCH_ZYNQ || TARGET_XILINX_ZYNQMP) + depends on ARCH_ZYNQ || TARGET_XILINX_ZYNQMP help Enable the Zynq SPI driver. This driver can be used to access the SPI NOR flash on platforms embedding this Zynq SPI IP core. +endif # if DM_SPI + +config TI_QSPI + bool "TI QSPI driver" + help + Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms. + This driver support spi flash single, quad and memory reads. + endmenu # menu "SPI Support" |