[U-Boot] [PATCH 00/20] spi/sf: Kconfig updates

Kconfig additions for spi/sf related drivers.
thanks! Jagan.
Jagan Teki (20): sf: dataflash: Rename to CONFIG_SPI_FLASH_DATAFLASH README: Add CONFIG_SPI_FLASH_DATAFLASH description sf: Add Kconfig menu entry common: Add CMD_SF Kconfig entry sf: Kconfig: Update SPI_FLASH entry sf: Kconfig: Add SPI_FLASH_MTD entry sf: Kconfig: Add SPI_FLASH_DATAFLASH entry spi: Add Kconfig menu entry spi: Kconfig: Add XILINX_SPI entry spi: Kconfig: Add TI_QSPI entry spi: Makefile: Use object file alphabetic order spi: Kconfig: Show dm-spi drivers if DM_SPI set spi: Kconfig: Add FSL_DSPI entry spi: Kconfig: Add FSL_ESPI entry spi: Kconfig: Add FSL_QSPI entry spi: Kconfig: Add EXYNOS_SPI entry spi: Kconfig: Add ICH_SPI entry spi: Kconfig: Add TEGRA114_SPI entry spi: Kconfig: Add TEGRA20_SFLASH entry spi: Kconfig: Add TEGRA20_SLINK entry
README | 5 ++ common/Kconfig | 5 ++ drivers/mtd/spi/Kconfig | 41 +++++++++++++---- drivers/mtd/spi/Makefile | 2 +- drivers/spi/Kconfig | 106 +++++++++++++++++++++++++++++++++++++------ drivers/spi/Makefile | 10 ++-- include/configs/ls1021aqds.h | 2 +- 7 files changed, 143 insertions(+), 28 deletions(-)

Rename CONFIG_SF_DATAFLASH into CONFIG_SPI_FLASH_DATAFLASH as it follows the naming convention same as remaining configs.
Signed-off-by: Jagan Teki jteki@openedev.com --- drivers/mtd/spi/Makefile | 2 +- include/configs/ls1021aqds.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/Makefile b/drivers/mtd/spi/Makefile index ed46648..ff48b25 100644 --- a/drivers/mtd/spi/Makefile +++ b/drivers/mtd/spi/Makefile @@ -15,9 +15,9 @@ endif #ifndef CONFIG_DM_SPI obj-$(CONFIG_SPI_FLASH) += sf_probe.o #endif -obj-$(CONFIG_SF_DATAFLASH) += sf_dataflash.o obj-$(CONFIG_CMD_SF) += sf.o obj-$(CONFIG_SPI_FLASH) += sf_ops.o sf_params.o +obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o obj-$(CONFIG_SPI_FLASH_MTD) += sf_mtd.o obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o obj-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h index 973454b..75b9ccb 100644 --- a/include/configs/ls1021aqds.h +++ b/include/configs/ls1021aqds.h @@ -423,7 +423,7 @@ unsigned long get_board_ddr_clk(void); #if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI) #define CONFIG_CMD_SF #define CONFIG_DM_SPI_FLASH -#define CONFIG_SF_DATAFLASH +#define CONFIG_SPI_FLASH_DATAFLASH #endif #endif

This patch adds CONFIG_SPI_FLASH_DATAFLASH descrition on README file for more readble for users.
Signed-off-by: Jagan Teki jteki@openedev.com --- README | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/README b/README index 168d824..c49af74 100644 --- a/README +++ b/README @@ -3099,6 +3099,11 @@ CBFS (Coreboot Filesystem) support is needed for subsystems like UBI which can only operate on top of the MTD layer.
+ CONFIG_SPI_FLASH_DATAFLASH SPI based Dataflash + + Define this option to access AT45xxx Dataflash chips support + using spi flash interface. + - SystemACE Support: CONFIG_SYSTEMACE

Added Kconfig menu ... endmenu enties for spi flash suppor
Signed-off-by: Jagan Teki jteki@openedev.com --- drivers/mtd/spi/Kconfig | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 40a7981..aa3468b 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -1,3 +1,5 @@ +menu "SPI Flash Support" + config SPI_FLASH bool "Enable SPI Flash support" help @@ -31,3 +33,5 @@ config SPI_FLASH_SANDBOX bus (see CONFIG_SANDBOX_SPI) and SPI traffic will be routed to this device. Typically the contents of the emulated SPI flash device is stored in a file on the host filesystem. + +endmenu # menu "SPI Flash Support"

Added Kconfig entry for CMD_SF.
Signed-off-by: Jagan Teki jteki@openedev.com --- common/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/common/Kconfig b/common/Kconfig index 2976cd7..40cd69e 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -311,6 +311,11 @@ config CMD_NAND help NAND support.
+config CMD_SF + bool "sf" + help + SPI Flash support + config CMD_SPI bool "sspi" help

Updated SPI_FLASH entry on Kconfig with depends on and along with config help description.
Signed-off-by: Jagan Teki jteki@openedev.com --- drivers/mtd/spi/Kconfig | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index aa3468b..9536aac 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -1,14 +1,5 @@ menu "SPI Flash Support"
-config SPI_FLASH - bool "Enable SPI Flash support" - help - Enable the legacy SPI flash support. This will include basic - standard support for things like probing, read / write, and - erasing through the MTD layer. - - If unsure, say N - config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" depends on DM && DM_SPI @@ -34,4 +25,14 @@ config SPI_FLASH_SANDBOX device. Typically the contents of the emulated SPI flash device is stored in a file on the host filesystem.
+config SPI_FLASH + bool "Legacy SPI Flash Interface support" + depends on CMD_SF + help + Enable the legacy SPI flash support. This will include basic + standard support for things like probing, read / write, and + erasing through cmd_sf interface. + + If unsure, say N + endmenu # menu "SPI Flash Support"

Added SPI_FLASH_MTD entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Daniel Schwierzeck daniel.schwierzeck@gmail.com Cc: Heiko Schocher hs@denx.de --- drivers/mtd/spi/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 9536aac..217e4d7 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -35,4 +35,16 @@ config SPI_FLASH
If unsure, say N
+config SPI_FLASH_MTD + bool "SPI Flash MTD support" + depends on SPI_FLASH + help + Enable the MTD support for spi flash layer, this adapter is for + translating mtd_read/mtd_write commands into spi_flash_read/write + commands. It is not intended to use it within sf_cmd or the SPI + flash subsystem. Such an adapter is needed for subsystems like + UBI which can only operate on top of the MTD layer. + + If unsure, say N + endmenu # menu "SPI Flash Support"

2015-06-27 20:13 GMT+02:00 Jagan Teki jteki@openedev.com:
Added SPI_FLASH_MTD entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Daniel Schwierzeck daniel.schwierzeck@gmail.com Cc: Heiko Schocher hs@denx.de
drivers/mtd/spi/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 9536aac..217e4d7 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -35,4 +35,16 @@ config SPI_FLASH
If unsure, say N
+config SPI_FLASH_MTD
bool "SPI Flash MTD support"
depends on SPI_FLASH
help
Enable the MTD support for spi flash layer, this adapter is for
translating mtd_read/mtd_write commands into spi_flash_read/write
commands. It is not intended to use it within sf_cmd or the SPI
flash subsystem. Such an adapter is needed for subsystems like
UBI which can only operate on top of the MTD layer.
If unsure, say N
endmenu # menu "SPI Flash Support"
1.9.1
looks good. Maybe you also should remove that help text from the README file.
Acked-by: Daniel Schwierzeck daniel.schwierzeck@gmail.com

On 29 June 2015 at 21:25, Daniel Schwierzeck daniel.schwierzeck@gmail.com wrote:
2015-06-27 20:13 GMT+02:00 Jagan Teki jteki@openedev.com:
Added SPI_FLASH_MTD entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Daniel Schwierzeck daniel.schwierzeck@gmail.com Cc: Heiko Schocher hs@denx.de
drivers/mtd/spi/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 9536aac..217e4d7 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -35,4 +35,16 @@ config SPI_FLASH
If unsure, say N
+config SPI_FLASH_MTD
bool "SPI Flash MTD support"
depends on SPI_FLASH
help
Enable the MTD support for spi flash layer, this adapter is for
translating mtd_read/mtd_write commands into spi_flash_read/write
commands. It is not intended to use it within sf_cmd or the SPI
flash subsystem. Such an adapter is needed for subsystems like
UBI which can only operate on top of the MTD layer.
If unsure, say N
endmenu # menu "SPI Flash Support"
1.9.1
looks good. Maybe you also should remove that help text from the README file.
Thought the same, will send the patch.
Acked-by: Daniel Schwierzeck daniel.schwierzeck@gmail.com
thanks!

Added SPI_FLASH_DATAFLASH entry on Kconfig with help description
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Haikun Wang haikun.wang@freescale.com Cc: Simon Glass sjg@chromium.org --- drivers/mtd/spi/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 217e4d7..6b38ffc 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -35,6 +35,14 @@ config SPI_FLASH
If unsure, say N
+config SPI_FLASH_DATAFLASH + bool "AT45xxx DataFlash support" + depends on SPI_FLASH && DM_SPI_FLASH + help + Enable the access for SPI Flash based AT45xxx DataFlash chips. + + If unsure, say N + config SPI_FLASH_MTD bool "SPI Flash MTD support" depends on SPI_FLASH

Hi Jagan,
On 27 June 2015 at 12:13, Jagan Teki jteki@openedev.com wrote:
Added SPI_FLASH_DATAFLASH entry on Kconfig with help description
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Haikun Wang haikun.wang@freescale.com Cc: Simon Glass sjg@chromium.org
drivers/mtd/spi/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 217e4d7..6b38ffc 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -35,6 +35,14 @@ config SPI_FLASH
If unsure, say N
+config SPI_FLASH_DATAFLASH
bool "AT45xxx DataFlash support"
depends on SPI_FLASH && DM_SPI_FLASH
help
Enable the access for SPI Flash based AT45xxx DataFlash chips.
nit: SPI-flash-based
You could talk a little more about the chips capabilities? Normally we try to have 4 lines here.
If unsure, say N
config SPI_FLASH_MTD bool "SPI Flash MTD support" depends on SPI_FLASH -- 1.9.1
Regards, Simon

On 1 July 2015 at 01:18, Simon Glass sjg@chromium.org wrote:
Hi Jagan,
On 27 June 2015 at 12:13, Jagan Teki jteki@openedev.com wrote:
Added SPI_FLASH_DATAFLASH entry on Kconfig with help description
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Haikun Wang haikun.wang@freescale.com Cc: Simon Glass sjg@chromium.org
drivers/mtd/spi/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index 217e4d7..6b38ffc 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -35,6 +35,14 @@ config SPI_FLASH
If unsure, say N
+config SPI_FLASH_DATAFLASH
bool "AT45xxx DataFlash support"
depends on SPI_FLASH && DM_SPI_FLASH
help
Enable the access for SPI Flash based AT45xxx DataFlash chips.
nit: SPI-flash-based
You could talk a little more about the chips capabilities? Normally we try to have 4 lines here.
If unsure, say N
config SPI_FLASH_MTD bool "SPI Flash MTD support" depends on SPI_FLASH --
Applied to u-boot-spi/master
thanks!

Added Kconfig menu ... endmenu enties for spi support.
Signed-off-by: Jagan Teki jteki@openedev.com --- drivers/spi/Kconfig | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index fbff707..913951f 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -1,3 +1,5 @@ +menu "SPI Support" + config DM_SPI bool "Enable Driver Model for SPI drivers" depends on DM @@ -59,3 +61,5 @@ config ZYNQ_SPI Enable the Zynq SPI driver. This driver can be used to access the SPI NOR flash on platforms embedding this Zynq SPI IP core. + +endmenu # menu "SPI Support"

Added XILINX_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Michal Simek michal.simek@xilinx.com --- drivers/spi/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 913951f..452dd4d 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -54,6 +54,15 @@ config CADENCE_QSPI used to access the SPI NOR flash on platforms embedding this Cadence IP core.
+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. + For more info on Xilinx SPI Register Definitions and Overview + see driver file - drivers/spi/xilinx_spi.c + config ZYNQ_SPI bool "Zynq SPI driver" depends on DM_SPI && (ARCH_ZYNQ || TARGET_XILINX_ZYNQMP)

Added TI_QSPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Rini trini@konsulko.com --- drivers/spi/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 452dd4d..218657e 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -54,6 +54,12 @@ config CADENCE_QSPI 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

On Sat, Jun 27, 2015 at 11:43:53PM +0530, Jagan Teki wrote:
Added TI_QSPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Rini trini@konsulko.com
Reviewed-by: Tom Rini trini@konsulko.com

Use object files as incresing alphabetic order, so-that it's easy for readability.
Signed-off-by: Jagan Teki jteki@openedev.com --- drivers/spi/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index 507c315..ee88aa1 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -15,7 +15,6 @@ obj-y += spi.o obj-$(CONFIG_SOFT_SPI) += soft_spi_legacy.o endif
-obj-$(CONFIG_EP93XX_SPI) += ep93xx_spi.o obj-$(CONFIG_ALTERA_SPI) += altera_spi.o obj-$(CONFIG_ARMADA100_SPI) += armada100_spi.o obj-$(CONFIG_ATMEL_DATAFLASH_SPI) += atmel_dataflash_spi.o @@ -27,7 +26,11 @@ obj-$(CONFIG_CF_SPI) += cf_spi.o obj-$(CONFIG_CF_QSPI) += cf_qspi.o obj-$(CONFIG_DAVINCI_SPI) += davinci_spi.o obj-$(CONFIG_DESIGNWARE_SPI) += designware_spi.o +obj-$(CONFIG_EP93XX_SPI) += ep93xx_spi.o obj-$(CONFIG_EXYNOS_SPI) += exynos_spi.o +obj-$(CONFIG_FSL_DSPI) += fsl_dspi.o +obj-$(CONFIG_FSL_ESPI) += fsl_espi.o +obj-$(CONFIG_FSL_QSPI) += fsl_qspi.o obj-$(CONFIG_ICH_SPI) += ich.o obj-$(CONFIG_KIRKWOOD_SPI) += kirkwood_spi.o obj-$(CONFIG_LPC32XX_SSP) += lpc32xx_ssp.o @@ -39,12 +42,9 @@ obj-$(CONFIG_OMAP3_SPI) += omap3_spi.o obj-$(CONFIG_SANDBOX_SPI) += sandbox_spi.o obj-$(CONFIG_SH_SPI) += sh_spi.o obj-$(CONFIG_SH_QSPI) += sh_qspi.o -obj-$(CONFIG_FSL_ESPI) += fsl_espi.o +obj-$(CONFIG_TEGRA114_SPI) += tegra114_spi.o obj-$(CONFIG_TEGRA20_SFLASH) += tegra20_sflash.o obj-$(CONFIG_TEGRA20_SLINK) += tegra20_slink.o -obj-$(CONFIG_TEGRA114_SPI) += tegra114_spi.o obj-$(CONFIG_TI_QSPI) += ti_qspi.o obj-$(CONFIG_XILINX_SPI) += xilinx_spi.o obj-$(CONFIG_ZYNQ_SPI) += zynq_spi.o -obj-$(CONFIG_FSL_QSPI) += fsl_qspi.o -obj-$(CONFIG_FSL_DSPI) += fsl_dspi.o

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 --- drivers/spi/Kconfig | 51 ++++++++++++++++++++++++++------------------------- 1 file 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"

Added FSL_DSPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Haikun Wang haikun.wang@freescale.com --- drivers/spi/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 7277bbd..9c6c5d5 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -29,6 +29,14 @@ config DESIGNWARE_SPI access the SPI NOR flash on platforms embedding this Designware IP core.
+config FSL_DSPI + bool "Freescale DSPI driver" + help + Enable the Freescale DSPI driver. This driver can be used to + access the SPI NOR flash and SPI Data flash on platforms embedding + this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms + use this driver. + config SANDBOX_SPI bool "Sandbox SPI driver" depends on SANDBOX && DM

Added FSL_ESPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Haikun Wang haikun.wang@freescale.com --- drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 9c6c5d5..2c0046d 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -80,6 +80,13 @@ config ZYNQ_SPI
endif # if DM_SPI
+config FSL_ESPI + bool "Freescale eSPI driver" + help + Enable the Freescale eSPI driver. This driver can be used to + access the SPI interface and SPI NOR flash on platforms embedding + this Freescale eSPI IP core. + config TI_QSPI bool "TI QSPI driver" help

Added FSL_QSPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Peng Fan Peng.Fan@freescale.com Cc: Haikun Wang haikun.wang@freescale.com --- drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 2c0046d..e4a90e8 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -37,6 +37,13 @@ config FSL_DSPI this Freescale DSPI IP core. LS102xA and Colibri VF50/VF61 platforms use this driver.
+config FSL_QSPI + bool "Freescale QSPI driver" + help + Enable the Freescale Quad-SPI (QSPI) driver. This driver can be + used to access the SPI NOR flash on platforms embedding this + Freescale IP core. + config SANDBOX_SPI bool "Sandbox SPI driver" depends on SANDBOX && DM

Added EXYNOS_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org --- drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index e4a90e8..d5e6881 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -29,6 +29,13 @@ config DESIGNWARE_SPI access the SPI NOR flash on platforms embedding this Designware IP core.
+config EXYNOS_SPI + bool "Samsung Exynos SPI driver" + help + Enable the Samsung Exynos SPI driver. This driver can be used to + access the SPI NOR flash on platforms embedding this Samsung + Exynos IP core. + config FSL_DSPI bool "Freescale DSPI driver" help

On 27 June 2015 at 12:13, Jagan Teki jteki@openedev.com wrote:
Added EXYNOS_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On 1 July 2015 at 01:18, Simon Glass sjg@chromium.org wrote:
On 27 June 2015 at 12:13, Jagan Teki jteki@openedev.com wrote:
Added EXYNOS_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Applied to u-boot-spi/master
thanks!

Added ICH_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org --- drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index d5e6881..43f9fac 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -51,6 +51,13 @@ config FSL_QSPI used to access the SPI NOR flash on platforms embedding this Freescale IP core.
+config ICH_SPI + bool "Intel ICH SPI driver" + help + Enable the Intel ICH SPI driver. This driver can be used to + access the SPI NOR flash on platforms embedding this Intel + ICH IP core. + config SANDBOX_SPI bool "Sandbox SPI driver" depends on SANDBOX && DM

On Sun, Jun 28, 2015 at 2:14 AM, Jagan Teki jteki@openedev.com wrote:
Added ICH_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index d5e6881..43f9fac 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -51,6 +51,13 @@ config FSL_QSPI used to access the SPI NOR flash on platforms embedding this Freescale IP core.
+config ICH_SPI
bool "Intel ICH SPI driver"
help
Enable the Intel ICH SPI driver. This driver can be used to
access the SPI NOR flash on platforms embedding this Intel
ICH IP core.
config SANDBOX_SPI bool "Sandbox SPI driver" depends on SANDBOX && DM --
Reviewed-by: Bin Meng bmeng.cn@gmail.com

On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added ICH_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On 1 July 2015 at 01:18, Simon Glass sjg@chromium.org wrote:
On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added ICH_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-spi/master
thanks!

Added TEGRA114_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org --- drivers/spi/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 43f9fac..16dce77 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -83,6 +83,16 @@ config SANDBOX_SPI }; };
+config TEGRA114_SPI + bool "nVidia Tegra114 SPI driver" + help + Enable the nVidia Tegra114 SPI driver. This driver can be used to + access the SPI NOR flash on platforms embedding this nVidia Tegra114 + IP core. + + This controller is different than the older SoCs SPI controller and + also register interface get changed with this controller. + config XILINX_SPI bool "Xilinx SPI driver" help

On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added TEGRA114_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On 1 July 2015 at 01:18, Simon Glass sjg@chromium.org wrote:
On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added TEGRA114_SPI entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Applied to u-boot-spi/master
thanks!

Added TEGRA20_SFLASH entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org --- drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 16dce77..8ffb3c4 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -93,6 +93,13 @@ config TEGRA114_SPI This controller is different than the older SoCs SPI controller and also register interface get changed with this controller.
+config TEGRA20_SFLASH + bool "nVidia Tegra20 Serial Flash controller driver" + help + Enable the nVidia Tegra20 Serial Flash controller driver. This driver + can be used to access the SPI NOR flash on platforms embedding this + nVidia Tegra20 IP core. + config XILINX_SPI bool "Xilinx SPI driver" help

On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added TEGRA20_SFLASH entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On 1 July 2015 at 01:18, Simon Glass sjg@chromium.org wrote:
On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added TEGRA20_SFLASH entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-spi/master
thanks!

Added TEGRA20_SLINK entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org --- drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 8ffb3c4..c84a7b7 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -100,6 +100,13 @@ config TEGRA20_SFLASH can be used to access the SPI NOR flash on platforms embedding this nVidia Tegra20 IP core.
+config TEGRA20_SLINK + bool "nVidia Tegra20/Tegra30 SLINK driver" + help + Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can + be used to access the SPI NOR flash on platforms embedding this + nVidia Tegra20/Tegra30 IP cores. + config XILINX_SPI bool "Xilinx SPI driver" help

On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added TEGRA20_SLINK entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On 1 July 2015 at 01:18, Simon Glass sjg@chromium.org wrote:
On 27 June 2015 at 12:14, Jagan Teki jteki@openedev.com wrote:
Added TEGRA20_SLINK entry on Kconfig with help description.
Signed-off-by: Jagan Teki jteki@openedev.com Cc: Tom Warren twarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Simon Glass sjg@chromium.org
drivers/spi/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Applied to u-boot-spi/master
thanks!

On 27 June 2015 at 23:43, Jagan Teki jteki@openedev.com wrote:
Kconfig additions for spi/sf related drivers.
thanks! Jagan.
Jagan Teki (20): sf: dataflash: Rename to CONFIG_SPI_FLASH_DATAFLASH README: Add CONFIG_SPI_FLASH_DATAFLASH description sf: Add Kconfig menu entry common: Add CMD_SF Kconfig entry sf: Kconfig: Update SPI_FLASH entry sf: Kconfig: Add SPI_FLASH_MTD entry sf: Kconfig: Add SPI_FLASH_DATAFLASH entry spi: Add Kconfig menu entry spi: Kconfig: Add XILINX_SPI entry spi: Kconfig: Add TI_QSPI entry spi: Makefile: Use object file alphabetic order spi: Kconfig: Show dm-spi drivers if DM_SPI set spi: Kconfig: Add FSL_DSPI entry spi: Kconfig: Add FSL_ESPI entry spi: Kconfig: Add FSL_QSPI entry spi: Kconfig: Add EXYNOS_SPI entry spi: Kconfig: Add ICH_SPI entry spi: Kconfig: Add TEGRA114_SPI entry spi: Kconfig: Add TEGRA20_SFLASH entry spi: Kconfig: Add TEGRA20_SLINK entry
README | 5 ++ common/Kconfig | 5 ++ drivers/mtd/spi/Kconfig | 41 +++++++++++++---- drivers/mtd/spi/Makefile | 2 +- drivers/spi/Kconfig | 106 +++++++++++++++++++++++++++++++++++++------ drivers/spi/Makefile | 10 ++-- include/configs/ls1021aqds.h | 2 +- 7 files changed, 143 insertions(+), 28 deletions(-)
Applied to u-boot-spi/master
thanks!
participants (5)
-
Bin Meng
-
Daniel Schwierzeck
-
Jagan Teki
-
Simon Glass
-
Tom Rini