Skip to contentSkip to conversation

spi: Kconfig: Move FSL_QSPI entry to non-dm place

PATCH New Jagan Teki 2 participants 6 messages Sep 21, 2016 – Sep 22, 2016 SPI

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/2 spi: Kconfig: Move FSL_QSPI entry to non-dm place

From: Jagan Teki <[email protected]>

Since FSL_QSPI driver still supporting non-dm code better to move the Kconfig from DM undefined place.

Cc Stefano Babic <[email protected]>
Cc Peng Fan <[email protected]>
---
 drivers/spi/Kconfig | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/spi/Kconfig +7 -7
index aca385d..5da66a6 100644
@@ -61,13 +61,6 @@ 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 ICH_SPI
 	bool "Intel ICH SPI driver"
 	help
@@ -188,6 +181,13 @@ config FSL_ESPI
 	  access the SPI interface and SPI NOR flash on platforms embedding
 	  this Freescale eSPI IP core.
 
+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 TI_QSPI
 	bool "TI QSPI driver"
 	help
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 2/2 configs: fsl: Move SPI/SPI-FLASH configs to defconfig

From: Jagan Teki <[email protected]>

Moved FSL_QSPI/SPI/SPI-FLASH configs from include/configs into respective used defconfigs.
- CONFIG_FSL_QSPI
- CONFIG_SPI_FLASH
- CONFIG_SPI_FLASH_BAR
- CONFIG_SPI_FLASH_STMICRO

Cc Stefano Babic <[email protected]>
Cc Peng Fan <[email protected]>
---
 configs/mx6sxsabreauto_defconfig  | 1 +
 configs/mx6ul_14x14_evk_defconfig | 4 ++++
 configs/mx6ul_9x9_evk_defconfig   | 4 ++++
 include/configs/mx6sxsabreauto.h  | 1 -
 include/configs/mx6ul_14x14_evk.h | 4 ----
 5 files changed, 9 insertions(+), 5 deletions(-)
configs/mx6sxsabreauto_defconfig +1 -0
index 41d46f6..e80bb4e 100644
@@ -23,6 +23,7 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_FSL_QSPI=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_STMICRO=y
configs/mx6ul_14x14_evk_defconfig +4 -0
index 9b4c4a4..a829a18 100644
@@ -32,4 +32,8 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_FSL_QSPI=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_OF_LIBFDT=y
configs/mx6ul_9x9_evk_defconfig +4 -0
index e88a1dc..eaf3cfd 100644
@@ -32,4 +32,8 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_FSL_QSPI=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_OF_LIBFDT=y
include/configs/mx6sxsabreauto.h +0 -1
index 274cb36..c30e3dd 100644
@@ -173,7 +173,6 @@
 
 #define CONFIG_IMX_THERMAL
 
-#define CONFIG_FSL_QSPI
 #ifdef CONFIG_FSL_QSPI
 #define CONFIG_SYS_FSL_QSPI_AHB
 #define CONFIG_SF_DEFAULT_BUS		0
include/configs/mx6ul_14x14_evk.h +0 -4
index 823405f..925a418 100644
@@ -186,15 +186,11 @@
 #ifndef CONFIG_SYS_DCACHE_OFF
 #endif
 
-#define CONFIG_FSL_QSPI
 #ifdef CONFIG_FSL_QSPI
-#define CONFIG_SPI_FLASH
-#define CONFIG_SPI_FLASH_BAR
 #define CONFIG_SF_DEFAULT_BUS		0
 #define CONFIG_SF_DEFAULT_CS		0
 #define CONFIG_SF_DEFAULT_SPEED	40000000
 #define CONFIG_SF_DEFAULT_MODE		SPI_MODE_0
-#define CONFIG_SPI_FLASH_STMICRO
 #define FSL_QSPI_FLASH_NUM		1
 #define FSL_QSPI_FLASH_SIZE		SZ_32M
 #endif
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 configs: fsl: Move SPI/SPI-FLASH configs to defconfig

Quoted 9 lines · Jagan Teki

From: Jagan Teki <[email protected]>

Moved FSL_QSPI/SPI/SPI-FLASH configs from include/configs into respective used defconfigs.
- CONFIG_FSL_QSPI
- CONFIG_SPI_FLASH
- CONFIG_SPI_FLASH_BAR
- CONFIG_SPI_FLASH_STMICRO

Quoted 3 lines
Cc Stefano Babic <[email protected]>
Cc Peng Fan <[email protected]>

Thanks,
Peng.

Quoted 85 lines

---

configs/mx6sxsabreauto_defconfig  | 1 +
configs/mx6ul_14x14_evk_defconfig | 4 ++++
configs/mx6ul_9x9_evk_defconfig   | 4 ++++
include/configs/mx6sxsabreauto.h  | 1 -
include/configs/mx6ul_14x14_evk.h | 4 ----
5 files changed, 9 insertions(+), 5 deletions(-)
configs/mx6sxsabreauto_defconfig +0 -0
index 41d46f6..e80bb4e 100644
@@ -23,6 +23,7 @@ CONFIG_CMD_EXT4=y

CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
+CONFIG_FSL_QSPI=y
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_BAR=y
CONFIG_SPI_FLASH_STMICRO=y

configs/mx6ul_14x14_evk_defconfig +0 -0
index 9b4c4a4..a829a18 100644
@@ -32,4 +32,8 @@ CONFIG_CMD_FAT=y

CONFIG_CMD_FS_GENERIC=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y

configs/mx6ul_14x14_evk_defconfig +4 -0
+CONFIG_FSL_QSPI=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_STMICRO=y

CONFIG_OF_LIBFDT=y

configs/mx6ul_9x9_evk_defconfig +0 -0
index e88a1dc..eaf3cfd 100644
@@ -32,4 +32,8 @@ CONFIG_CMD_FAT=y

CONFIG_CMD_FS_GENERIC=y
CONFIG_USB=y
CONFIG_USB_STORAGE=y

configs/mx6ul_9x9_evk_defconfig +4 -0
+CONFIG_FSL_QSPI=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_SPI_FLASH_STMICRO=y

CONFIG_OF_LIBFDT=y

include/configs/mx6sxsabreauto.h +0 -1
index 274cb36..c30e3dd 100644
@@ -173,7 +173,6 @@
 
 #define CONFIG_IMX_THERMAL
 
-#define CONFIG_FSL_QSPI
 #ifdef CONFIG_FSL_QSPI
 #define CONFIG_SYS_FSL_QSPI_AHB
 #define CONFIG_SF_DEFAULT_BUS		0
include/configs/mx6ul_14x14_evk.h +0 -4
index 823405f..925a418 100644
@@ -186,15 +186,11 @@
 #ifndef CONFIG_SYS_DCACHE_OFF
 #endif
 
-#define CONFIG_FSL_QSPI
 #ifdef CONFIG_FSL_QSPI
-#define CONFIG_SPI_FLASH
-#define CONFIG_SPI_FLASH_BAR
 #define CONFIG_SF_DEFAULT_BUS		0
 #define CONFIG_SF_DEFAULT_CS		0
 #define CONFIG_SF_DEFAULT_SPEED	40000000
 #define CONFIG_SF_DEFAULT_MODE		SPI_MODE_0
-#define CONFIG_SPI_FLASH_STMICRO
 #define FSL_QSPI_FLASH_NUM		1
 #define FSL_QSPI_FLASH_SIZE		SZ_32M
 #endif
Signature · 6 lines
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
author
#3 lore raw

PATCH 2/2 configs: fsl: Move SPI/SPI-FLASH configs to defconfig

Quoted 10 lines · Peng Fan
Quoted 9 lines · Jagan Teki

From: Jagan Teki <[email protected]>

Moved FSL_QSPI/SPI/SPI-FLASH configs from include/configs into respective used defconfigs.
- CONFIG_FSL_QSPI
- CONFIG_SPI_FLASH
- CONFIG_SPI_FLASH_BAR
- CONFIG_SPI_FLASH_STMICRO

Quoted 5 lines
Quoted 3 lines
Cc Stefano Babic <[email protected]>
Cc Peng Fan <[email protected]>

Applied to u-boot-spi/master

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#4 lore raw

PATCH 1/2 spi: Kconfig: Move FSL_QSPI entry to non-dm place

In reply to Jagan Teki
Quoted 8 lines · Jagan Teki

From: Jagan Teki <[email protected]>

Since FSL_QSPI driver still supporting non-dm code better to move the Kconfig from DM undefined place.

Cc Stefano Babic <[email protected]>
Cc Peng Fan <[email protected]>

Thanks,
Peng.

Quoted 43 lines

---
drivers/spi/Kconfig | 14 +++++++-------

1 file changed, 7 insertions(+), 7 deletions(-)
drivers/spi/Kconfig +0 -7
index aca385d..5da66a6 100644
@@ -61,13 +61,6 @@ 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 ICH_SPI
bool "Intel ICH SPI driver"
help

drivers/spi/Kconfig +7 -0
@@ -188,6 +181,13 @@ config FSL_ESPI
 	  access the SPI interface and SPI NOR flash on platforms embedding
 	  this Freescale eSPI IP core.
 
+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 TI_QSPI
bool "TI QSPI driver"
help

Signature · 6 lines
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
author
#5 lore raw

PATCH 1/2 spi: Kconfig: Move FSL_QSPI entry to non-dm place

Quoted 11 lines · Peng Fan
Quoted 8 lines · Jagan Teki

From: Jagan Teki <[email protected]>

Since FSL_QSPI driver still supporting non-dm code better to move the Kconfig from DM undefined place.

Cc Stefano Babic <[email protected]>
Cc Peng Fan <[email protected]>

Applied to u-boot-spi/master

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.