[U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

Jagan Teki jagan at amarulasolutions.com
Thu Jan 31 13:18:02 UTC 2019


On Tue, Jan 29, 2019 at 11:28 AM Vignesh R <vigneshr at ti.com> wrote:
>
> Now that new SPI NOR layer uses stateless 4 byte opcodes by default,
> don't enable SPI_FLASH_BAR. For SPI controllers that cannot support
> 4-byte addressing, (stm32_qspi.c, fsl_qspi.c, mtk_qspi.c, ich.c,
> renesas_rpc_spi.c) add an imply clause to enable SPI_FLASH_BAR so as to
> not break functionality.
>
> Signed-off-by: Vignesh R <vigneshr at ti.com>
> Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> Tested-by: Stefan Roese <sr at denx.de>
> Tested-by: Horatiu Vultur <horatiu.vultur at microchip.com>
> ---
>  arch/arm/mach-omap2/am33xx/Kconfig               | 1 -
>  configs/alt_defconfig                            | 1 -
>  configs/am57xx_evm_defconfig                     | 1 -
>  configs/am57xx_hs_evm_defconfig                  | 1 -
>  configs/ap121_defconfig                          | 1 -
>  configs/ap143_defconfig                          | 1 -
>  configs/avnet_ultra96_rev1_defconfig             | 1 -
>  configs/axs101_defconfig                         | 1 -
>  configs/axs103_defconfig                         | 1 -
>  configs/bg0900_defconfig                         | 1 -
>  configs/blanche_defconfig                        | 1 -
>  configs/cl-som-am57x_defconfig                   | 1 -
>  configs/clearfog_defconfig                       | 1 -
>  configs/cm_t43_defconfig                         | 1 -
>  configs/db-88f6820-amc_defconfig                 | 1 -
>  configs/display5_defconfig                       | 1 -
>  configs/display5_factory_defconfig               | 1 -
>  configs/dra7xx_evm_defconfig                     | 1 -
>  configs/dra7xx_hs_evm_defconfig                  | 1 -
>  configs/ds109_defconfig                          | 1 -
>  configs/ds414_defconfig                          | 1 -
>  configs/evb-rv1108_defconfig                     | 1 -
>  configs/gose_defconfig                           | 1 -
>  configs/helios4_defconfig                        | 1 -
>  configs/k2g_evm_defconfig                        | 1 -
>  configs/k2g_hs_evm_defconfig                     | 1 -
>  configs/koelsch_defconfig                        | 1 -
>  configs/lager_defconfig                          | 1 -
>  configs/maxbcm_defconfig                         | 1 -
>  configs/mt7629_rfb_defconfig                     | 1 -
>  configs/mx6sxsabreauto_defconfig                 | 1 -
>  configs/mx6sxsabresd_defconfig                   | 1 -
>  configs/mx6ul_14x14_evk_defconfig                | 1 -
>  configs/mx6ul_9x9_evk_defconfig                  | 1 -
>  configs/mx6ull_14x14_evk_defconfig               | 1 -
>  configs/mx6ull_14x14_evk_plugin_defconfig        | 1 -
>  configs/mx7dsabresd_qspi_defconfig               | 1 -
>  configs/porter_defconfig                         | 1 -
>  configs/r8a77970_eagle_defconfig                 | 1 -
>  configs/silk_defconfig                           | 1 -
>  configs/socfpga_arria5_defconfig                 | 1 -
>  configs/socfpga_cyclone5_defconfig               | 1 -
>  configs/socfpga_is1_defconfig                    | 1 -
>  configs/socfpga_sockit_defconfig                 | 1 -
>  configs/socfpga_socrates_defconfig               | 1 -
>  configs/socfpga_sr1500_defconfig                 | 1 -
>  configs/socfpga_stratix10_defconfig              | 1 -
>  configs/stout_defconfig                          | 1 -
>  configs/topic_miami_defconfig                    | 1 -
>  configs/topic_miamilite_defconfig                | 1 -
>  configs/topic_miamiplus_defconfig                | 1 -
>  configs/xilinx_versal_virt_defconfig             | 1 -
>  configs/xilinx_zynqmp_mini_qspi_defconfig        | 1 -
>  configs/xilinx_zynqmp_zc1232_revA_defconfig      | 1 -
>  configs/xilinx_zynqmp_zc1254_revA_defconfig      | 1 -
>  configs/xilinx_zynqmp_zc1275_revA_defconfig      | 1 -
>  configs/xilinx_zynqmp_zc1275_revB_defconfig      | 1 -
>  configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 -
>  configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1 -
>  configs/xilinx_zynqmp_zc1751_xm018_dc4_defconfig | 1 -
>  configs/xilinx_zynqmp_zcu100_revC_defconfig      | 1 -
>  configs/xilinx_zynqmp_zcu102_rev1_0_defconfig    | 1 -
>  configs/xilinx_zynqmp_zcu102_revA_defconfig      | 1 -
>  configs/xilinx_zynqmp_zcu102_revB_defconfig      | 1 -
>  configs/xilinx_zynqmp_zcu104_revA_defconfig      | 1 -
>  configs/xilinx_zynqmp_zcu104_revC_defconfig      | 1 -
>  configs/xilinx_zynqmp_zcu106_revA_defconfig      | 1 -
>  configs/xilinx_zynqmp_zcu111_revA_defconfig      | 1 -
>  configs/zynq_cc108_defconfig                     | 1 -
>  configs/zynq_cse_qspi_defconfig                  | 1 -
>  configs/zynq_dlc20_rev1_0_defconfig              | 1 -
>  configs/zynq_microzed_defconfig                  | 1 -
>  configs/zynq_minized_defconfig                   | 1 -
>  configs/zynq_z_turn_defconfig                    | 1 -
>  configs/zynq_zc702_defconfig                     | 1 -
>  configs/zynq_zc706_defconfig                     | 1 -
>  configs/zynq_zc770_xm010_defconfig               | 1 -
>  configs/zynq_zc770_xm013_defconfig               | 1 -
>  configs/zynq_zed_defconfig                       | 1 -
>  configs/zynq_zybo_defconfig                      | 1 -
>  configs/zynq_zybo_z7_defconfig                   | 1 -

zynq targets do need BAR, same has commented in previous mails.

> --- a/configs/socfpga_socrates_defconfig
> +++ b/configs/socfpga_socrates_defconfig
> @@ -52,7 +52,6 @@ CONFIG_DM_MMC=y
>  CONFIG_MMC_DW=y
>  CONFIG_MTD_DEVICE=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
> diff --git a/configs/socfpga_sr1500_defconfig b/configs/socfpga_sr1500_defconfig
> index 97366cdfff0c..d984047bfe63 100644
> --- a/configs/socfpga_sr1500_defconfig
> +++ b/configs/socfpga_sr1500_defconfig
> @@ -53,7 +53,6 @@ CONFIG_DM_MMC=y
>  CONFIG_MMC_DW=y
>  CONFIG_MTD_DEVICE=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>  CONFIG_PHY_MARVELL=y
> diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig
> index 5f3d733a8bc2..8550acb9ba2b 100644
> --- a/configs/socfpga_stratix10_defconfig
> +++ b/configs/socfpga_stratix10_defconfig
> @@ -39,7 +39,6 @@ CONFIG_SYS_I2C_DW=y
>  CONFIG_DM_MMC=y
>  CONFIG_MMC_DW=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> diff --git a/configs/stout_defconfig b/configs/stout_defconfig
> index acd05564f327..1b1ed8d3acc4 100644
> --- a/configs/stout_defconfig
> +++ b/configs/stout_defconfig
> @@ -64,7 +64,6 @@ CONFIG_RENESAS_SDHI=y
>  CONFIG_MTD=y
>  CONFIG_MTD_DEVICE=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_MTD=y
>  CONFIG_PHY_MICREL=y
> diff --git a/configs/topic_miami_defconfig b/configs/topic_miami_defconfig
> index 927ce9ad2848..73dc9531cd92 100644
> --- a/configs/topic_miami_defconfig
> +++ b/configs/topic_miami_defconfig
> @@ -39,7 +39,6 @@ CONFIG_SYS_I2C_CADENCE=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>  CONFIG_DEBUG_UART_ZYNQ=y
> diff --git a/configs/topic_miamilite_defconfig b/configs/topic_miamilite_defconfig
> index 95fa7678d639..e379a8e3d4cb 100644
> --- a/configs/topic_miamilite_defconfig
> +++ b/configs/topic_miamilite_defconfig
> @@ -39,7 +39,6 @@ CONFIG_SYS_I2C_CADENCE=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>  CONFIG_DEBUG_UART_ZYNQ=y
> diff --git a/configs/topic_miamiplus_defconfig b/configs/topic_miamiplus_defconfig
> index 6d753c0326a1..a7bc257c97b9 100644
> --- a/configs/topic_miamiplus_defconfig
> +++ b/configs/topic_miamiplus_defconfig
> @@ -38,7 +38,6 @@ CONFIG_SYS_I2C_CADENCE=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>  # CONFIG_NETDEVICES is not set
> diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
> index 57e497c922f8..2b226c400421 100644
> --- a/configs/xilinx_versal_virt_defconfig
> +++ b/configs/xilinx_versal_virt_defconfig
> @@ -50,7 +50,6 @@ CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_DM_SPI_FLASH=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
> diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig b/configs/xilinx_zynqmp_mini_qspi_defconfig
> index 911d1beed2e1..ba521876b75f 100644
> --- a/configs/xilinx_zynqmp_mini_qspi_defconfig
> +++ b/configs/xilinx_zynqmp_mini_qspi_defconfig
> @@ -53,7 +53,6 @@ CONFIG_SPL_DM=y
>  CONFIG_SPL_DM_SEQ_ALIAS=y
>  # CONFIG_MMC is not set
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zc1232_revA_defconfig b/configs/xilinx_zynqmp_zc1232_revA_defconfig
> index 35952d38157d..6a9b8793a1a5 100644
> --- a/configs/xilinx_zynqmp_zc1232_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zc1232_revA_defconfig
> @@ -37,7 +37,6 @@ CONFIG_FPGA_ZYNQMPPL=y
>  CONFIG_MISC=y
>  # CONFIG_MMC is not set
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zc1254_revA_defconfig b/configs/xilinx_zynqmp_zc1254_revA_defconfig
> index 9c412ebf9544..6a71a021876e 100644
> --- a/configs/xilinx_zynqmp_zc1254_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zc1254_revA_defconfig
> @@ -37,7 +37,6 @@ CONFIG_FPGA_ZYNQMPPL=y
>  CONFIG_MISC=y
>  # CONFIG_MMC is not set
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zc1275_revA_defconfig b/configs/xilinx_zynqmp_zc1275_revA_defconfig
> index d1108b8e7d89..055f6d8aba74 100644
> --- a/configs/xilinx_zynqmp_zc1275_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zc1275_revA_defconfig
> @@ -37,7 +37,6 @@ CONFIG_FPGA_ZYNQMPPL=y
>  CONFIG_MISC=y
>  # CONFIG_MMC is not set
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zc1275_revB_defconfig b/configs/xilinx_zynqmp_zc1275_revB_defconfig
> index e5e4eb2b745e..5e48158b6469 100644
> --- a/configs/xilinx_zynqmp_zc1275_revB_defconfig
> +++ b/configs/xilinx_zynqmp_zc1275_revB_defconfig
> @@ -41,7 +41,6 @@ CONFIG_MISC=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig b/configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig
> index dd6f50df4ee4..59db2131c0c4 100644
> --- a/configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig
> +++ b/configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig
> @@ -61,7 +61,6 @@ CONFIG_MMC_HS200_SUPPORT=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig b/configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig
> index bbbbb8ef4d07..5cd323482073 100644
> --- a/configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig
> +++ b/configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig
> @@ -59,7 +59,6 @@ CONFIG_NAND=y
>  CONFIG_NAND_ARASAN=y
>  CONFIG_SYS_NAND_MAX_CHIPS=2
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SST=y
>  CONFIG_PHY_MARVELL=y
>  CONFIG_PHY_NATSEMI=y
> diff --git a/configs/xilinx_zynqmp_zc1751_xm018_dc4_defconfig b/configs/xilinx_zynqmp_zc1751_xm018_dc4_defconfig
> index e742406cb22d..6f14234a590e 100644
> --- a/configs/xilinx_zynqmp_zc1751_xm018_dc4_defconfig
> +++ b/configs/xilinx_zynqmp_zc1751_xm018_dc4_defconfig
> @@ -47,7 +47,6 @@ CONFIG_MISC=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu100_revC_defconfig b/configs/xilinx_zynqmp_zcu100_revC_defconfig
> index ca96b9ee2aa3..a3c81eb7e97f 100644
> --- a/configs/xilinx_zynqmp_zcu100_revC_defconfig
> +++ b/configs/xilinx_zynqmp_zcu100_revC_defconfig
> @@ -57,7 +57,6 @@ CONFIG_MISC=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig b/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig
> index d61ca4d37e45..ac1710195a2b 100644
> --- a/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig
> +++ b/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig
> @@ -74,7 +74,6 @@ CONFIG_MMC_UHS_SUPPORT=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu102_revA_defconfig b/configs/xilinx_zynqmp_zcu102_revA_defconfig
> index e4d656889287..604e8c9f71e3 100644
> --- a/configs/xilinx_zynqmp_zcu102_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zcu102_revA_defconfig
> @@ -72,7 +72,6 @@ CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu102_revB_defconfig b/configs/xilinx_zynqmp_zcu102_revB_defconfig
> index ded0c6f0edcd..d0155b1d4fee 100644
> --- a/configs/xilinx_zynqmp_zcu102_revB_defconfig
> +++ b/configs/xilinx_zynqmp_zcu102_revB_defconfig
> @@ -72,7 +72,6 @@ CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu104_revA_defconfig b/configs/xilinx_zynqmp_zcu104_revA_defconfig
> index 3025ace26116..06c3ca3db696 100644
> --- a/configs/xilinx_zynqmp_zcu104_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zcu104_revA_defconfig
> @@ -57,7 +57,6 @@ CONFIG_MISC=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu104_revC_defconfig b/configs/xilinx_zynqmp_zcu104_revC_defconfig
> index d1d39e2bc63b..d615cb04f40d 100644
> --- a/configs/xilinx_zynqmp_zcu104_revC_defconfig
> +++ b/configs/xilinx_zynqmp_zcu104_revC_defconfig
> @@ -58,7 +58,6 @@ CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu106_revA_defconfig b/configs/xilinx_zynqmp_zcu106_revA_defconfig
> index 13f2e9da4d29..9f5f97500844 100644
> --- a/configs/xilinx_zynqmp_zcu106_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zcu106_revA_defconfig
> @@ -68,7 +68,6 @@ CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/xilinx_zynqmp_zcu111_revA_defconfig b/configs/xilinx_zynqmp_zcu111_revA_defconfig
> index b8e96042da0a..40586771a035 100644
> --- a/configs/xilinx_zynqmp_zcu111_revA_defconfig
> +++ b/configs/xilinx_zynqmp_zcu111_revA_defconfig
> @@ -60,7 +60,6 @@ CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_cc108_defconfig b/configs/zynq_cc108_defconfig
> index 5a930d6a3856..1fd18ac36490 100644
> --- a/configs/zynq_cc108_defconfig
> +++ b/configs/zynq_cc108_defconfig
> @@ -34,7 +34,6 @@ CONFIG_DM_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_cse_qspi_defconfig b/configs/zynq_cse_qspi_defconfig
> index 1fc8a597ce9f..1f8aa6e4ba90 100644
> --- a/configs/zynq_cse_qspi_defconfig
> +++ b/configs/zynq_cse_qspi_defconfig
> @@ -56,7 +56,6 @@ CONFIG_DEFAULT_DEVICE_TREE="zynq-cse-qspi-single"
>  CONFIG_SPL_DM_SEQ_ALIAS=y
>  # CONFIG_MMC is not set
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_dlc20_rev1_0_defconfig b/configs/zynq_dlc20_rev1_0_defconfig
> index 7ead19208f4f..42b565ce46a5 100644
> --- a/configs/zynq_dlc20_rev1_0_defconfig
> +++ b/configs/zynq_dlc20_rev1_0_defconfig
> @@ -49,7 +49,6 @@ CONFIG_ZYNQ_I2C0=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  CONFIG_SPI_FLASH_WINBOND=y
>  CONFIG_PHY_REALTEK=y
> diff --git a/configs/zynq_microzed_defconfig b/configs/zynq_microzed_defconfig
> index 206938584bc0..83996bb7734a 100644
> --- a/configs/zynq_microzed_defconfig
> +++ b/configs/zynq_microzed_defconfig
> @@ -40,7 +40,6 @@ CONFIG_DM_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  CONFIG_SPI_FLASH_WINBOND=y
> diff --git a/configs/zynq_minized_defconfig b/configs/zynq_minized_defconfig
> index 1b8604076031..21f807a2d082 100644
> --- a/configs/zynq_minized_defconfig
> +++ b/configs/zynq_minized_defconfig
> @@ -41,7 +41,6 @@ CONFIG_DM_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  CONFIG_SPI_FLASH_WINBOND=y
> diff --git a/configs/zynq_z_turn_defconfig b/configs/zynq_z_turn_defconfig
> index ff3322cf85b7..f5cbaae0b190 100644
> --- a/configs/zynq_z_turn_defconfig
> +++ b/configs/zynq_z_turn_defconfig
> @@ -40,7 +40,6 @@ CONFIG_LED_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  CONFIG_SPI_FLASH_WINBOND=y
> diff --git a/configs/zynq_zc702_defconfig b/configs/zynq_zc702_defconfig
> index 9734f24fdfed..101568de8e1b 100644
> --- a/configs/zynq_zc702_defconfig
> +++ b/configs/zynq_zc702_defconfig
> @@ -52,7 +52,6 @@ CONFIG_LED_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_zc706_defconfig b/configs/zynq_zc706_defconfig
> index 4a03351d1ee2..313a02a09141 100644
> --- a/configs/zynq_zc706_defconfig
> +++ b/configs/zynq_zc706_defconfig
> @@ -52,7 +52,6 @@ CONFIG_ZYNQ_I2C0=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_zc770_xm010_defconfig b/configs/zynq_zc770_xm010_defconfig
> index fed1502d1b6b..22d5b847668c 100644
> --- a/configs/zynq_zc770_xm010_defconfig
> +++ b/configs/zynq_zc770_xm010_defconfig
> @@ -41,7 +41,6 @@ CONFIG_DM_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_zc770_xm013_defconfig b/configs/zynq_zc770_xm013_defconfig
> index a08bd2993385..dcadaf21316b 100644
> --- a/configs/zynq_zc770_xm013_defconfig
> +++ b/configs/zynq_zc770_xm013_defconfig
> @@ -35,7 +35,6 @@ CONFIG_FPGA_ZYNQPL=y
>  CONFIG_DM_GPIO=y
>  # CONFIG_MMC is not set
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_ISSI=y
>  CONFIG_SPI_FLASH_MACRONIX=y
>  CONFIG_SPI_FLASH_SPANSION=y
> diff --git a/configs/zynq_zed_defconfig b/configs/zynq_zed_defconfig
> index dbf5c4173972..166c03469634 100644
> --- a/configs/zynq_zed_defconfig
> +++ b/configs/zynq_zed_defconfig
> @@ -43,7 +43,6 @@ CONFIG_DM_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_SPI_FLASH_STMICRO=y
>  CONFIG_SPI_FLASH_WINBOND=y
> diff --git a/configs/zynq_zybo_defconfig b/configs/zynq_zybo_defconfig
> index 9e44e82549f7..6754ff529a97 100644
> --- a/configs/zynq_zybo_defconfig
> +++ b/configs/zynq_zybo_defconfig
> @@ -44,7 +44,6 @@ CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0xFA
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_PHY_MARVELL=y
>  CONFIG_PHY_REALTEK=y
> diff --git a/configs/zynq_zybo_z7_defconfig b/configs/zynq_zybo_z7_defconfig
> index d729ca340c36..6323645aeb02 100644
> --- a/configs/zynq_zybo_z7_defconfig
> +++ b/configs/zynq_zybo_z7_defconfig
> @@ -43,7 +43,6 @@ CONFIG_DM_GPIO=y
>  CONFIG_MMC_SDHCI=y
>  CONFIG_MMC_SDHCI_ZYNQ=y
>  CONFIG_SPI_FLASH=y
> -CONFIG_SPI_FLASH_BAR=y
>  CONFIG_SPI_FLASH_SPANSION=y
>  CONFIG_PHY_REALTEK=y
>  CONFIG_MII=y
> diff --git a/doc/SPI/README.ti_qspi_dra_test b/doc/SPI/README.ti_qspi_dra_test
> index fe378572369b..e89f53587fa7 100644
> --- a/doc/SPI/README.ti_qspi_dra_test
> +++ b/doc/SPI/README.ti_qspi_dra_test
> @@ -22,7 +22,6 @@ Commands to erase/write u-boot/mlo to flash device
>  --------------------------------------------------
>  U-Boot# sf probe 0
>  SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 5c000000
> -SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
>  U-Boot# sf erase 0 0x10000
>  SF: 65536 bytes @ 0x0 Erased: OK
>  U-Boot# sf erase 0x20000 0x10000
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index df4c1a447842..be16a7f3ca88 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -111,6 +111,7 @@ config FSL_DSPI
>
>  config ICH_SPI
>         bool "Intel ICH SPI driver"
> +       imply SPI_FLASH_BAR
>         help
>           Enable the Intel ICH SPI driver. This driver can be used to
>           access the SPI NOR flash on platforms embedding this Intel
> @@ -140,6 +141,7 @@ config MT7621_SPI
>
>  config MTK_QSPI
>         bool "Mediatek QSPI driver"
> +       imply SPI_FLASH_BAR
>         help
>           Enable the Mediatek QSPI driver. This driver can be
>           used to access the SPI NOR flash on platforms embedding this
> @@ -172,6 +174,7 @@ config PL022_SPI
>  config RENESAS_RPC_SPI
>         bool "Renesas RPC SPI driver"
>         depends on RCAR_GEN3
> +       imply SPI_FLASH_BAR
>         help
>           Enable the Renesas RPC SPI driver, used to access SPI NOR flash
>           on Renesas RCar Gen3 SoCs. This uses driver model and requires a
> @@ -213,6 +216,7 @@ config SANDBOX_SPI
>  config STM32_QSPI
>         bool "STM32F7 QSPI driver"
>         depends on STM32F7
> +       imply SPI_FLASH_BAR
>         help
>           Enable the STM32F7 Quad-SPI (QSPI) driver. This driver can be
>           used to access the SPI NOR flash chips on platforms embedding
> @@ -316,6 +320,7 @@ config FSL_ESPI
>
>  config FSL_QSPI
>         bool "Freescale QSPI driver"
> +       imply SPI_FLASH_BAR
>         help
>           Enable the Freescale Quad-SPI (QSPI) driver. This driver can be
>           used to access the SPI NOR flash on platforms embedding this
> diff --git a/include/configs/T102xQDS.h b/include/configs/T102xQDS.h
> index f3b0fe0144ff..c63dfd318680 100644
> --- a/include/configs/T102xQDS.h
> +++ b/include/configs/T102xQDS.h
> @@ -501,7 +501,6 @@ unsigned long get_board_ddr_clk(void);
>  /*
>   * eSPI - Enhanced SPI
>   */
> -#define CONFIG_SPI_FLASH_BAR
>  #define CONFIG_SF_DEFAULT_SPEED         10000000
>  #define CONFIG_SF_DEFAULT_MODE   0
>
> diff --git a/include/configs/T102xRDB.h b/include/configs/T102xRDB.h
> index 673d1112e22a..c72be9fb387a 100644
> --- a/include/configs/T102xRDB.h
> +++ b/include/configs/T102xRDB.h
> @@ -498,7 +498,6 @@ unsigned long get_board_ddr_clk(void);
>  /*
>   * eSPI - Enhanced SPI
>   */
> -#define CONFIG_SPI_FLASH_BAR
>  #define CONFIG_SF_DEFAULT_SPEED        10000000
>  #define CONFIG_SF_DEFAULT_MODE 0
>
> diff --git a/include/configs/T104xRDB.h b/include/configs/T104xRDB.h
> index 7375d6ff4607..4cecab3401e9 100644
> --- a/include/configs/T104xRDB.h
> +++ b/include/configs/T104xRDB.h
> @@ -521,7 +521,6 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_sd_rcw.cfg
>  /*
>   * eSPI - Enhanced SPI
>   */
> -#define CONFIG_SPI_FLASH_BAR
>  #define CONFIG_SF_DEFAULT_SPEED         10000000
>  #define CONFIG_SF_DEFAULT_MODE          0
>  #define CONFIG_ENV_SPI_BUS              0
> diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h
> index 1dcf2779d755..69ec109831a0 100644
> --- a/include/configs/T208xQDS.h
> +++ b/include/configs/T208xQDS.h
> @@ -497,7 +497,6 @@ unsigned long get_board_ddr_clk(void);
>   */
>  #ifdef CONFIG_SPI_FLASH
>
> -#define CONFIG_SPI_FLASH_BAR
>  #define CONFIG_SF_DEFAULT_SPEED         10000000
>  #define CONFIG_SF_DEFAULT_MODE   0
>  #endif
> diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h
> index ddb60b3d6d94..1d6a390b72df 100644
> --- a/include/configs/T208xRDB.h
> +++ b/include/configs/T208xRDB.h
> @@ -437,7 +437,6 @@ unsigned long get_board_ddr_clk(void);
>   * eSPI - Enhanced SPI
>   */
>  #ifdef CONFIG_SPI_FLASH
> -#define CONFIG_SPI_FLASH_BAR
>  #define CONFIG_SF_DEFAULT_SPEED         10000000
>  #define CONFIG_SF_DEFAULT_MODE   0
>  #endif
> diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h
> index 6cafdc66859b..6e23fa29b33b 100644
> --- a/include/configs/gw_ventana.h
> +++ b/include/configs/gw_ventana.h
> @@ -52,7 +52,6 @@
>  /* SPI */
>  #ifdef CONFIG_CMD_SF
>    #define CONFIG_SPI_FLASH_MTD
> -  #define CONFIG_SPI_FLASH_BAR
>    #define CONFIG_SF_DEFAULT_BUS              0
>    #define CONFIG_SF_DEFAULT_CS               0
>                                              /* GPIO 3-19 (21248) */
> diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h
> index a8f7300c1eb2..c762c93ac0aa 100644
> --- a/include/configs/km/kmp204x-common.h
> +++ b/include/configs/km/kmp204x-common.h
> @@ -253,7 +253,6 @@ int get_scl(void);
>  /*
>   * eSPI - Enhanced SPI
>   */
> -#define CONFIG_SPI_FLASH_BAR   /* 4 byte-addressing */
>  #define CONFIG_SF_DEFAULT_SPEED         20000000
>  #define CONFIG_SF_DEFAULT_MODE          0
>
> diff --git a/include/configs/ls1021aiot.h b/include/configs/ls1021aiot.h
> index 10dc0c68435b..6be8df109bd6 100644
> --- a/include/configs/ls1021aiot.h
> +++ b/include/configs/ls1021aiot.h
> @@ -135,7 +135,6 @@
>  #define QSPI0_AMBA_BASE                        0x40000000
>  #define FSL_QSPI_FLASH_SIZE            (1 << 24)
>  #define FSL_QSPI_FLASH_NUM             2
> -#define CONFIG_SPI_FLASH_BAR
>  #define CONFIG_SPI_FLASH_SPANSION
>  #endif
>
> --
> 2.20.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot



-- 
Jagan Teki
Senior Linux Kernel Engineer | Amarula Solutions
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list