Skip to contentSkip to conversation

xtensa: Switch to using CONFIG_XTENSA for building device trees

PATCH In review Tom Rini 2 participants 19 messages Jun 11, 2022 – Jun 29, 2022

Subsystems (21)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/15 xtensa: Switch to using CONFIG_XTENSA for building device trees

The only use of CONFIG_XTFPGA was to build all of the in-tree device trees. Switch to using CONFIG_XTENSA instead of a non-Kconfig symbol.

---
 arch/xtensa/dts/Makefile | 2 +-
 include/configs/xtfpga.h | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)
arch/xtensa/dts/Makefile +1 -1
index fbbdefaf2cf1..c22c50ac4e5d 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0+
 
-dtb-$(CONFIG_XTFPGA) += ml605.dtb ml605_nommu.dtb kc705.dtb kc705_nommu.dtb
+dtb-$(CONFIG_XTENSA) += ml605.dtb ml605_nommu.dtb kc705.dtb kc705_nommu.dtb
 
 include $(srctree)/scripts/Makefile.dts
 
include/configs/xtfpga.h +0 -6
index 7392582b5e46..f1ea47654671 100644
@@ -16,12 +16,6 @@
  * differences.
  */
 
-/*=====================*/
-/* Board and Processor */
-/*=====================*/
-
-#define CONFIG_XTFPGA
-
 /*===================*/
 /* RAM Layout        */
 /*===================*/
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/15 ata: dwc_ahsata: Remove legacy non-CONFIG_AHCI code

The migration deadline for this has passed and all boards have been updated, remove this legacy code and references for it.

---
 drivers/ata/dwc_ahsata.c     | 133 -----------------------------------
 include/configs/cm_fx6.h     |   2 -
 include/configs/ge_bx50v3.h  |   2 -
 include/configs/gw_ventana.h |   2 -
 include/configs/m53menlo.h   |   2 -
 include/configs/mx53loco.h   |   2 -
 include/configs/mx6cuboxi.h  |   2 -
 include/configs/nitrogen6x.h |   2 -
 include/configs/tbs2910.h    |   2 -
 include/configs/wandboard.h  |   2 -
 10 files changed, 151 deletions(-)
drivers/ata/dwc_ahsata.c +0 -133
index d9fd850c6fae..1a2c3c2fe707 100644
@@ -844,138 +844,6 @@ static ulong sata_write_common(struct ahci_uc_priv *uc_priv,
 	return rc;
 }
 
-#if !CONFIG_IS_ENABLED(AHCI)
-static int ahci_init_one(int pdev)
-{
-	int rc;
-	struct ahci_uc_priv *uc_priv = NULL;
-
-	uc_priv = malloc(sizeof(struct ahci_uc_priv));
-	if (!uc_priv)
-		return -ENOMEM;
-
-	memset(uc_priv, 0, sizeof(struct ahci_uc_priv));
-	uc_priv->dev = pdev;
-
-	uc_priv->host_flags = ATA_FLAG_SATA
-				| ATA_FLAG_NO_LEGACY
-				| ATA_FLAG_MMIO
-				| ATA_FLAG_PIO_DMA
-				| ATA_FLAG_NO_ATAPI;
-
-	uc_priv->mmio_base = (void __iomem *)CONFIG_DWC_AHSATA_BASE_ADDR;
-
-	/* initialize adapter */
-	rc = ahci_host_init(uc_priv);
-	if (rc)
-		goto err_out;
-
-	ahci_print_info(uc_priv);
-
-	/* Save the uc_private struct to block device struct */
-	sata_dev_desc[pdev].priv = uc_priv;
-
-	return 0;
-
-err_out:
-	if (uc_priv)
-		free(uc_priv);
-	return rc;
-}
-
-int init_sata(int dev)
-{
-	struct ahci_uc_priv *uc_priv = NULL;
-
-#if defined(CONFIG_MX6)
-	if (!is_mx6dq() && !is_mx6dqp())
-		return 1;
-#endif
-	if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) {
-		printf("The sata index %d is out of ranges\n\r", dev);
-		return -1;
-	}
-
-	ahci_init_one(dev);
-
-	uc_priv = sata_dev_desc[dev].priv;
-
-	return dwc_ahci_start_ports(uc_priv) ? 1 : 0;
-}
-
-int reset_sata(int dev)
-{
-	struct ahci_uc_priv *uc_priv;
-	struct sata_host_regs *host_mmio;
-
-	if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) {
-		printf("The sata index %d is out of ranges\n\r", dev);
-		return -1;
-	}
-
-	uc_priv = sata_dev_desc[dev].priv;
-	if (NULL == uc_priv)
-		/* not initialized, so nothing to reset */
-		return 0;
-
-	host_mmio = uc_priv->mmio_base;
-	setbits_le32(&host_mmio->ghc, SATA_HOST_GHC_HR);
-	while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR)
-		udelay(100);
-
-	free(uc_priv);
-	memset(&sata_dev_desc[dev], 0, sizeof(struct blk_desc));
-
-	return 0;
-}
-
-int sata_port_status(int dev, int port)
-{
-	struct sata_port_regs *port_mmio;
-	struct ahci_uc_priv *uc_priv = NULL;
-
-	if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1))
-		return -EINVAL;
-
-	if (sata_dev_desc[dev].priv == NULL)
-		return -ENODEV;
-
-	uc_priv = sata_dev_desc[dev].priv;
-	port_mmio = uc_priv->port[port].port_mmio;
-
-	return readl(&port_mmio->ssts) & SATA_PORT_SSTS_DET_MASK;
-}
-
-/*
- * SATA interface between low level driver and command layer
- */
-ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer)
-{
-	struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv;
-
-	return sata_read_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt,
-				buffer);
-}
-
-ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer)
-{
-	struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv;
-
-	return sata_write_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt,
-				 buffer);
-}
-
-int scan_sata(int dev)
-{
-	struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv;
-	struct blk_desc *pdev = &sata_dev_desc[dev];
-
-	return dwc_ahsata_scan_common(uc_priv, pdev);
-}
-#endif /* CONFIG_IS_ENABLED(AHCI) */
-
-#if CONFIG_IS_ENABLED(AHCI)
-
 int dwc_ahsata_port_status(struct udevice *dev, int port)
 {
 	struct ahci_uc_priv *uc_priv = dev_get_uclass_priv(dev);
@@ -1109,4 +977,3 @@ U_BOOT_DRIVER(dwc_ahsata_ahci) = {
 	.probe    = dwc_ahsata_probe,
 };
 #endif
-#endif
include/configs/cm_fx6.h +0 -2
index 07ad6fde28d0..a0bbb409cff4 100644
@@ -151,8 +151,6 @@
 
 /* SATA */
 #define CONFIG_LBA48
-#define CONFIG_DWC_AHSATA_PORT_ID	0
-#define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
 
 /* Boot */
 #define CONFIG_SYS_BOOTMAPSZ	        (8 << 20)
include/configs/ge_bx50v3.h +0 -2
index 74a2eaa78962..66ea80982b6c 100644
@@ -19,8 +19,6 @@
 
 /* SATA Configs */
 #ifdef CONFIG_CMD_SATA
-#define CONFIG_DWC_AHSATA_PORT_ID	0
-#define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
 #define CONFIG_LBA48
 #endif
 
include/configs/gw_ventana.h +0 -2
index 6aa6c6262e3f..53954cee3b3c 100644
@@ -32,8 +32,6 @@
  * SATA Configs
  */
 #ifdef CONFIG_CMD_SATA
-  #define CONFIG_DWC_AHSATA_PORT_ID	0
-  #define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
   #define CONFIG_LBA48
 #endif
 
include/configs/m53menlo.h +0 -2
index ed44f355da81..66230f0bf17e 100644
@@ -86,8 +86,6 @@
  * SATA
  */
 #ifdef CONFIG_CMD_SATA
-#define CONFIG_DWC_AHSATA_PORT_ID	0
-#define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_BASE_ADDR
 #define CONFIG_LBA48
 #endif
 
include/configs/mx53loco.h +0 -2
index 0268a48c86f4..0afd68b880e4 100644
@@ -101,8 +101,6 @@
 #define CONFIG_SYS_INIT_RAM_SIZE	(IRAM_SIZE)
 
 #ifdef CONFIG_CMD_SATA
-	#define CONFIG_DWC_AHSATA_PORT_ID       0
-	#define CONFIG_DWC_AHSATA_BASE_ADDR     SATA_BASE_ADDR
 	#define CONFIG_LBA48
 #endif
 
include/configs/mx6cuboxi.h +0 -2
index 76fbbf42daff..5b4fbba023f9 100644
@@ -18,8 +18,6 @@
 
 /* SATA Configuration */
 #ifdef CONFIG_CMD_SATA
-#define CONFIG_DWC_AHSATA_PORT_ID       0
-#define CONFIG_DWC_AHSATA_BASE_ADDR     SATA_ARB_BASE_ADDR
 #define CONFIG_LBA48
 #endif
 
include/configs/nitrogen6x.h +0 -2
index 72f2dfb5daca..9b84c36f5145 100644
@@ -23,8 +23,6 @@
  * SATA Configs
  */
 #ifdef CONFIG_CMD_SATA
-#define CONFIG_DWC_AHSATA_PORT_ID	0
-#define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
 #define CONFIG_LBA48
 #endif
 
include/configs/tbs2910.h +0 -2
index eb63e75cddf5..3d0c856103e7 100644
@@ -36,8 +36,6 @@
 
 /* SATA */
 #ifdef CONFIG_CMD_SATA
-#define CONFIG_DWC_AHSATA_PORT_ID	0
-#define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
 #define CONFIG_LBA48
 #define CONFIG_SYS_64BIT_LBA
 #endif
include/configs/wandboard.h +0 -2
index d4224127146e..eb0778d072a5 100644
@@ -17,8 +17,6 @@
 /* SATA Configs */
 
 #ifdef CONFIG_CMD_SATA
-#define CONFIG_DWC_AHSATA_PORT_ID	0
-#define CONFIG_DWC_AHSATA_BASE_ADDR	SATA_ARB_BASE_ADDR
 #define CONFIG_LBA48
 #endif
 
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 3/15 ata: fsl_sata: Remove legacy non-BLK code

In reply to Tom Rini

The migration deadline for this has passed and all boards have been updated, remove this legacy code and references for it.

---
 drivers/ata/fsl_sata.c           | 70 ++------------------------------
 drivers/ata/fsl_sata.h           |  2 -
 include/configs/MPC837XERDB.h    |  9 ----
 include/configs/P1010RDB.h       |  7 ----
 include/configs/P2041RDB.h       |  7 ----
 include/configs/T104xRDB.h       |  4 --
 include/configs/T208xQDS.h       |  6 ---
 include/configs/T208xRDB.h       |  6 ---
 include/configs/T4240RDB.h       | 14 -------
 include/configs/corenet_ds.h     |  7 ----
 include/configs/ls1028aqds.h     |  1 -
 include/configs/ls1028ardb.h     |  1 -
 include/configs/ls1088a_common.h |  5 ---
 include/configs/ls2080aqds.h     |  5 ---
 include/configs/ls2080ardb.h     |  5 ---
 include/configs/lx2160a_common.h |  7 ----
 16 files changed, 3 insertions(+), 153 deletions(-)
drivers/ata/fsl_sata.c +3 -67
index d1bab931895a..6db4247368eb 100644
@@ -6,10 +6,13 @@
  */
 
 #include <common.h>
+#include <ahci.h>
 #include <blk.h>
 #include <command.h>
 #include <console.h>
 #include <cpu_func.h>
+#include <dm.h>
+#include <dm/device-internal.h>
 #include <log.h>
 #include <asm/io.h>
 #include <asm/processor.h>
@@ -21,33 +24,6 @@
 #include <linux/delay.h>
 #include "fsl_sata.h"
 
-#if CONFIG_IS_ENABLED(BLK)
-#include <dm.h>
-#include <ahci.h>
-#include <blk.h>
-#include <dm/device-internal.h>
-#else
-#ifndef CONFIG_SYS_SATA1_FLAGS
-	#define CONFIG_SYS_SATA1_FLAGS	FLAGS_DMA
-#endif
-#ifndef CONFIG_SYS_SATA2_FLAGS
-	#define CONFIG_SYS_SATA2_FLAGS	FLAGS_DMA
-#endif
-
-static struct fsl_sata_info fsl_sata_info[] = {
-#ifdef CONFIG_SATA1
-	{CONFIG_SYS_SATA1, CONFIG_SYS_SATA1_FLAGS},
-#else
-	{0, 0},
-#endif
-#ifdef CONFIG_SATA2
-	{CONFIG_SYS_SATA2, CONFIG_SYS_SATA2_FLAGS},
-#else
-	{0, 0},
-#endif
-};
-#endif
-
 static inline void sdelay(unsigned long sec)
 {
 	unsigned long i;
@@ -86,11 +62,7 @@ static int ata_wait_register(unsigned __iomem *addr, u32 mask,
 	return (i < timeout_msec) ? 0 : -1;
 }
 
-#if !CONFIG_IS_ENABLED(BLK)
-int init_sata(int dev)
-#else
 static int init_sata(struct fsl_ata_priv *priv, int dev)
-#endif
 {
 	u32 length, align;
 	cmd_hdr_tbl_t *cmd_hdr;
@@ -129,15 +101,9 @@ static int init_sata(struct fsl_ata_priv *priv, int dev)
 	snprintf(sata->name, 12, "SATA%d:", dev);
 
 	/* Set the controller register base address to device struct */
-#if !CONFIG_IS_ENABLED(BLK)
-	sata_dev_desc[dev].priv = (void *)sata;
-	reg = (fsl_sata_reg_t *)(fsl_sata_info[dev].sata_reg_base);
-	sata->dma_flag = fsl_sata_info[dev].flags;
-#else
 	reg = (fsl_sata_reg_t *)(priv->base + priv->offset * dev);
 	sata->dma_flag = priv->flag;
 	priv->fsl_sata = sata;
-#endif
 	sata->reg_base = reg;
 
 	/* Allocate the command header table, 4 bytes aligned */
@@ -738,17 +704,11 @@ static u32 ata_low_level_rw_lba28(fsl_sata_t *sata, u32 blknr, u32 blkcnt,
 /*
  * SATA interface between low level driver and command layer
  */
-#if !CONFIG_IS_ENABLED(BLK)
-ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer)
-{
-	fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv;
-#else
 static ulong sata_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
 		       void *buffer)
 {
 	struct fsl_ata_priv *priv = dev_get_plat(dev);
 	fsl_sata_t *sata = priv->fsl_sata;
-#endif
 	u32 rc;
 
 	if (sata->lba48)
@@ -760,17 +720,11 @@ static ulong sata_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
 	return rc;
 }
 
-#if !CONFIG_IS_ENABLED(BLK)
-ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer)
-{
-	fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv;
-#else
 static ulong sata_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
 			const void *buffer)
 {
 	struct fsl_ata_priv *priv = dev_get_plat(dev);
 	fsl_sata_t *sata = priv->fsl_sata;
-#endif
 	u32 rc;
 
 	if (sata->lba48) {
@@ -801,17 +755,11 @@ static void fsl_sata_identify(fsl_sata_t *sata, u16 *id)
 	ata_swap_buf_le16(id, ATA_ID_WORDS);
 }
 
-#if !CONFIG_IS_ENABLED(BLK)
-int scan_sata(int dev)
-{
-	fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv;
-#else
 static int scan_sata(struct udevice *dev)
 {
 	struct blk_desc *desc = dev_get_uclass_plat(dev);
 	struct fsl_ata_priv *priv = dev_get_plat(dev);
 	fsl_sata_t *sata = priv->fsl_sata;
-#endif
 
 	unsigned char serial[ATA_ID_SERNO_LEN + 1];
 	unsigned char firmware[ATA_ID_FW_REV_LEN + 1];
@@ -853,22 +801,12 @@ static int scan_sata(struct udevice *dev)
 		debug("Device supports LBA28\n\r");
 #endif
 
-#if !CONFIG_IS_ENABLED(BLK)
-	memcpy(sata_dev_desc[dev].product, serial, sizeof(serial));
-	memcpy(sata_dev_desc[dev].revision, firmware, sizeof(firmware));
-	memcpy(sata_dev_desc[dev].vendor, product, sizeof(product));
-	sata_dev_desc[dev].lba = (u32)n_sectors;
-#ifdef CONFIG_LBA48
-	sata_dev_desc[dev].lba48 = sata->lba48;
-#endif
-#else
 	memcpy(desc->product, serial, sizeof(serial));
 	memcpy(desc->revision, firmware, sizeof(firmware));
 	memcpy(desc->vendor, product, sizeof(product));
 	desc->lba = n_sectors;
 #ifdef CONFIG_LBA48
 	desc->lba48 = sata->lba48;
-#endif
 #endif
 
 	/* Get the NCQ queue depth from device */
@@ -890,7 +828,6 @@ static int scan_sata(struct udevice *dev)
 	return 0;
 }
 
-#if CONFIG_IS_ENABLED(BLK)
 static const struct blk_ops sata_fsl_blk_ops = {
 	.read	= sata_read,
 	.write	= sata_write,
@@ -1042,4 +979,3 @@ U_BOOT_DRIVER(fsl_ahci) = {
 	.remove = fsl_ata_remove,
 	.priv_auto	= sizeof(struct fsl_ata_priv),
 };
-#endif
drivers/ata/fsl_sata.h +0 -2
index 5b9daa79e023..e1ea8eb3a183 100644
@@ -319,7 +319,6 @@ typedef struct fsl_sata {
 #define READ_CMD	0
 #define WRITE_CMD	1
 
-#if CONFIG_IS_ENABLED(BLK)
 struct fsl_ata_priv {
 	u32 base;
 	u32 flag;
@@ -327,6 +326,5 @@ struct fsl_ata_priv {
 	u32 offset;
 	fsl_sata_t *fsl_sata;
 };
-#endif
 
 #endif /* __FSL_SATA_H__ */
include/configs/MPC837XERDB.h +0 -9
index 4995bcee856d..de197a0bd117 100644
@@ -265,15 +265,6 @@
 /*
  * SATA
  */
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1_OFFSET	0x18000
-#define CONFIG_SYS_SATA1	(CONFIG_SYS_IMMR + CONFIG_SYS_SATA1_OFFSET)
-#define CONFIG_SYS_SATA1_FLAGS	FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2_OFFSET	0x19000
-#define CONFIG_SYS_SATA2	(CONFIG_SYS_IMMR + CONFIG_SYS_SATA2_OFFSET)
-#define CONFIG_SYS_SATA2_FLAGS	FLAGS_DMA
-
 #ifdef CONFIG_FSL_SATA
 #define CONFIG_LBA48
 #endif
include/configs/P1010RDB.h +0 -7
index d5b8cfaea397..15add282d706 100644
@@ -476,13 +476,6 @@ extern unsigned long get_sdram_size(void);
 #define CONFIG_FSL_SATA_V2
 
 #ifdef CONFIG_FSL_SATA
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
-
 #define CONFIG_LBA48
 #endif /* #ifdef CONFIG_FSL_SATA  */
 
include/configs/P2041RDB.h +0 -7
index 38acb38690d8..8a7123921bb2 100644
@@ -340,13 +340,6 @@
 #define CONFIG_FSL_SATA_V2
 
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
-
 #define CONFIG_LBA48
 #endif
 
include/configs/T104xRDB.h +0 -4
index bb05b2ed7c98..e7ebf795451d 100644
@@ -393,10 +393,6 @@
 /* SATA */
 #define CONFIG_FSL_SATA_V2
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-
 #define CONFIG_LBA48
 #endif
 
include/configs/T208xQDS.h +0 -6
index e46488b3c0ed..06be25bf5a75 100644
@@ -462,12 +462,6 @@
  * SATA
  */
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
 #define CONFIG_LBA48
 #endif
 
include/configs/T208xRDB.h +0 -6
index d4bf938ac6f6..f96208d26579 100644
@@ -418,12 +418,6 @@
  * SATA
  */
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
 #define CONFIG_LBA48
 #endif
 
include/configs/T4240RDB.h +0 -14
index ebdd47edf952..542786aeef18 100644
@@ -155,13 +155,6 @@
 
 /* SATA */
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
-
 #define CONFIG_LBA48
 #endif
 
@@ -435,13 +428,6 @@
 
 /* SATA */
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
-
 #define CONFIG_LBA48
 #endif
 
include/configs/corenet_ds.h +0 -7
index 56b56e8a2e2c..6006f7638220 100644
@@ -339,13 +339,6 @@
 
 /* SATA */
 #ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_SATA1
-#define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
-#define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
-#define CONFIG_SATA2
-#define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
-#define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
-
 #define CONFIG_LBA48
 #endif
 
include/configs/ls1028aqds.h +0 -1
index 35363ccda1aa..52703632a7e3 100644
@@ -60,7 +60,6 @@
 
 /* SATA */
 
-#define CONFIG_SYS_SATA1			AHCI_BASE_ADDR1
 #ifndef SPL_NO_ENV
 #undef CONFIG_EXTRA_ENV_SETTINGS
 #define CONFIG_EXTRA_ENV_SETTINGS \
include/configs/ls1028ardb.h +0 -1
index 91223789b839..665723b15116 100644
@@ -53,7 +53,6 @@
 #define SCSI_VEND_ID 0x1b4b
 #define SCSI_DEV_ID  0x9170
 #define CONFIG_SCSI_DEV_LIST {SCSI_VEND_ID, SCSI_DEV_ID}
-#define CONFIG_SYS_SATA1                        AHCI_BASE_ADDR1
 
 /* Initial environment variables */
 #ifndef SPL_NO_ENV
include/configs/ls1088a_common.h +0 -5
index 9a29bb6ca1ea..ff85f1eb4ac8 100644
@@ -115,11 +115,6 @@ unsigned long long get_qixis_addr(void);
 
 /* Miscellaneous configurable options */
 
-/* SATA */
-#ifdef CONFIG_SCSI
-#define CONFIG_SYS_SATA1		AHCI_BASE_ADDR1
-#endif
-
 /* Physical Memory Map */
 
 #define CONFIG_HWCONFIG
include/configs/ls2080aqds.h +0 -5
index 9ce48a09602e..f2eae073810b 100644
@@ -29,11 +29,6 @@
 #define CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR	1
 #endif
 
-/* SATA */
-
-#define CONFIG_SYS_SATA1			AHCI_BASE_ADDR1
-#define CONFIG_SYS_SATA2			AHCI_BASE_ADDR2
-
 #define CONFIG_SYS_NOR0_CSPR_EXT	(0x0)
 #define CONFIG_SYS_NOR_AMASK		IFC_AMASK(128*1024*1024)
 #define CONFIG_SYS_NOR_AMASK_EARLY	IFC_AMASK(64*1024*1024)
include/configs/ls2080ardb.h +0 -5
index cdfc9fd82e84..43bcc5a9b11c 100644
@@ -34,11 +34,6 @@
 #define CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR	1
 #endif
 
-/* SATA */
-
-#define CONFIG_SYS_SATA1			AHCI_BASE_ADDR1
-#define CONFIG_SYS_SATA2			AHCI_BASE_ADDR2
-
 #if !defined(CONFIG_FSL_QSPI) || defined(CONFIG_TFABOOT)
 
 #define CONFIG_SYS_NOR0_CSPR_EXT	(0x0)
include/configs/lx2160a_common.h +0 -7
index 56096682c06e..f8c3a0923abd 100644
@@ -95,13 +95,6 @@
 #define CONFIG_PCI_SCAN_SHOW
 #endif
 
-/* SATA */
-
-#ifdef CONFIG_SCSI
-#define CONFIG_SYS_SATA1		AHCI_BASE_ADDR1
-#define CONFIG_SYS_SATA2		AHCI_BASE_ADDR2
-#endif
-
 /* USB */
 #ifdef CONFIG_USB_HOST
 #ifndef CONFIG_TARGET_LX2162AQDS
Signature · 1 line
2.25.1
author
#3 lore raw

PATCH 4/15 Convert CONFIG_FSL_SATA_V2 to Kconfig

In reply to Tom Rini

This converts the following to Kconfig:
CONFIG_FSL_SATA_V2

---
 configs/P1010RDB-PA_36BIT_NAND_defconfig     | 1 +
 configs/P1010RDB-PA_36BIT_NOR_defconfig      | 1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig   | 1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1010RDB-PA_NAND_defconfig           | 1 +
 configs/P1010RDB-PA_NOR_defconfig            | 1 +
 configs/P1010RDB-PA_SDCARD_defconfig         | 1 +
 configs/P1010RDB-PA_SPIFLASH_defconfig       | 1 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig     | 1 +
 configs/P1010RDB-PB_36BIT_NOR_defconfig      | 1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig   | 1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig | 1 +
 configs/P1010RDB-PB_NAND_defconfig           | 1 +
 configs/P1010RDB-PB_NOR_defconfig            | 1 +
 configs/P1010RDB-PB_SDCARD_defconfig         | 1 +
 configs/P1010RDB-PB_SPIFLASH_defconfig       | 1 +
 configs/P2041RDB_NAND_defconfig              | 1 +
 configs/P2041RDB_SDCARD_defconfig            | 1 +
 configs/P2041RDB_SPIFLASH_defconfig          | 1 +
 configs/P2041RDB_defconfig                   | 1 +
 configs/P3041DS_NAND_defconfig               | 1 +
 configs/P3041DS_SDCARD_defconfig             | 1 +
 configs/P3041DS_SPIFLASH_defconfig           | 1 +
 configs/P3041DS_defconfig                    | 1 +
 configs/P5040DS_NAND_defconfig               | 1 +
 configs/P5040DS_SDCARD_defconfig             | 1 +
 configs/P5040DS_SPIFLASH_defconfig           | 1 +
 configs/P5040DS_defconfig                    | 1 +
 configs/T2080QDS_NAND_defconfig              | 1 +
 configs/T2080QDS_SDCARD_defconfig            | 1 +
 configs/T2080QDS_SECURE_BOOT_defconfig       | 1 +
 configs/T2080QDS_SPIFLASH_defconfig          | 1 +
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig    | 1 +
 configs/T2080QDS_defconfig                   | 1 +
 configs/T2080RDB_NAND_defconfig              | 1 +
 configs/T2080RDB_SDCARD_defconfig            | 1 +
 configs/T2080RDB_SPIFLASH_defconfig          | 1 +
 configs/T2080RDB_defconfig                   | 1 +
 configs/T2080RDB_revD_NAND_defconfig         | 1 +
 configs/T2080RDB_revD_SDCARD_defconfig       | 1 +
 configs/T2080RDB_revD_SPIFLASH_defconfig     | 1 +
 configs/T2080RDB_revD_defconfig              | 1 +
 configs/T4240RDB_SDCARD_defconfig            | 1 +
 configs/T4240RDB_defconfig                   | 1 +
 drivers/ata/Kconfig                          | 7 +++++++
 include/configs/P1010RDB.h                   | 1 -
 include/configs/P2041RDB.h                   | 1 -
 include/configs/P3041DS.h                    | 1 -
 include/configs/P5040DS.h                    | 1 -
 include/configs/T104xRDB.h                   | 1 -
 include/configs/T208xQDS.h                   | 1 -
 include/configs/T208xRDB.h                   | 1 -
 include/configs/T4240RDB.h                   | 1 -
 53 files changed, 51 insertions(+), 8 deletions(-)
configs/P1010RDB-PA_36BIT_NAND_defconfig +1 -0
index 6c4142c200b5..85fa20534637 100644
@@ -73,6 +73,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_36BIT_NOR_defconfig +1 -0
index fb74f9bd5b4f..1972f140f90d 100644
@@ -42,6 +42,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_36BIT_SDCARD_defconfig +1 -0
index 324ad908bb09..b057d1fad3d8 100644
@@ -63,6 +63,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig +1 -0
index 2299f450a972..da5041068af3 100644
@@ -66,6 +66,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_NAND_defconfig +1 -0
index 5813c75f10a6..b5ec62d3f9ae 100644
@@ -72,6 +72,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_NOR_defconfig +1 -0
index 31cf6037e2fe..2e3dc8f5e701 100644
@@ -41,6 +41,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_SDCARD_defconfig +1 -0
index a51f9acd5861..ed63b5e936ba 100644
@@ -62,6 +62,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PA_SPIFLASH_defconfig +1 -0
index c2b5d7762ce3..4c22687db87b 100644
@@ -65,6 +65,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_36BIT_NAND_defconfig +1 -0
index 4caf43dade2a..4291cbf9c233 100644
@@ -74,6 +74,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_36BIT_NOR_defconfig +1 -0
index d5a9287678a1..367632894b1c 100644
@@ -43,6 +43,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_36BIT_SDCARD_defconfig +1 -0
index 50053876f8ec..7182e0b33077 100644
@@ -64,6 +64,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig +1 -0
index 6f0cd359abbf..45ef797b89fd 100644
@@ -67,6 +67,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_NAND_defconfig +1 -0
index 16b52196aeb8..5e052733f57f 100644
@@ -73,6 +73,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_NOR_defconfig +1 -0
index 9529d97bccfa..2cd571443da6 100644
@@ -42,6 +42,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_SDCARD_defconfig +1 -0
index 6d3be4303a28..d8e872bd6d0e 100644
@@ -63,6 +63,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P1010RDB-PB_SPIFLASH_defconfig +1 -0
index a54f7eab5f20..b9887e3e3e2f 100644
@@ -66,6 +66,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=66666666
configs/P2041RDB_NAND_defconfig +1 -0
index 9389d992562f..fac2bef7e6af 100644
@@ -46,6 +46,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2041RDB_SDCARD_defconfig +1 -0
index 31d5814d55c4..5516850bb3c2 100644
@@ -46,6 +46,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2041RDB_SPIFLASH_defconfig +1 -0
index 7e913c81366b..a42d21093c43 100644
@@ -48,6 +48,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2041RDB_defconfig +1 -0
index 23165b83f74f..8265602bcc7a 100644
@@ -43,6 +43,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P3041DS_NAND_defconfig +1 -0
index 7c5b6d288b04..0c07556ef242 100644
@@ -44,6 +44,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P3041DS_SDCARD_defconfig +1 -0
index 41ec73a6be44..2c5e5da15fb2 100644
@@ -44,6 +44,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P3041DS_SPIFLASH_defconfig +1 -0
index bdbf2e959e3d..b8a1d6790998 100644
@@ -46,6 +46,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P3041DS_defconfig +1 -0
index 953cbd4b0b77..bce873a0bcc2 100644
@@ -41,6 +41,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P5040DS_NAND_defconfig +1 -0
index 6e0bdb2e1303..ac4bb3b19b44 100644
@@ -45,6 +45,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P5040DS_SDCARD_defconfig +1 -0
index e040fab7cb8d..06214ca5c35f 100644
@@ -44,6 +44,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P5040DS_SPIFLASH_defconfig +1 -0
index 1e1a2f803657..0c9d564a12c3 100644
@@ -46,6 +46,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/P5040DS_defconfig +1 -0
index ec897c33231e..7e543872a16c 100644
@@ -41,6 +41,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
configs/T2080QDS_NAND_defconfig +1 -0
index b71659a6600d..6f3af93e8832 100644
@@ -72,6 +72,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
configs/T2080QDS_SDCARD_defconfig +1 -0
index 1b8ef0cb365f..4314c924fac2 100644
@@ -72,6 +72,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
configs/T2080QDS_SECURE_BOOT_defconfig +1 -0
index f4a64abfb22d..4a4c6cde5cae 100644
@@ -47,6 +47,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
 CONFIG_DIMM_SLOTS_PER_CTLR=2
configs/T2080QDS_SPIFLASH_defconfig +1 -0
index bcef31a665fc..9d275b75fed8 100644
@@ -75,6 +75,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig +1 -0
index 6158be76fe50..b5e0a539becd 100644
@@ -45,6 +45,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
configs/T2080QDS_defconfig +1 -0
index fd658454c4a0..1c14aedae2c2 100644
@@ -48,6 +48,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DYNAMIC_DDR_CLK_FREQ=y
configs/T2080RDB_NAND_defconfig +1 -0
index 9e8e3ea8b5af..80c7b18634c6 100644
@@ -74,6 +74,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_SDCARD_defconfig +1 -0
index b6a0b857a725..80b33a9ed5b1 100644
@@ -74,6 +74,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_SPIFLASH_defconfig +1 -0
index b0f0d165cdd2..810eea042d94 100644
@@ -77,6 +77,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_defconfig +1 -0
index 66d043309b36..18d9d547372d 100644
@@ -50,6 +50,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_revD_NAND_defconfig +1 -0
index feba8e54b5cb..2a68163b5685 100644
@@ -75,6 +75,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_revD_SDCARD_defconfig +1 -0
index 0495786bc5f9..a9af2951cb9b 100644
@@ -75,6 +75,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_revD_SPIFLASH_defconfig +1 -0
index bb7c711d5575..a3cda0da8050 100644
@@ -78,6 +78,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T2080RDB_revD_defconfig +1 -0
index 56b174fad742..c300b82ea8d8 100644
@@ -51,6 +51,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC3"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133330000
configs/T4240RDB_SDCARD_defconfig +1 -0
index fb35c83f1b6c..2bc568939360 100644
@@ -66,6 +66,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133333333
configs/T4240RDB_defconfig +1 -0
index 4f19024a6be5..67061d03d564 100644
@@ -42,6 +42,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_FSL_SATA_V2=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_CLK_FREQ=133333333
drivers/ata/Kconfig +7 -0
index ce6907e69008..9c9641d2ed95 100644
@@ -113,12 +113,19 @@ config SATA_CEVA
 
 config FSL_SATA
 	bool "Enable Freescale SATA controller driver support"
+	depends on PPC
 	select AHCI
 	select LIBATA
 	help
 	  Enable this driver to support the SATA controller found in
 	  some Freescale PowerPC SoCs.
 
+config FSL_SATA_V2
+	bool "Enable support for V2 of the Freescale SATA controller"
+	depends on FSL_SATA
+	help
+	  Enable support for V2 of this controller, rather than V1.
+
 config SATA_MV
 	bool "Enable Marvell SATA controller driver support"
 	select AHCI
include/configs/P1010RDB.h +0 -1
index 15add282d706..287236f70f28 100644
@@ -473,7 +473,6 @@ extern unsigned long get_sdram_size(void);
 #endif	/* CONFIG_TSEC_ENET */
 
 /* SATA */
-#define CONFIG_FSL_SATA_V2
 
 #ifdef CONFIG_FSL_SATA
 #define CONFIG_LBA48
include/configs/P2041RDB.h +0 -1
index 8a7123921bb2..3c92a3e405b7 100644
@@ -337,7 +337,6 @@
 #endif	/* CONFIG_PCI */
 
 /* SATA */
-#define CONFIG_FSL_SATA_V2
 
 #ifdef CONFIG_FSL_SATA_V2
 #define CONFIG_LBA48
include/configs/P3041DS.h +0 -1
index f1417b1bfc15..6063113634c7 100644
@@ -9,7 +9,6 @@
  */
 #define CONFIG_FSL_NGPIXIS		/* use common ngPIXIS code */
 
-#define CONFIG_FSL_SATA_V2
 #define CONFIG_PCIE3
 #define CONFIG_PCIE4
 #define CONFIG_SYS_DPAA_RMAN
include/configs/P5040DS.h +0 -1
index fc2a07b97410..6e6e5bec66be 100644
@@ -10,7 +10,6 @@
 #define CONFIG_FSL_NGPIXIS		/* use common ngPIXIS code */
 
 #define CONFIG_PCIE3
-#define CONFIG_FSL_SATA_V2
 #define CONFIG_SYS_FSL_RAID_ENGINE
 
 #define CONFIG_ICS307_REFCLK_HZ		25000000  /* ICS307 ref clk freq */
include/configs/T104xRDB.h +0 -1
index e7ebf795451d..b832fb33d207 100644
@@ -391,7 +391,6 @@
 #endif	/* CONFIG_PCI */
 
 /* SATA */
-#define CONFIG_FSL_SATA_V2
 #ifdef CONFIG_FSL_SATA_V2
 #define CONFIG_LBA48
 #endif
include/configs/T208xQDS.h +0 -1
index 06be25bf5a75..a96c5bbd095e 100644
@@ -15,7 +15,6 @@
 
 #define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
 #if defined(CONFIG_ARCH_T2080)
-#define CONFIG_FSL_SATA_V2
 #define CONFIG_SYS_SRIO		/* Enable Serial RapidIO Support */
 #define CONFIG_SRIO1		/* SRIO port 1 */
 #define CONFIG_SRIO2		/* SRIO port 2 */
include/configs/T208xRDB.h +0 -1
index f96208d26579..82531f69c440 100644
@@ -14,7 +14,6 @@
 #include <linux/stringify.h>
 
 #define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
-#define CONFIG_FSL_SATA_V2
 
 /* High Level Configuration Options */
 #define CONFIG_SYS_BOOK3E_HV	/* Category E.HV supported */
include/configs/T4240RDB.h +0 -1
index 542786aeef18..436f6d0fc8ef 100644
@@ -12,7 +12,6 @@
 
 #include <linux/stringify.h>
 
-#define CONFIG_FSL_SATA_V2
 #define CONFIG_PCIE4
 
 #define CONFIG_ICS307_REFCLK_HZ		25000000  /* ICS307 ref clk freq */
Signature · 1 line
2.25.1
author
#4 lore raw

PATCH 5/15 Convert CONFIG_LBA48 et al to Kconfig

In reply to Tom Rini

This converts the following to Kconfig:
CONFIG_LBA48
CONFIG_SYS_64BIT_LBA

---
 README                                           | 12 ------------
 arch/arm/mach-kirkwood/include/mach/config.h     |  2 --
 configs/A10-OLinuXino-Lime_defconfig             |  1 +
 configs/A20-OLinuXino-Lime2-eMMC_defconfig       |  1 +
 configs/A20-OLinuXino-Lime2_defconfig            |  1 +
 configs/A20-OLinuXino-Lime_defconfig             |  1 +
 configs/A20-OLinuXino_MICRO-eMMC_defconfig       |  1 +
 configs/A20-OLinuXino_MICRO_defconfig            |  1 +
 configs/A20-Olimex-SOM-EVB_defconfig             |  1 +
 configs/A20-Olimex-SOM204-EVB-eMMC_defconfig     |  1 +
 configs/A20-Olimex-SOM204-EVB_defconfig          |  1 +
 configs/Bananapi_M2_Ultra_defconfig              |  1 +
 configs/Bananapi_defconfig                       |  1 +
 configs/Bananapro_defconfig                      |  1 +
 configs/Cubieboard2_defconfig                    |  1 +
 configs/Cubieboard_defconfig                     |  1 +
 configs/Cubietruck_defconfig                     |  1 +
 configs/Itead_Ibox_A20_defconfig                 |  1 +
 configs/Lamobo_R1_defconfig                      |  1 +
 configs/Linksprite_pcDuino3_Nano_defconfig       |  1 +
 configs/Linksprite_pcDuino3_defconfig            |  1 +
 configs/Marsboard_A10_defconfig                  |  1 +
 configs/Mele_A1000_defconfig                     |  1 +
 configs/Mele_M5_defconfig                        |  1 +
 configs/Orangepi_defconfig                       |  1 +
 configs/Orangepi_mini_defconfig                  |  1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig         |  1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig       |  1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig     |  1 +
 configs/P1020RDB-PC_36BIT_defconfig              |  1 +
 configs/P1020RDB-PC_NAND_defconfig               |  1 +
 configs/P1020RDB-PC_SDCARD_defconfig             |  1 +
 configs/P1020RDB-PC_SPIFLASH_defconfig           |  1 +
 configs/P1020RDB-PC_defconfig                    |  1 +
 configs/P1020RDB-PD_NAND_defconfig               |  1 +
 configs/P1020RDB-PD_SDCARD_defconfig             |  1 +
 configs/P1020RDB-PD_SPIFLASH_defconfig           |  1 +
 configs/P1020RDB-PD_defconfig                    |  1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig         |  1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig       |  1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig     |  1 +
 configs/P2020RDB-PC_36BIT_defconfig              |  1 +
 configs/P2020RDB-PC_NAND_defconfig               |  1 +
 configs/P2020RDB-PC_SDCARD_defconfig             |  1 +
 configs/P2020RDB-PC_SPIFLASH_defconfig           |  1 +
 configs/P2020RDB-PC_defconfig                    |  1 +
 configs/P4080DS_SDCARD_defconfig                 |  1 +
 configs/P4080DS_SPIFLASH_defconfig               |  1 +
 configs/P4080DS_defconfig                        |  1 +
 configs/Wits_Pro_A20_DKT_defconfig               |  1 +
 configs/apalis_imx6_defconfig                    |  1 +
 configs/bananapi_m1_plus_defconfig               |  1 +
 configs/bananapi_m2_berry_defconfig              |  1 +
 configs/bayleybay_defconfig                      |  2 ++
 configs/cherryhill_defconfig                     |  2 ++
 configs/chromebook_coral_defconfig               |  2 ++
 configs/chromebook_link64_defconfig              |  2 ++
 configs/chromebook_link_defconfig                |  2 ++
 configs/chromebook_samus_defconfig               |  2 ++
 configs/chromebook_samus_tpl_defconfig           |  2 ++
 configs/chromebox_panther_defconfig              |  2 ++
 configs/clearfog_gt_8k_defconfig                 |  2 ++
 configs/cm_fx6_defconfig                         |  1 +
 ...nga-qeval20-qa3-e3845-internal-uart_defconfig |  2 ++
 configs/conga-qeval20-qa3-e3845_defconfig        |  2 ++
 configs/coreboot64_defconfig                     |  2 ++
 configs/coreboot_defconfig                       |  2 ++
 configs/cougarcanyon2_defconfig                  |  2 ++
 configs/crownbay_defconfig                       |  2 ++
 configs/d2net_v2_defconfig                       |  2 ++
 configs/db-mv784mp-gp_defconfig                  |  1 +
 configs/dfi-bt700-q7x-151_defconfig              |  2 ++
 configs/dh_imx6_defconfig                        |  1 +
 configs/dns325_defconfig                         |  1 +
 configs/dreamplug_defconfig                      |  1 +
 configs/ds109_defconfig                          |  1 +
 configs/edminiv2_defconfig                       |  1 +
 configs/efi-x86_payload32_defconfig              |  2 ++
 configs/efi-x86_payload64_defconfig              |  2 ++
 configs/goflexhome_defconfig                     |  1 +
 configs/guruplug_defconfig                       |  1 +
 configs/gwventana_emmc_defconfig                 |  1 +
 configs/gwventana_gw5904_defconfig               |  1 +
 configs/gwventana_nand_defconfig                 |  1 +
 configs/highbank_defconfig                       |  1 +
 configs/ib62x0_defconfig                         |  1 +
 configs/inetspace_v2_defconfig                   |  2 ++
 configs/lschlv2_defconfig                        |  2 ++
 configs/lsxhl_defconfig                          |  2 ++
 configs/minnowmax_defconfig                      |  2 ++
 configs/mvebu_crb_cn9130_defconfig               |  2 ++
 configs/mvebu_db-88f3720_defconfig               |  2 ++
 configs/mvebu_db_armada8k_defconfig              |  2 ++
 configs/mvebu_db_cn9130_defconfig                |  2 ++
 configs/mvebu_espressobin-88f3720_defconfig      |  2 ++
 configs/mvebu_mcbin-88f8040_defconfig            |  2 ++
 configs/mvebu_puzzle-m801-88f8040_defconfig      |  2 ++
 configs/mx6cuboxi_defconfig                      |  1 +
 configs/mx6qsabrelite_defconfig                  |  1 +
 configs/nas220_defconfig                         |  1 +
 configs/net2big_v2_defconfig                     |  2 ++
 configs/netspace_lite_v2_defconfig               |  2 ++
 configs/netspace_max_v2_defconfig                |  2 ++
 configs/netspace_mini_v2_defconfig               |  2 ++
 configs/netspace_v2_defconfig                    |  2 ++
 configs/nitrogen6q2g_defconfig                   |  1 +
 configs/nitrogen6q_defconfig                     |  1 +
 configs/novena_defconfig                         |  1 +
 configs/nsa310s_defconfig                        |  2 ++
 configs/octeon_nic23_defconfig                   |  2 ++
 configs/octeontx_81xx_defconfig                  |  2 ++
 configs/octeontx_83xx_defconfig                  |  2 ++
 configs/openrd_base_defconfig                    |  1 +
 configs/openrd_client_defconfig                  |  1 +
 configs/openrd_ultimate_defconfig                |  1 +
 configs/pogo_v4_defconfig                        |  2 ++
 configs/qemu-ppce500_defconfig                   |  1 +
 configs/qemu-x86_64_defconfig                    |  2 ++
 configs/qemu-x86_defconfig                       |  2 ++
 configs/sheevaplug_defconfig                     |  2 ++
 configs/slimbootloader_defconfig                 |  2 ++
 configs/som-db5800-som-6867_defconfig            |  2 ++
 configs/tbs2910_defconfig                        |  2 ++
 ...dorable-x86-conga-qa3-e3845-pcie-x4_defconfig |  2 ++
 .../theadorable-x86-conga-qa3-e3845_defconfig    |  2 ++
 configs/theadorable-x86-dfi-bt700_defconfig      |  2 ++
 configs/theadorable_debug_defconfig              |  1 +
 configs/uDPU_defconfig                           |  2 ++
 configs/udoo_defconfig                           |  1 +
 configs/wandboard_defconfig                      |  1 +
 drivers/ata/Kconfig                              |  1 +
 drivers/block/Kconfig                            | 16 ++++++++++++++++
 include/configs/M5253DEMO.h                      |  1 -
 include/configs/MPC837XERDB.h                    |  7 -------
 include/configs/P1010RDB.h                       |  6 ------
 include/configs/P2041RDB.h                       |  6 ------
 include/configs/P4080DS.h                        |  2 --
 include/configs/T104xRDB.h                       |  5 -----
 include/configs/T208xQDS.h                       |  7 -------
 include/configs/T208xRDB.h                       |  7 -------
 include/configs/T4240RDB.h                       | 10 ----------
 include/configs/apalis_imx6.h                    |  7 -------
 include/configs/cm_fx6.h                         |  3 ---
 include/configs/corenet_ds.h                     |  5 -----
 include/configs/db-mv784mp-gp.h                  |  3 ---
 include/configs/dh_imx6.h                        |  3 ---
 include/configs/dreamplug.h                      |  5 -----
 include/configs/edminiv2.h                       |  2 --
 include/configs/ge_bx50v3.h                      |  5 -----
 include/configs/goflexhome.h                     |  3 ---
 include/configs/gw_ventana.h                     |  7 -------
 include/configs/highbank.h                       |  2 --
 include/configs/lacie_kw.h                       | 12 ------------
 include/configs/lsxl.h                           |  5 -----
 include/configs/m53menlo.h                       |  7 -------
 include/configs/mvebu_armada-37xx.h              |  6 ------
 include/configs/mvebu_armada-8k.h                |  6 ------
 include/configs/mx53loco.h                       |  4 ----
 include/configs/mx6cuboxi.h                      |  5 -----
 include/configs/nitrogen6x.h                     |  7 -------
 include/configs/novena.h                         |  3 ---
 include/configs/nsa310s.h                        |  4 ----
 include/configs/octeon_nic23.h                   |  9 ---------
 include/configs/octeontx_common.h                |  8 --------
 include/configs/p1_p2_rdb_pc.h                   |  2 --
 include/configs/pogo_v4.h                        |  6 ------
 include/configs/qemu-ppce500.h                   |  2 --
 include/configs/sheevaplug.h                     |  6 ------
 include/configs/sunxi-common.h                   |  4 ----
 include/configs/tbs2910.h                        |  6 ------
 include/configs/theadorable.h                    |  3 ---
 include/configs/udoo.h                           |  3 ---
 include/configs/wandboard.h                      |  6 ------
 include/configs/x86-common.h                     |  7 -------
 174 files changed, 195 insertions(+), 231 deletions(-)
README +0 -12
index 3603a9a46a37..c95f4334199e 100644
@@ -664,18 +664,6 @@ The following options need to be configured:
 		CONFIG_SCSI) you must configure support for at
 		least one non-MTD partition type as well.
 
-- LBA48 Support
-		CONFIG_LBA48
-
-		Set this to enable support for disks larger than 137GB
-		Also look at CONFIG_SYS_64BIT_LBA.
-		Whithout these , LBA48 support uses 32bit variables and will 'only'
-		support disks up to 2.1TB.
-
-		CONFIG_SYS_64BIT_LBA:
-			When enabled, makes the IDE subsystem use 64bit sector addresses.
-			Default is 32bit.
-
 - NETWORK Support (PCI):
 		CONFIG_E1000_SPI
 		Utility code for direct access to the SPI bus on Intel 8257x.
arch/arm/mach-kirkwood/include/mach/config.h +0 -2
index 45ee0272f77f..ca341570544b 100644
@@ -49,8 +49,6 @@
 #define __io
 /* Data, registers and alternate blocks are at the same offset */
 /* Each 8-bit ATA register is aligned to a 4-bytes address */
-/* Controller supports 48-bits LBA addressing */
-#define CONFIG_LBA48
 /* CONFIG_IDE requires some #defines for ATA registers */
 /* ATA registers base is at SATA controller base */
 #endif /* CONFIG_IDE */
configs/A10-OLinuXino-Lime_defconfig +1 -0
index 026668b0bd06..26a921279b5b 100644
@@ -15,6 +15,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/A20-OLinuXino-Lime2-eMMC_defconfig +1 -0
index e0db1e673882..b5802818ec3e 100644
@@ -19,6 +19,7 @@ CONFIG_SYS_PBSIZE=1024
 CONFIG_CMD_DFU=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DFU_RAM=y
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/A20-OLinuXino-Lime2_defconfig +1 -0
index a78cbfb1391a..de4f6311f2d4 100644
@@ -17,6 +17,7 @@ CONFIG_SYS_PBSIZE=1024
 CONFIG_CMD_DFU=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DFU_RAM=y
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/A20-OLinuXino-Lime_defconfig +1 -0
index da3532ccc463..ebb3a02b824a 100644
@@ -13,6 +13,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/A20-OLinuXino_MICRO-eMMC_defconfig +1 -0
index 0563a5188e65..c8802435b412 100644
@@ -15,6 +15,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/A20-OLinuXino_MICRO_defconfig +1 -0
index 4993cf7d2d71..f44964124564 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/A20-Olimex-SOM-EVB_defconfig +1 -0
index 0db97ae8415a..67b47f51f1b7 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/A20-Olimex-SOM204-EVB-eMMC_defconfig +1 -0
index 91d29e44469b..e02d67da5e71 100644
@@ -17,6 +17,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
configs/A20-Olimex-SOM204-EVB_defconfig +1 -0
index 893f2e627d5c..317a1e695d8b 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
configs/Bananapi_M2_Ultra_defconfig +1 -0
index 7d9c688171d4..be5be9ae2fbd 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Bananapi_defconfig +1 -0
index 6cc2d5b64720..053ba1376525 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_NETCONSOLE=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Bananapro_defconfig +1 -0
index 19b644613a6c..36f9bf8b32e3 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_NETCONSOLE=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Cubieboard2_defconfig +1 -0
index 794d6668d2f8..315c52f3448d 100644
@@ -12,6 +12,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Cubieboard_defconfig +1 -0
index 1027c5e3bf95..49eb01869533 100644
@@ -12,6 +12,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Cubietruck_defconfig +1 -0
index 560248dc5b17..62668df01ecb 100644
@@ -19,6 +19,7 @@ CONFIG_SYS_PBSIZE=1024
 CONFIG_CMD_DFU=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DFU_RAM=y
 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/Itead_Ibox_A20_defconfig +1 -0
index 42cb24e88ef7..1a161555842d 100644
@@ -12,6 +12,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Lamobo_R1_defconfig +1 -0
index d4692f8184a5..3627e4dd3afa 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Linksprite_pcDuino3_Nano_defconfig +1 -0
index dbafdd5bd80c..41ed46a7b5a1 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Linksprite_pcDuino3_defconfig +1 -0
index ff6a4e8b3794..44a3901e22de 100644
@@ -12,6 +12,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Marsboard_A10_defconfig +1 -0
index c88cfd6aa321..1584778dc744 100644
@@ -8,6 +8,7 @@ CONFIG_AHCI=y
 CONFIG_SPL_STACK=0x8000
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Mele_A1000_defconfig +1 -0
index 429baf3faf29..eb3e79880058 100644
@@ -12,6 +12,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Mele_M5_defconfig +1 -0
index a426729700e9..2e6d5dd46049 100644
@@ -13,6 +13,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Orangepi_defconfig +1 -0
index e7cf38ac7d1f..ba976f8f5f3c 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/Orangepi_mini_defconfig +1 -0
index 494edf0625ea..720e9e5df4c6 100644
@@ -18,6 +18,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/P1020RDB-PC_36BIT_NAND_defconfig +1 -0
index 80bfe31d79a5..51d4510d7388 100644
@@ -73,6 +73,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_36BIT_SDCARD_defconfig +1 -0
index 2619ef0fb17f..ec5c8a7821ec 100644
@@ -64,6 +64,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig +1 -0
index e37c74bd1f16..3da39efb4375 100644
@@ -67,6 +67,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_36BIT_defconfig +1 -0
index e43c605b4e0a..b9632026a271 100644
@@ -44,6 +44,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_NAND_defconfig +1 -0
index 860636292d2f..27d155dea74d 100644
@@ -72,6 +72,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_SDCARD_defconfig +1 -0
index c0d78c9f486d..e3068f5f0ce6 100644
@@ -63,6 +63,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_SPIFLASH_defconfig +1 -0
index debd83ed93ed..c0e8ab8042df 100644
@@ -66,6 +66,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PC_defconfig +1 -0
index 02580c8e0dfc..5c6d27ade4e7 100644
@@ -43,6 +43,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PD_NAND_defconfig +1 -0
index d770fc7ba7ee..a6b9e047e6d1 100644
@@ -75,6 +75,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=2
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PD_SDCARD_defconfig +1 -0
index db484c0d1892..84be176fb41c 100644
@@ -66,6 +66,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=2
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PD_SPIFLASH_defconfig +1 -0
index d9d630761239..ded22f273b22 100644
@@ -69,6 +69,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=2
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P1020RDB-PD_defconfig +1 -0
index 473a596672f4..8b90ac554156 100644
@@ -46,6 +46,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=2
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_36BIT_NAND_defconfig +1 -0
index ac4d4579bb72..ec1a07945596 100644
@@ -77,6 +77,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_36BIT_SDCARD_defconfig +1 -0
index b2a5a72143d3..6c5c064db3b5 100644
@@ -68,6 +68,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig +1 -0
index 42e31b4e22ce..e6a00a737acd 100644
@@ -71,6 +71,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_36BIT_defconfig +1 -0
index dcf5b21ff0f3..73b626879242 100644
@@ -48,6 +48,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_NAND_defconfig +1 -0
index 69ca044e5a22..0d213054bf6b 100644
@@ -76,6 +76,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_SDCARD_defconfig +1 -0
index 621e5b035f2c..190d6ceb4b36 100644
@@ -67,6 +67,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_SPIFLASH_defconfig +1 -0
index 04b10d36c52a..61763b50b83a 100644
@@ -70,6 +70,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P2020RDB-PC_defconfig +1 -0
index 0ae8394a105a..dd92833f6b63 100644
@@ -47,6 +47,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="eTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_DDR_CLK_FREQ=66666666
 CONFIG_CHIP_SELECTS_PER_CTRL=1
 CONFIG_SYS_BR0_PRELIM_BOOL=y
configs/P4080DS_SDCARD_defconfig +1 -0
index e603f81287e7..b4917b9a032f 100644
@@ -44,6 +44,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
configs/P4080DS_SPIFLASH_defconfig +1 -0
index 90b4688ea2e4..79a3b95eda43 100644
@@ -46,6 +46,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
configs/P4080DS_defconfig +1 -0
index 85acd7e427f3..d1de95152231 100644
@@ -41,6 +41,7 @@ CONFIG_BOOTFILE="uImage"
 CONFIG_USE_ETHPRIME=y
 CONFIG_ETHPRIME="FM1@DTSEC1"
 CONFIG_DM=y
+CONFIG_LBA48=y
 CONFIG_FSL_CAAM=y
 CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
configs/Wits_Pro_A20_DKT_defconfig +1 -0
index 09608dd1cc2a..c9d22534d5c1 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/apalis_imx6_defconfig +1 -0
index 89e9971ea3cf..62891557040a 100644
@@ -79,6 +79,7 @@ CONFIG_IP_DEFRAG=y
 CONFIG_TFTP_BLOCKSIZE=4096
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_BOOTCOUNT_ENV=y
 CONFIG_DM_I2C=y
configs/bananapi_m1_plus_defconfig +1 -0
index 955a60ddc34d..290e9c17e211 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_NETCONSOLE=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/bananapi_m2_berry_defconfig +1 -0
index 08f7683233cf..e6b8f0f8a3f8 100644
@@ -13,6 +13,7 @@ CONFIG_SPL_STACK=0x8000
 CONFIG_SPL_I2C=y
 CONFIG_SYS_PBSIZE=1024
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_SYS_I2C_SLAVE=0x7f
 CONFIG_SYS_I2C_SPEED=400000
configs/bayleybay_defconfig +2 -0
index 80602fbbff99..d1a467dfe79e 100644
@@ -55,6 +55,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_E1000=y
 CONFIG_SPI=y
configs/cherryhill_defconfig +2 -0
index 1d4256e37ba5..9c3d26a36e13 100644
@@ -45,6 +45,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_RTL8169=y
 CONFIG_SPI=y
configs/chromebook_coral_defconfig +2 -0
index a06f8e21ae02..c8e2c3b86bee 100644
@@ -87,6 +87,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
configs/chromebook_link64_defconfig +2 -0
index 28206ee8cec2..eb808dbce20f 100644
@@ -70,6 +70,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/chromebook_link_defconfig +2 -0
index 46ac5d5272e8..0f9de6080124 100644
@@ -60,6 +60,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/chromebook_samus_defconfig +2 -0
index e6d37307b095..5fc4be036a52 100644
@@ -62,6 +62,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
configs/chromebook_samus_tpl_defconfig +2 -0
index 5ad17d217b18..0ecd2799deab 100644
@@ -80,6 +80,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
configs/chromebox_panther_defconfig +2 -0
index c909d316a341..870843ada580 100644
@@ -53,6 +53,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_LPC=y
 CONFIG_RTL8169=y
configs/clearfog_gt_8k_defconfig +2 -0
index a45c02061ee7..cf35307937f6 100644
@@ -47,6 +47,8 @@ CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_MISC=y
configs/cm_fx6_defconfig +1 -0
index 16e619b38a55..4d8788099f49 100644
@@ -75,6 +75,7 @@ CONFIG_SPL_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
 # CONFIG_DWC_AHSATA_AHCI is not set
+CONFIG_LBA48=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
configs/conga-qeval20-qa3-e3845-internal-uart_defconfig +2 -0
index c41b83121e7d..8b6957da1629 100644
@@ -62,6 +62,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/conga-qeval20-qa3-e3845_defconfig +2 -0
index 84ba5cadfec6..286abe2f8297 100644
@@ -58,6 +58,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/coreboot64_defconfig +2 -0
index 3bd099e7231e..a42fc3974aa1 100644
@@ -58,6 +58,8 @@ CONFIG_SYS_ATA_DATA_OFFSET=0
 CONFIG_SYS_ATA_REG_OFFSET=0
 CONFIG_SYS_ATA_ALT_OFFSET=0
 CONFIG_ATAPI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 # CONFIG_PCI_PNP is not set
 CONFIG_SOUND=y
 CONFIG_SOUND_I8254=y
configs/coreboot_defconfig +2 -0
index 792d35eec581..fcd48148f126 100644
@@ -52,6 +52,8 @@ CONFIG_SYS_ATA_DATA_OFFSET=0
 CONFIG_SYS_ATA_REG_OFFSET=0
 CONFIG_SYS_ATA_ALT_OFFSET=0
 CONFIG_ATAPI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 # CONFIG_PCI_PNP is not set
 CONFIG_SOUND=y
 CONFIG_SOUND_I8254=y
configs/cougarcanyon2_defconfig +2 -0
index 09a6e4bc001d..7ee0cb746e40 100644
@@ -48,6 +48,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
configs/crownbay_defconfig +2 -0
index addaf3b7f790..fdd0d2badb07 100644
@@ -53,6 +53,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_E1000=y
 CONFIG_SOUND=y
configs/d2net_v2_defconfig +2 -0
index 4eb74f759f55..05f0d4bb35ed 100644
@@ -54,6 +54,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/db-mv784mp-gp_defconfig +1 -0
index 4fe0d3ec24e5..49c616852b24 100644
@@ -61,6 +61,7 @@ CONFIG_NET_RETRY_COUNT=50
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
+CONFIG_LBA48=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 # CONFIG_MMC is not set
configs/dfi-bt700-q7x-151_defconfig +2 -0
index 177764ef80c1..35e2c1a326fe 100644
@@ -56,6 +56,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_NUVOTON_NCT6102D=y
configs/dh_imx6_defconfig +1 -0
index a659e996b5c0..7cb4f417e7eb 100644
@@ -67,6 +67,7 @@ CONFIG_ETHPRIME="FEC"
 CONFIG_ARP_TIMEOUT=200
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DM_I2C=y
configs/dns325_defconfig +1 -0
index 585f44d85d31..511ca2f64736 100644
@@ -50,6 +50,7 @@ CONFIG_SYS_ATA_STRIDE=4
 CONFIG_SYS_ATA_DATA_OFFSET=0x100
 CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
+CONFIG_LBA48=y
 CONFIG_KIRKWOOD_GPIO=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
configs/dreamplug_defconfig +1 -0
index 80be9b853cbd..d6b55636ba5b 100644
@@ -50,6 +50,7 @@ CONFIG_SYS_ATA_STRIDE=4
 CONFIG_SYS_ATA_DATA_OFFSET=0x100
 CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
+CONFIG_LBA48=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
configs/ds109_defconfig +1 -0
index aeea352e2587..529d7569476e 100644
@@ -48,6 +48,7 @@ CONFIG_SYS_ATA_STRIDE=4
 CONFIG_SYS_ATA_DATA_OFFSET=0x100
 CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
+CONFIG_LBA48=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 # CONFIG_MMC is not set
configs/edminiv2_defconfig +1 -0
index 9eb5ee116ea7..563c4787a753 100644
@@ -56,6 +56,7 @@ CONFIG_SYS_ATA_DATA_OFFSET=0x100
 CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
 CONFIG_SYS_ATA_IDE0_OFFSET=0x4000
+CONFIG_LBA48=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/efi-x86_payload32_defconfig +2 -0
index 42fb89d5b3e0..83f532d6e543 100644
@@ -49,6 +49,8 @@ CONFIG_SYS_ATA_DATA_OFFSET=0
 CONFIG_SYS_ATA_REG_OFFSET=0
 CONFIG_SYS_ATA_ALT_OFFSET=0
 CONFIG_ATAPI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 # CONFIG_PCI_PNP is not set
 # CONFIG_GZIP is not set
 CONFIG_EFI=y
configs/efi-x86_payload64_defconfig +2 -0
index eef51e8efc39..28aaff69e978 100644
@@ -49,6 +49,8 @@ CONFIG_SYS_ATA_DATA_OFFSET=0
 CONFIG_SYS_ATA_REG_OFFSET=0
 CONFIG_SYS_ATA_ALT_OFFSET=0
 CONFIG_ATAPI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 # CONFIG_PCI_PNP is not set
 # CONFIG_GZIP is not set
 CONFIG_EFI=y
configs/goflexhome_defconfig +1 -0
index cdd71b36ddb9..1ef4d6c881e2 100644
@@ -51,6 +51,7 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/guruplug_defconfig +1 -0
index 02c59c3f31d0..c5cbce52a9b7 100644
@@ -54,6 +54,7 @@ CONFIG_SYS_ATA_STRIDE=4
 CONFIG_SYS_ATA_DATA_OFFSET=0x100
 CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
+CONFIG_LBA48=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/gwventana_emmc_defconfig +1 -0
index 0effee6d30fd..0044d893128e 100644
@@ -96,6 +96,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_DM_I2C=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
configs/gwventana_gw5904_defconfig +1 -0
index 28e08788b65d..08580255f79d 100644
@@ -96,6 +96,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_DM_I2C=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
configs/gwventana_nand_defconfig +1 -0
index f46440bf560e..e2eab2bb3815 100644
@@ -99,6 +99,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_DM_I2C=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
configs/highbank_defconfig +1 -0
index 8a7d0fd8a9f4..4fc735601022 100644
@@ -31,6 +31,7 @@ CONFIG_MISC_INIT_R=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_ENV_IS_IN_NVRAM=y
 CONFIG_SCSI_AHCI=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_BOOTCOUNT_LIMIT=y
 # CONFIG_MMC is not set
 CONFIG_CALXEDA_XGMAC=y
configs/ib62x0_defconfig +1 -0
index 3d4bd5145ff8..4771e720c9b7 100644
@@ -53,6 +53,7 @@ CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
 CONFIG_SYS_ATA_IDE0_OFFSET=0x2000
 CONFIG_SYS_ATA_IDE1_OFFSET=0x4000
+CONFIG_LBA48=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/inetspace_v2_defconfig +2 -0
index 908e50dab135..160a0898f2ed 100644
@@ -54,6 +54,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/lschlv2_defconfig +2 -0
index 4fe9f6d3a6bf..0da058302c34 100644
@@ -44,6 +44,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
configs/lsxhl_defconfig +2 -0
index e57f93ebd14e..d847255d5ecf 100644
@@ -45,6 +45,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
configs/minnowmax_defconfig +2 -0
index 87eb82a79af1..2e9edc6c4ee6 100644
@@ -61,6 +61,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_RTL8169=y
 CONFIG_SPI=y
configs/mvebu_crb_cn9130_defconfig +2 -0
index 86e8b75e61bf..2541b8a22aee 100644
@@ -47,6 +47,8 @@ CONFIG_SYS_MMC_ENV_DEV=1
 CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_MISC=y
configs/mvebu_db-88f3720_defconfig +2 -0
index 7b7382216ba5..437d438f8ff6 100644
@@ -47,6 +47,8 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 # CONFIG_MVEBU_GPIO is not set
configs/mvebu_db_armada8k_defconfig +2 -0
index 0b4afbe59e84..d3633d04dcb3 100644
@@ -43,6 +43,8 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_MISC=y
configs/mvebu_db_cn9130_defconfig +2 -0
index 9f6196095b3e..7563873ef2e4 100644
@@ -48,6 +48,8 @@ CONFIG_SYS_MMC_ENV_DEV=1
 CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_GPIO_LOOKUP_LABEL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/mvebu_espressobin-88f3720_defconfig +2 -0
index 8368e4c028b1..dd1f91215065 100644
@@ -58,6 +58,8 @@ CONFIG_NET_RETRY_COUNT=50
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_AHCI_PCI=y
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 CONFIG_DM_I2C=y
configs/mvebu_mcbin-88f8040_defconfig +2 -0
index be4bbe87ca23..d334c89ed315 100644
@@ -47,6 +47,8 @@ CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_MISC=y
configs/mvebu_puzzle-m801-88f8040_defconfig +2 -0
index c05beef8f946..5cec3d8a682a 100644
@@ -50,6 +50,8 @@ CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/mx6cuboxi_defconfig +1 -0
index d68335b5b68d..66d72a3a25c3 100644
@@ -55,6 +55,7 @@ CONFIG_DM=y
 CONFIG_SPL_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
configs/mx6qsabrelite_defconfig +1 -0
index 551057fcfa29..fa2c280a8d40 100644
@@ -54,6 +54,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x12000000
 CONFIG_SYS_I2C_LEGACY=y
configs/nas220_defconfig +1 -0
index ca482ce745ea..5d105522dd12 100644
@@ -52,6 +52,7 @@ CONFIG_SYS_ATA_STRIDE=4
 CONFIG_SYS_ATA_DATA_OFFSET=0x100
 CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
+CONFIG_LBA48=y
 CONFIG_KIRKWOOD_GPIO=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
configs/net2big_v2_defconfig +2 -0
index 32308a04f65c..68d1eeff11e0 100644
@@ -55,6 +55,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/netspace_lite_v2_defconfig +2 -0
index 2a1c3ac2d343..98d8e59119f0 100644
@@ -55,6 +55,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/netspace_max_v2_defconfig +2 -0
index 3c847316f6f7..11fd496e6d38 100644
@@ -55,6 +55,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/netspace_mini_v2_defconfig +2 -0
index 8239d45a8453..1025ca30ad93 100644
@@ -54,6 +54,8 @@ CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
 CONFIG_BLK=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/netspace_v2_defconfig +2 -0
index 673e0a42a3f3..1bb9915cc1ed 100644
@@ -55,6 +55,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MVTWSI=y
configs/nitrogen6q2g_defconfig +1 -0
index 2bf3e3a9614a..ec75ead6e20c 100644
@@ -62,6 +62,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x12000000
 CONFIG_SYS_I2C_LEGACY=y
configs/nitrogen6q_defconfig +1 -0
index e169350f55d4..1b999ecc9c17 100644
@@ -62,6 +62,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_FASTBOOT_BUF_ADDR=0x12000000
 CONFIG_SYS_I2C_LEGACY=y
configs/novena_defconfig +1 -0
index 77d7afa6df80..6b0f17628dcd 100644
@@ -63,6 +63,7 @@ CONFIG_NETCONSOLE=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
configs/nsa310s_defconfig +2 -0
index 8b525eb5ff5d..0c1d808f127f 100644
@@ -52,6 +52,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/octeon_nic23_defconfig +2 -0
index 533091523012..23cdef3316c0 100644
@@ -45,6 +45,8 @@ CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_SATA=y
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CLK=y
 # CONFIG_INPUT is not set
 CONFIG_MISC=y
configs/octeontx_81xx_defconfig +2 -0
index 72e7c6ff5394..38ef7f41632d 100644
@@ -82,6 +82,8 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_SCSI_AHCI=y
 CONFIG_AHCI_PCI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_MISC=y
 CONFIG_SUPPORT_EMMC_RPMB=y
configs/octeontx_83xx_defconfig +2 -0
index fbdf1cb846b8..371f61866970 100644
@@ -79,6 +79,8 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_SCSI_AHCI=y
 CONFIG_AHCI_PCI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_MISC=y
 CONFIG_SUPPORT_EMMC_RPMB=y
configs/openrd_base_defconfig +1 -0
index 967246a9db94..ba5d3a6bfc32 100644
@@ -56,6 +56,7 @@ CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
 CONFIG_SYS_ATA_IDE0_OFFSET=0x2000
 CONFIG_SYS_ATA_IDE1_OFFSET=0x4000
+CONFIG_LBA48=y
 # CONFIG_MMC_HW_PARTITIONING is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/openrd_client_defconfig +1 -0
index f1dbed87d699..0ee6ce3a65e1 100644
@@ -57,6 +57,7 @@ CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
 CONFIG_SYS_ATA_IDE0_OFFSET=0x2000
 CONFIG_SYS_ATA_IDE1_OFFSET=0x4000
+CONFIG_LBA48=y
 # CONFIG_MMC_HW_PARTITIONING is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/openrd_ultimate_defconfig +1 -0
index 49668150fb94..f7e8a3ee4e7d 100644
@@ -57,6 +57,7 @@ CONFIG_SYS_ATA_REG_OFFSET=0x100
 CONFIG_SYS_ATA_ALT_OFFSET=0x100
 CONFIG_SYS_ATA_IDE0_OFFSET=0x2000
 CONFIG_SYS_ATA_IDE1_OFFSET=0x4000
+CONFIG_LBA48=y
 # CONFIG_MMC_HW_PARTITIONING is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/pogo_v4_defconfig +2 -0
index 6f928edf41bf..c62c88f1b5ac 100644
@@ -64,6 +64,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_KIRKWOOD_GPIO=y
 # CONFIG_MMC_HW_PARTITIONING is not set
 CONFIG_MVEBU_MMC=y
configs/qemu-ppce500_defconfig +1 -0
index 55444b69a7ad..322fe12ae9a7 100644
@@ -39,6 +39,7 @@ CONFIG_DM=y
 CONFIG_SIMPLE_BUS_CORRECT_RANGE=y
 CONFIG_BLK=y
 CONFIG_HAVE_BLOCK_DEVICE=y
+CONFIG_LBA48=y
 CONFIG_CHIP_SELECTS_PER_CTRL=0
 CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
configs/qemu-x86_64_defconfig +2 -0
index 66192734d553..b81e60658fd8 100644
@@ -65,6 +65,8 @@ CONFIG_SYS_ATA_DATA_OFFSET=0
 CONFIG_SYS_ATA_REG_OFFSET=0
 CONFIG_SYS_ATA_ALT_OFFSET=0
 CONFIG_ATAPI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_NVME_PCI=y
 CONFIG_SPL_DM_RTC=y
configs/qemu-x86_defconfig +2 -0
index b9ab1805ab27..c65b5868cd29 100644
@@ -46,6 +46,8 @@ CONFIG_SYS_ATA_DATA_OFFSET=0
 CONFIG_SYS_ATA_REG_OFFSET=0
 CONFIG_SYS_ATA_ALT_OFFSET=0
 CONFIG_ATAPI=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_NVME_PCI=y
 CONFIG_SPI=y
configs/sheevaplug_defconfig +2 -0
index d014b2a81442..fa1e7bd2c0cb 100644
@@ -53,6 +53,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
 CONFIG_DM=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=2
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_MVEBU_MMC=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/slimbootloader_defconfig +2 -0
index 2e938b648670..b6b9f88c00bb 100644
@@ -28,6 +28,8 @@ CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 # CONFIG_ACPIGEN is not set
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 # CONFIG_PCI_PNP is not set
 CONFIG_CONSOLE_SCROLL_LINES=5
 # CONFIG_GZIP is not set
configs/som-db5800-som-6867_defconfig +2 -0
index 3b96d64b3b67..d912ac70bc18 100644
@@ -56,6 +56,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_E1000=y
 CONFIG_SPI=y
configs/tbs2910_defconfig +2 -0
index 1519f7dbce5f..4b304f8c7f58 100644
@@ -71,6 +71,8 @@ CONFIG_SYS_MMC_ENV_PART=1
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MXC=y
 CONFIG_FSL_USDHC=y
configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig +2 -0
index daaefba36421..afb1957ddd23 100644
@@ -58,6 +58,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/theadorable-x86-conga-qa3-e3845_defconfig +2 -0
index a62ce3e0a5cb..113c0dae2e68 100644
@@ -57,6 +57,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
configs/theadorable-x86-dfi-bt700_defconfig +2 -0
index a54f34a6cf79..95ff9d763ff0 100644
@@ -55,6 +55,8 @@ CONFIG_BOOTFILE="bzImage"
 CONFIG_TFTP_TSIZE=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_NUVOTON_NCT6102D=y
configs/theadorable_debug_defconfig +1 -0
index a3d6313f0200..25eb2e88ec17 100644
@@ -67,6 +67,7 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_SATA_MV=y
 CONFIG_SYS_SATA_MAX_DEVICE=1
+CONFIG_LBA48=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_BOOTCOUNT_RAM=y
 CONFIG_FPGA_ALTERA=y
configs/uDPU_defconfig +2 -0
index 81f0f8800794..2b2dc1664621 100644
@@ -54,6 +54,8 @@ CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_AHCI_MVEBU=y
+CONFIG_LBA48=y
+CONFIG_SYS_64BIT_LBA=y
 CONFIG_CLK=y
 CONFIG_CLK_MVEBU=y
 CONFIG_DM_I2C=y
configs/udoo_defconfig +1 -0
index e5bacb1bb8e0..a1d2d7f2e475 100644
@@ -44,6 +44,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
configs/wandboard_defconfig +1 -0
index 595176190a79..8b0533ce585c 100644
@@ -59,6 +59,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_DM=y
 CONFIG_BOUNCE_BUFFER=y
 CONFIG_DWC_AHSATA=y
+CONFIG_LBA48=y
 CONFIG_DM_I2C=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
drivers/ata/Kconfig +1 -0
index 9c9641d2ed95..7715c4036562 100644
@@ -116,6 +116,7 @@ config FSL_SATA
 	depends on PPC
 	select AHCI
 	select LIBATA
+	imply LBA48
 	help
 	  Enable this driver to support the SATA controller found in
 	  some Freescale PowerPC SoCs.
drivers/block/Kconfig +16 -0
index d6d1c6e32ccc..b5b482086af3 100644
@@ -218,3 +218,19 @@ config IDE_RESET
 	  must be defined in a board-specific file.
 
 endif  # IDE
+
+config LBA48
+	bool "Enable LBA support for disks larger than 137GB"
+	depends on HAVE_BLOCK_DEVICE
+	help
+	  Set this to enable support for disks larger than 137GB.
+	  Also look at CONFIG_SYS_64BIT_LBA.  Without both of these, LBA48
+	  support uses 32bit variables and will 'only' support disks up to
+	  2.1TB.
+
+config SYS_64BIT_LBA
+	bool "Enable 64bit number of blocks on a block device"
+	depends on HAVE_BLOCK_DEVICE
+	help
+	  Make the block subsystem use 64bit sector addresses, rather than the
+	  default of 32bit.
include/configs/M5253DEMO.h +0 -1
index 4c1348c79dcc..384217a0d989 100644
@@ -22,7 +22,6 @@
 #ifdef CONFIG_IDE
 /* ATA */
 #	define CONFIG_IDE_PREINIT	1
-#	undef CONFIG_LBA48
 #endif
 
 #ifdef CONFIG_DRIVER_DM9000
include/configs/MPC837XERDB.h +0 -7
index de197a0bd117..8e75d779c418 100644
@@ -262,13 +262,6 @@
 #endif
 #endif
 
-/*
- * SATA
- */
-#ifdef CONFIG_FSL_SATA
-#define CONFIG_LBA48
-#endif
-
 /*
  * Environment
  */
include/configs/P1010RDB.h +0 -6
index 287236f70f28..fce4bfb3dd93 100644
@@ -472,12 +472,6 @@ extern unsigned long get_sdram_size(void);
 
 #endif	/* CONFIG_TSEC_ENET */
 
-/* SATA */
-
-#ifdef CONFIG_FSL_SATA
-#define CONFIG_LBA48
-#endif /* #ifdef CONFIG_FSL_SATA  */
-
 #ifdef CONFIG_MMC
 #define CONFIG_SYS_FSL_ESDHC_ADDR	CONFIG_SYS_MPC85xx_ESDHC_ADDR
 #endif
include/configs/P2041RDB.h +0 -6
index 3c92a3e405b7..df16319de4a9 100644
@@ -336,12 +336,6 @@
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
 #endif	/* CONFIG_PCI */
 
-/* SATA */
-
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 #ifdef CONFIG_FMAN_ENET
 #define CONFIG_SYS_FM1_DTSEC1_PHY_ADDR	0x2
 #define CONFIG_SYS_FM1_DTSEC2_PHY_ADDR	0x3
include/configs/P4080DS.h +0 -2
index 8a0c7039f667..6615dd091e20 100644
@@ -11,8 +11,6 @@
 
 #define CONFIG_PCIE3
 
-#define CONFIG_LBA48
-
 #define CONFIG_SYS_SRIO
 #define CONFIG_SRIO1			/* SRIO port 1 */
 #define CONFIG_SRIO2			/* SRIO port 2 */
include/configs/T104xRDB.h +0 -5
index b832fb33d207..767c360b36c0 100644
@@ -390,11 +390,6 @@
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
 #endif	/* CONFIG_PCI */
 
-/* SATA */
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 /*
 * USB
 */
include/configs/T208xQDS.h +0 -7
index a96c5bbd095e..55b9260d9317 100644
@@ -457,13 +457,6 @@
 #define SGMII_CARD_PORT4_PHY_ADDR 0x1F
 #endif
 
-/*
- * SATA
- */
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 /*
  * USB
  */
include/configs/T208xRDB.h +0 -7
index 82531f69c440..642099bd098d 100644
@@ -413,13 +413,6 @@
 #define AQR113C_PHY_ADDR2	0x08
 #endif
 
-/*
- * SATA
- */
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 /*
  * USB
  */
include/configs/T4240RDB.h +0 -10
index 436f6d0fc8ef..757fb054a807 100644
@@ -152,11 +152,6 @@
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
 #endif	/* CONFIG_PCI */
 
-/* SATA */
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 /*
  * Environment
  */
@@ -425,11 +420,6 @@
 #define CORTINA_PHY_ADDR4	FM2_10GEC2_PHY_ADDR
 #endif
 
-/* SATA */
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 /*
 * USB
 */
include/configs/apalis_imx6.h +0 -7
index d0e0e65d85f9..5db8b2be2cb8 100644
@@ -25,13 +25,6 @@
 #define CONFIG_SYS_FSL_ESDHC_ADDR	0
 #define CONFIG_SYS_FSL_USDHC_NUM	3
 
-/*
- * SATA Configs
- */
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#endif
-
 /* Network */
 #define PHY_ANEG_TIMEOUT		15000 /* PHY needs longer aneg time */
 
include/configs/cm_fx6.h +0 -3
index a0bbb409cff4..fbe1e35e001a 100644
@@ -149,9 +149,6 @@
 #define CONFIG_MXC_USB_FLAGS		0
 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
 
-/* SATA */
-#define CONFIG_LBA48
-
 /* Boot */
 #define CONFIG_SYS_BOOTMAPSZ	        (8 << 20)
 
include/configs/corenet_ds.h +0 -5
index 6006f7638220..f563a5f38162 100644
@@ -337,11 +337,6 @@
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
 #endif	/* CONFIG_PCI */
 
-/* SATA */
-#ifdef CONFIG_FSL_SATA_V2
-#define CONFIG_LBA48
-#endif
-
 #ifdef CONFIG_FMAN_ENET
 #define CONFIG_SYS_FM1_DTSEC1_PHY_ADDR	0x1c
 #define CONFIG_SYS_FM1_DTSEC2_PHY_ADDR	0x1d
include/configs/db-mv784mp-gp.h +0 -3
index 808debc6f501..b4cfa61d4e75 100644
@@ -22,9 +22,6 @@
 
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
-/* SATA support */
-#define CONFIG_LBA48
-
 /* PCIe support */
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
include/configs/dh_imx6.h +0 -3
index 298a88c92eda..6fe45a86dcc0 100644
@@ -33,9 +33,6 @@
 #define CONFIG_SYS_FSL_ESDHC_ADDR	0
 #define CONFIG_SYS_FSL_USDHC_NUM	3
 
-/* SATA Configs */
-#define CONFIG_LBA48
-
 /* UART */
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
include/configs/dreamplug.h +0 -5
index 07e2b8781fd2..fbd83d629c02 100644
@@ -30,9 +30,4 @@
 #define CONFIG_MVGBE_PORTS	{1, 1}	/* enable both ports */
 #define CONFIG_PHY_BASE_ADR	0
 
-/*
- * SATA Driver configuration
- */
-#define CONFIG_LBA48
-
 #endif /* _CONFIG_DREAMPLUG_H */
include/configs/edminiv2.h +0 -2
index 1d6e6bcc4345..86257016824f 100644
@@ -101,8 +101,6 @@
 #define __io
 /* Data, registers and alternate blocks are at the same offset */
 /* Each 8-bit ATA register is aligned to a 4-bytes address */
-/* Controller supports 48-bits LBA addressing */
-#define CONFIG_LBA48
 /* A single bus, a single device */
 /* ATA registers base is at SATA controller base */
 /* ATA bus 0 is orion5x port 1 on ED Mini V2 */
include/configs/ge_bx50v3.h +0 -5
index 66ea80982b6c..d813c6c22e78 100644
@@ -17,11 +17,6 @@
 #include "mx6_common.h"
 #include <linux/sizes.h>
 
-/* SATA Configs */
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#endif
-
 #ifdef CONFIG_CMD_NFS
 #define NETWORKBOOT \
         "setnetworkboot=" \
include/configs/goflexhome.h +0 -3
index 832441a7b721..d335a42e99c1 100644
@@ -44,7 +44,4 @@
 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
 #define CONFIG_PHY_BASE_ADR	0
 
-/* SATA driver configuration */
-#define CONFIG_LBA48
-
 #endif /* _CONFIG_GOFLEXHOME_H */
include/configs/gw_ventana.h +0 -7
index 53954cee3b3c..251e360daa9c 100644
@@ -28,13 +28,6 @@
 /* MMC Configs */
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 
-/*
- * SATA Configs
- */
-#ifdef CONFIG_CMD_SATA
-  #define CONFIG_LBA48
-#endif
-
 /*
  * PCI express
  */
include/configs/highbank.h +0 -2
index d8e712693661..1fc38cfa0cc6 100644
@@ -20,8 +20,6 @@
  * Miscellaneous configurable options
  */
 
-#define CONFIG_SYS_64BIT_LBA
-
 /* Environment data setup
 */
 #define CONFIG_SYS_NVRAM_BASE_ADDR	0xfff88000	/* NVRAM base address */
include/configs/lacie_kw.h +0 -12
index 0a988e2fadf2..5e0f1c90934e 100644
@@ -21,18 +21,6 @@
 #define CONFIG_MVGBE_PORTS		{1, 0} /* enable port 0 only */
 #endif
 
-/*
- * SATA Driver configuration
- */
-
-#ifdef CONFIG_SATA
-#define CONFIG_SYS_64BIT_LBA
-#define CONFIG_LBA48
-#if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
-	defined(CONFIG_NET2BIG_V2)
-#endif
-#endif /* CONFIG_SATA */
-
 /*
  * Enable GPI0 support
  */
include/configs/lsxl.h +0 -5
index 19fd702ab245..81c93375e2ef 100644
@@ -94,9 +94,4 @@
 #define CONFIG_PHY_BASE_ADR		7
 #endif /* CONFIG_CMD_NET */
 
-#ifdef CONFIG_SATA
-#define CONFIG_SYS_64BIT_LBA
-#define CONFIG_LBA48
-#endif
-
 #endif /* _CONFIG_LSXL_H */
include/configs/m53menlo.h +0 -7
index 66230f0bf17e..b8ad0c3a2164 100644
@@ -82,13 +82,6 @@
 #define CONFIG_MXC_USB_FLAGS		0
 #endif
 
-/*
- * SATA
- */
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#endif
-
 /*
  * LCD
  */
include/configs/mvebu_armada-37xx.h +0 -6
index cae70760bcb5..b497ada06551 100644
@@ -36,12 +36,6 @@
 
 #define CONFIG_USB_MAX_CONTROLLER_COUNT (3 + 3)
 
-/*
- * SATA/SCSI/AHCI configuration
- */
-#define CONFIG_LBA48
-#define CONFIG_SYS_64BIT_LBA
-
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 0) \
include/configs/mvebu_armada-8k.h +0 -6
index 7d7c218bc6a3..52d88f705895 100644
@@ -31,12 +31,6 @@
 
 /* USB ethernet */
 
-/*
- * SATA/SCSI/AHCI configuration
- */
-#define CONFIG_LBA48
-#define CONFIG_SYS_64BIT_LBA
-
 /*
  * PCI configuration
  */
include/configs/mx53loco.h +0 -4
index 0afd68b880e4..9ceed12e4872 100644
@@ -100,10 +100,6 @@
 #define CONFIG_SYS_INIT_RAM_ADDR	(IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE	(IRAM_SIZE)
 
-#ifdef CONFIG_CMD_SATA
-	#define CONFIG_LBA48
-#endif
-
 /* Framebuffer and LCD */
 
 #endif				/* __CONFIG_H */
include/configs/mx6cuboxi.h +0 -5
index 5b4fbba023f9..c6744e970f68 100644
@@ -16,11 +16,6 @@
 /* MMC Configs */
 #define CONFIG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 
-/* SATA Configuration */
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#endif
-
 /* Framebuffer */
 #define CONFIG_IMX_HDMI
 #define CONFIG_IMX_VIDEO_SKIP
include/configs/nitrogen6x.h +0 -7
index 9b84c36f5145..0305aecb1438 100644
@@ -19,13 +19,6 @@
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 #define CONFIG_SYS_FSL_USDHC_NUM       2
 
-/*
- * SATA Configs
- */
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#endif
-
 #define IMX_FEC_BASE			ENET_BASE_ADDR
 #define CONFIG_FEC_MXC_PHYADDR		6
 
include/configs/novena.h +0 -3
index 327dde56970d..9c67a3a77750 100644
@@ -59,9 +59,6 @@
 #define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR	0x08
 
-/* SATA Configs */
-#define CONFIG_LBA48
-
 /* UART */
 #define CONFIG_MXC_UART_BASE		UART2_BASE
 
include/configs/nsa310s.h +0 -4
index 1e6b8d8b0e73..46fd6e6e3b52 100644
@@ -25,8 +25,4 @@
 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
 #define CONFIG_PHY_BASE_ADR	1
 
-/* Support large HDDs for USB and SATA */
-#define CONFIG_LBA48
-#define CONFIG_SYS_64BIT_LBA
-
 #endif /* _CONFIG_NSA310S_H */
include/configs/octeon_nic23.h +0 -9
index 0a7b4d8f93e2..7d99fd1b0195 100644
@@ -7,15 +7,6 @@
 #ifndef __CONFIG_H__
 #define __CONFIG_H__
 
-/*
- * SATA/SCSI/AHCI configuration
- */
-/* AHCI support Definitions */
-/** Enable 48-bit SATA addressing */
-#define CONFIG_LBA48
-/** Enable 64-bit addressing */
-#define CONFIG_SYS_64BIT_LBA
-
 #include "octeon_common.h"
 
 #endif /* __CONFIG_H__ */
include/configs/octeontx_common.h +0 -8
index 22d38588780d..2697a703cea5 100644
@@ -44,14 +44,6 @@
 
 /** Heap size for U-Boot */
 
-/* AHCI support Definitions */
-#ifdef CONFIG_DM_SCSI
-/** Enable 48-bit SATA addressing */
-# define CONFIG_LBA48
-/** Enable 64-bit addressing */
-# define CONFIG_SYS_64BIT_LBA
-#endif
-
 #define CONFIG_SYS_MMC_MAX_BLK_COUNT	8192
 
 /** EMMC specific defines */
include/configs/p1_p2_rdb_pc.h +0 -2
index 41009cb6a3b8..202697ec646f 100644
@@ -112,8 +112,6 @@
 #define CONFIG_PCIE1	/* PCIE controller 1 (slot 1) */
 #define CONFIG_PCIE2	/* PCIE controller 2 (slot 2) */
 
-#define CONFIG_LBA48
-
 #define CONFIG_HWCONFIG
 /*
  * These can be toggled for performance analysis, otherwise use default.
include/configs/pogo_v4.h +0 -6
index 3365ebe3d2fa..24cbf6b72ea7 100644
@@ -39,10 +39,4 @@
 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
 #define CONFIG_PHY_BASE_ADR	0
 
-/*
- * Support large disk for SATA and USB
- */
-#define CONFIG_SYS_64BIT_LBA
-#define CONFIG_LBA48
-
 #endif /* _CONFIG_POGO_V4_H */
include/configs/qemu-ppce500.h +0 -2
index 60a17dbcdcdd..e427b854fced 100644
@@ -60,8 +60,6 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void);
 
 #define CONFIG_SYS_MONITOR_LEN		(512 * 1024)
 
-#define CONFIG_LBA48
-
 /* RTC */
 #define CONFIG_RTC_PT7C4338
 
include/configs/sheevaplug.h +0 -6
index 58345e4e1be7..19701ccce22e 100644
@@ -27,10 +27,4 @@
 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
 #define CONFIG_PHY_BASE_ADR	0
 
-/*
- * Support large disk for SATA and USB
- */
-#define CONFIG_SYS_64BIT_LBA
-#define CONFIG_LBA48
-
 #endif /* _CONFIG_SHEEVAPLUG_H */
include/configs/sunxi-common.h +0 -4
index 5b543fd2db1c..327bf98ddb23 100644
@@ -75,10 +75,6 @@
 #define PHYS_SDRAM_0			CONFIG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_0_SIZE		0x80000000 /* 2 GiB */
 
-#ifdef CONFIG_AHCI
-#define CONFIG_SYS_64BIT_LBA
-#endif
-
 #ifdef CONFIG_NAND_SUNXI
 #define CONFIG_SYS_NAND_MAX_ECCPOS 1664
 #define CONFIG_SYS_MAX_NAND_DEVICE 8
include/configs/tbs2910.h +0 -6
index 3d0c856103e7..b160f33dbfc6 100644
@@ -34,12 +34,6 @@
 #define CONFIG_PCIE_IMX_PERST_GPIO	IMX_GPIO_NR(7, 12)
 #endif
 
-/* SATA */
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#define CONFIG_SYS_64BIT_LBA
-#endif
-
 /* USB */
 #ifdef CONFIG_CMD_USB
 #define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
include/configs/theadorable.h +0 -3
index c81e89eed8b2..4f7c9647e292 100644
@@ -40,9 +40,6 @@
 	"fdt_high=0x10000000\0"		\
 	"initrd_high=0x10000000\0"
 
-/* SATA support */
-#define CONFIG_LBA48
-
 /* FPGA programming support */
 #define CONFIG_FPGA_STRATIX_V
 
include/configs/udoo.h +0 -3
index c8d1ed4da684..03e5c04af6ee 100644
@@ -14,9 +14,6 @@
 
 #define CONFIG_MXC_UART_BASE		UART2_BASE
 
-/* SATA Configs */
-#define CONFIG_LBA48
-
 /* MMC Configuration */
 #define CONFIG_SYS_FSL_ESDHC_ADDR	0
 
include/configs/wandboard.h +0 -6
index eb0778d072a5..899b8ca470e2 100644
@@ -14,12 +14,6 @@
 
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
-/* SATA Configs */
-
-#ifdef CONFIG_CMD_SATA
-#define CONFIG_LBA48
-#endif
-
 /* MMC Configuration */
 #define CONFIG_SYS_FSL_USDHC_NUM	2
 #define CONFIG_SYS_FSL_ESDHC_ADDR	0
include/configs/x86-common.h +0 -7
index 48091b95ca70..f28fafe15c63 100644
@@ -16,13 +16,6 @@
  */
 #define CONFIG_SYS_BOOTM_LEN		(16 << 20)
 
-/* SATA AHCI storage */
-#ifdef CONFIG_SCSI_AHCI
-#define CONFIG_LBA48
-#define CONFIG_SYS_64BIT_LBA
-
-#endif
-
 /* Generic TPM interfaced through LPC bus */
 #define CONFIG_TPM_TIS_BASE_ADDRESS        0xfed40000
 
Signature · 1 line
2.25.1
author
#5 lore raw

PATCH 6/15 ata: sata_sil: Remove useless BLK guard in sata_sil.h

In reply to Tom Rini

Now that the driver only supports CONFIG_BLK, remove the useless guard in sata_sil.h.

---
 drivers/ata/sata_sil.h | 2 --
 1 file changed, 2 deletions(-)
drivers/ata/sata_sil.h +0 -2
index bea4322c919d..9ad09e5461d2 100644
@@ -212,12 +212,10 @@ enum {
 	CMD_ERR		= 0x21,
 };
 
-#if CONFIG_IS_ENABLED(BLK)
 #define ATA_MAX_PORTS		32
 struct sil_sata_priv {
 	int		port_num;
 	struct sil_sata	*sil_sata_desc[ATA_MAX_PORTS];
 };
-#endif
 
 #endif
Signature · 1 line
2.25.1
author
#6 lore raw

PATCH 7/15 block: ide: Remove ide_preinit function

In reply to Tom Rini

The only platform currently that defines an ide_preinit function has an empty one that immediately returns. Remove this hook.

---
 board/freescale/m5253demo/m5253demo.c | 5 -----
 drivers/block/ide.c                   | 9 ---------
 include/configs/M5253DEMO.h           | 5 -----
 include/ide.h                         | 4 ----
 4 files changed, 23 deletions(-)
board/freescale/m5253demo/m5253demo.c +0 -5
index 2a4703579dab..85f5f0c03409 100644
@@ -93,11 +93,6 @@ int testdram(void)
 
 #ifdef CONFIG_IDE
 #include <ata.h>
-int ide_preinit(void)
-{
-	return (0);
-}
-
 void ide_set_reset(int idereset)
 {
 	atac_t *ata = (atac_t *) CONFIG_SYS_ATA_BASE_ADDR;
drivers/block/ide.c +0 -9
index e8518ff3a11a..3270a9f032f3 100644
@@ -695,15 +695,6 @@ void ide_init(void)
 	unsigned char c;
 	int i, bus;
 
-#ifdef CONFIG_IDE_PREINIT
-	WATCHDOG_RESET();
-
-	if (ide_preinit()) {
-		puts("ide_preinit failed\n");
-		return;
-	}
-#endif /* CONFIG_IDE_PREINIT */
-
 	WATCHDOG_RESET();
 
 	/* ATAPI Drives seems to need a proper IDE Reset */
include/configs/M5253DEMO.h +0 -5
index 384217a0d989..840d3b4672e6 100644
@@ -19,11 +19,6 @@
 	. = DEFINED(env_offset) ? env_offset : .; \
 	env/embedded.o(.text*);
 
-#ifdef CONFIG_IDE
-/* ATA */
-#	define CONFIG_IDE_PREINIT	1
-#endif
-
 #ifdef CONFIG_DRIVER_DM9000
 #	define CONFIG_DM9000_BASE	(CONFIG_SYS_CS1_BASE | 0x300)
 #	define DM9000_IO		CONFIG_DM9000_BASE
include/ide.h +0 -4
index 2994b7a76226..426cef4e39e0 100644
@@ -33,10 +33,6 @@ ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,
 		const void *buffer);
 #endif
 
-#ifdef CONFIG_IDE_PREINIT
-int ide_preinit(void);
-#endif
-
 #if defined(CONFIG_OF_IDE_FIXUP)
 int ide_device_present(int dev);
 #endif
Signature · 1 line
2.25.1
author
#7 lore raw

PATCH 8/15 arm: samsung: Remove dead LCD code

In reply to Tom Rini

Since bb5930d5c97f ("exynos: video: Convert several boards to driver model for video") there have been no callers of any of the exynos_lcd_* family of functions. Remove these from the boards, and then remove unused logo and related code as well.

---
 arch/arm/mach-exynos/include/mach/system.h |    1 -
 board/samsung/trats/trats.c                |   23 -
 board/samsung/trats2/trats2.c              |   35 -
 board/samsung/universal_c210/universal.c   |  107 -
 drivers/video/Makefile                     |    1 -
 drivers/video/s6e8ax0.c                    |  265 -
 include/configs/s5pc210_universal.h        |    2 -
 include/configs/trats.h                    |    2 -
 include/configs/trats2.h                   |    2 -
 lib/Makefile                               |    1 -
 lib/tizen/Makefile                         |    6 -
 lib/tizen/tizen.c                          |   34 -
 lib/tizen/tizen_logo_16bpp.h               | 7934 --------------------
 lib/tizen/tizen_logo_16bpp_gzip.h          |  647 --
 14 files changed, 9060 deletions(-)
 delete mode 100644 drivers/video/s6e8ax0.c
 delete mode 100644 lib/tizen/Makefile
 delete mode 100644 lib/tizen/tizen.c
 delete mode 100644 lib/tizen/tizen_logo_16bpp.h
 delete mode 100644 lib/tizen/tizen_logo_16bpp_gzip.h
arch/arm/mach-exynos/include/mach/system.h +0 -1
index 48f13c76481b..5d0bebac5733 100644
@@ -116,6 +116,5 @@ struct exynos5_sysreg {
 
 void set_usbhost_mode(unsigned int mode);
 void set_system_display_ctrl(void);
-int exynos_lcd_early_init(const void *blob);
 
 #endif	/* _EXYNOS4_SYSTEM_H */
board/samsung/trats/trats.c +0 -23
index d06687620cf4..24bf355ef6ec 100644
@@ -403,16 +403,6 @@ int exynos_early_init_f(void)
 	return 0;
 }
 
-void exynos_reset_lcd(void)
-{
-	gpio_request(EXYNOS4_GPIO_Y45, "lcd_reset");
-	gpio_direction_output(EXYNOS4_GPIO_Y45, 1);
-	udelay(10000);
-	gpio_direction_output(EXYNOS4_GPIO_Y45, 0);
-	udelay(10000);
-	gpio_direction_output(EXYNOS4_GPIO_Y45, 1);
-}
-
 int lcd_power(void)
 {
 #if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */
@@ -460,16 +450,3 @@ int mipi_power(void)
 #endif
 	return 0;
 }
-
-#ifdef CONFIG_LCD
-void exynos_lcd_misc_init(vidinfo_t *vid)
-{
-#ifdef CONFIG_TIZEN
-	get_tizen_logo_info(vid);
-#endif
-#ifdef CONFIG_S6E8AX0
-	s6e8ax0_init();
-	env_set("lcdinfo", "lcd=s6e8ax0");
-#endif
-}
-#endif
board/samsung/trats2/trats2.c +0 -35
index a03dc8738579..da7f0dc02290 100644
@@ -302,39 +302,4 @@ int mipi_power(void)
 	return 0;
 }
 
-void exynos_lcd_power_on(void)
-{
-#if !CONFIG_IS_ENABLED(DM_I2C) /* TODO(maintainer): Convert to driver model */
-	struct pmic *p = pmic_get("MAX77686_PMIC");
-
-	/* LCD_2.2V_EN: GPC0[1] */
-	gpio_request(EXYNOS4X12_GPIO_C01, "lcd_2v2_en");
-	gpio_set_pull(EXYNOS4X12_GPIO_C01, S5P_GPIO_PULL_UP);
-	gpio_direction_output(EXYNOS4X12_GPIO_C01, 1);
-
-	/* LDO25 VCC_3.1V_LCD */
-	pmic_probe(p);
-	max77686_set_ldo_voltage(p, 25, 3100000);
-	max77686_set_ldo_mode(p, 25, OPMODE_LPM);
-#endif
-}
-
-void exynos_reset_lcd(void)
-{
-	/* reset lcd */
-	gpio_request(EXYNOS4X12_GPIO_F21, "lcd_reset");
-	gpio_direction_output(EXYNOS4X12_GPIO_F21, 0);
-	udelay(10);
-	gpio_set_value(EXYNOS4X12_GPIO_F21, 1);
-}
-
-void exynos_lcd_misc_init(vidinfo_t *vid)
-{
-#ifdef CONFIG_TIZEN
-	get_tizen_logo_info(vid);
-#endif
-#ifdef CONFIG_S6E8AX0
-	s6e8ax0_init();
-#endif
-}
 #endif /* LCD */
board/samsung/universal_c210/universal.c +0 -107

116 lines not on this page · raw message

drivers/video/Makefile +0 -1
index 259658074bc1..63d8dbe3c85f 100644
@@ -38,7 +38,6 @@ obj-$(CONFIG_NXP_TDA19988) += tda19988.o
 obj-$(CONFIG_OSD) += video_osd-uclass.o
 obj-$(CONFIG_PXA_LCD) += pxa_lcd.o
 obj-$(CONFIG_SANDBOX_OSD) += sandbox_osd.o
-obj-$(CONFIG_S6E8AX0) += s6e8ax0.o
 obj-$(CONFIG_SCF0403_LCD) += scf0403_lcd.o
 obj-$(CONFIG_VIDEO_ARM_MALIDP) += mali_dp.o
 obj-$(CONFIG_VIDEO_BCM2835) += bcm2835.o
drivers/video/s6e8ax0.c deleted +0 -265

265 lines not on this page · raw message

include/configs/s5pc210_universal.h +0 -2
index 8df7377a0f2f..3b94b17ff788 100644
@@ -11,8 +11,6 @@
 
 #include <configs/exynos4-common.h>
 
-#define CONFIG_TIZEN			/* TIZEN lib */
-
 /* Keep L2 Cache Disabled */
 
 /* Universal has 2 banks of DRAM */
include/configs/trats.h +0 -2
index db33560f0db4..118ceb525010 100644
@@ -13,8 +13,6 @@
 
 #define CONFIG_TRATS
 
-#define CONFIG_TIZEN			/* TIZEN lib */
-
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
 #define CONFIG_SYS_PL310_BASE	0x10502000
include/configs/trats2.h +0 -2
index a4d598d0851a..2d644a8b231d 100644
@@ -12,8 +12,6 @@
 
 #include <configs/exynos4-common.h>
 
-#define CONFIG_TIZEN			/* TIZEN lib */
-
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
 #define CONFIG_SYS_PL310_BASE	0x10502000
lib/Makefile +0 -1
index d9b1811f7506..e3deb1528794 100644
@@ -11,7 +11,6 @@ obj-$(CONFIG_EFI_LOADER) += efi_loader/
 obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/
 obj-$(CONFIG_LZMA) += lzma/
 obj-$(CONFIG_BZIP2) += bzip2/
-obj-$(CONFIG_TIZEN) += tizen/
 obj-$(CONFIG_FIT) += libfdt/
 obj-$(CONFIG_OF_LIVE) += of_live.o
 obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
lib/tizen/Makefile deleted +0 -6
deleted file mode 100644
index 3651ea21fbe5..000000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2012 Samsung Electronics
-# Donghwa Lee <[email protected]>
-
-obj-$(CONFIG_TIZEN) += tizen.o
lib/tizen/tizen.c deleted +0 -34
deleted file mode 100644
index 916b2597569c..000000000000
@@ -1,34 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2012 Samsung Electronics
- * Donghwa Lee <[email protected]>
- */
-
-#include <common.h>
-#include <lcd.h>
-#include <libtizen.h>
-
-#include "tizen_logo_16bpp.h"
-#include "tizen_logo_16bpp_gzip.h"
-
-#ifdef CONFIG_LCD
-void get_tizen_logo_info(vidinfo_t *vid)
-{
-	switch (vid->vl_bpix) {
-	case 4:
-		vid->logo_width = TIZEN_LOGO_16BPP_WIDTH;
-		vid->logo_height = TIZEN_LOGO_16BPP_HEIGHT;
-		vid->logo_x_offset = TIZEN_LOGO_16BPP_X_OFFSET;
-		vid->logo_y_offset = TIZEN_LOGO_16BPP_Y_OFFSET;
-#if defined(CONFIG_VIDEO_BMP_GZIP)
-		vid->logo_addr = (ulong)tizen_logo_16bpp_gzip;
-#else
-		vid->logo_addr = (ulong)tizen_logo_16bpp;
-#endif
-		break;
-	default:
-		vid->logo_addr = 0;
-		break;
-	}
-}
-#endif
lib/tizen/tizen_logo_16bpp.h deleted +0 -7934

2,464 lines not on this page · raw message

lib/tizen/tizen_logo_16bpp_gzip.h deleted +0 -647

647 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

Reviewed-by on v1 8/15
#8 lore raw

Re: [PATCH 08/15] arm: samsung: Remove dead LCD code

Dear Tom,

Quoted 19 lines · Tom Rini

Since bb5930d5c97f ("exynos: video: Convert several boards to driver model for video") there have been no callers of any of the exynos_lcd_* family of functions. Remove these from the boards, and then remove unused logo and related code as well.

---
 arch/arm/mach-exynos/include/mach/system.h |    1 -
 board/samsung/trats/trats.c                |   23 -
 board/samsung/trats2/trats2.c              |   35 -
 board/samsung/universal_c210/universal.c   |  107 -
 drivers/video/Makefile                     |    1 -
 drivers/video/s6e8ax0.c                    |  265 -
 include/configs/s5pc210_universal.h        |    2 -
 include/configs/trats.h                    |    2 -
 include/configs/trats2.h                   |    2 -
 lib/Makefile                               |    1 -
 lib/tizen/Makefile                         |    6 -
 lib/tizen/tizen.c                          |   34 -
Quoted 10 lines
 lib/tizen/tizen_logo_16bpp.h               | 7934 --------------------
 lib/tizen/tizen_logo_16bpp_gzip.h          |  647 --
 14 files changed, 9060 deletions(-)
 delete mode 100644 drivers/video/s6e8ax0.c
 delete mode 100644 lib/tizen/Makefile
 delete mode 100644 lib/tizen/tizen.c
 delete mode 100644 lib/tizen/tizen_logo_16bpp.h
 delete mode 100644 lib/tizen/tizen_logo_16bpp_gzip.h
Signature · 2 lines
Thanks,
Minkyu Kang.
author
#9 lore raw

PATCH 9/15 arm: exynos: Remove old pwm backlight driver

In reply to Tom Rini

Remove the unused older exynos pwm backlight driver.

---
 .../mach-exynos/include/mach/pwm_backlight.h  | 20 ---------
 drivers/video/exynos/exynos_pwm_bl.c          | 44 -------------------
 2 files changed, 64 deletions(-)
 delete mode 100644 arch/arm/mach-exynos/include/mach/pwm_backlight.h
 delete mode 100644 drivers/video/exynos/exynos_pwm_bl.c
arch/arm/mach-exynos/include/mach/pwm_backlight.h deleted +0 -20
deleted file mode 100644
index c7d3a91e3183..000000000000
@@ -1,20 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2012 Samsung Electronics
- *
- * Author: Donghwa Lee <[email protected]>
- */
-
-#ifndef _PWM_BACKLIGHT_H_
-#define _PWM_BACKLIGHT_H_
-
-struct pwm_backlight_data {
-	int pwm_id;
-	int period;
-	int max_brightness;
-	int brightness;
-};
-
-extern int exynos_pwm_backlight_init(struct pwm_backlight_data *pd);
-
-#endif /* _PWM_BACKLIGHT_H_ */
drivers/video/exynos/exynos_pwm_bl.c deleted +0 -44

44 lines not on this page · raw message

Signature · 1 line
2.25.1
Reviewed-by on v1 9/15
#10 lore raw

Re: [PATCH 09/15] arm: exynos: Remove old pwm backlight driver

Dear Tom,

Quoted 11 lines · Tom Rini

Remove the unused older exynos pwm backlight driver.

---
 .../mach-exynos/include/mach/pwm_backlight.h  | 20 ---------
 drivers/video/exynos/exynos_pwm_bl.c          | 44 -------------------
 2 files changed, 64 deletions(-)
 delete mode 100644 arch/arm/mach-exynos/include/mach/pwm_backlight.h
 delete mode 100644 drivers/video/exynos/exynos_pwm_bl.c
Signature · 2 lines
Thanks,
Minkyu Kang.
author
#11 lore raw

PATCH 10/15 arm: samsung: Migrate a number of symbols to Kconfig

In reply to Tom Rini

- In a number of cases, use CONFIG_ARCH_EXYNOS[45] rather than CONFIG_EXYNOS[45]
- In other cases, test for CONFIG_ARCH_EXYNOS or CONFIG_ARCH_S5PC1XX
- Migrate specific SoC CONFIG values to Kconfig
- Use CONFIG_TARGET_x rather than CONFIG_x
- Migrate other CONFIG_EXYNOS_x symbols to Kconfig
- Reference CONFIG_EXYNOS_RELOCATE_CODE_BASE directly as EXYNOS_RELOCATE_CODE_BASE
- Rename CONFIG_S5P_PA_SYSRAM to CONFIG_SMP_PEN_ADDR to match the rest of U-Boot usage.

---
 arch/arm/Kconfig                        |  3 ++
 arch/arm/dts/Makefile                   |  8 ++---
 arch/arm/include/asm/spl.h              |  5 ++--
 arch/arm/mach-exynos/Kconfig            | 39 +++++++++++++++++++++++++
 arch/arm/mach-exynos/Makefile           |  4 +--
 arch/arm/mach-exynos/dmc_init_exynos4.c |  2 +-
 arch/arm/mach-exynos/exynos4_setup.h    |  4 +--
 arch/arm/mach-exynos/lowlevel_init.c    |  8 +++--
 arch/arm/mach-exynos/sec_boot.S         |  2 +-
 board/samsung/arndale/arndale.c         |  4 +--
 configs/odroid-xu3_defconfig            |  1 +
 configs/odroid_defconfig                |  1 +
 configs/trats2_defconfig                |  1 +
 configs/trats_defconfig                 |  1 +
 drivers/i2c/exynos_hs_i2c.c             |  2 +-
 drivers/i2c/s3c24x0_i2c.c               |  4 +--
 include/configs/arndale.h               |  6 +---
 include/configs/espresso7420.h          |  2 --
 include/configs/exynos-common.h         |  4 ---
 include/configs/exynos4-common.h        |  2 --
 include/configs/exynos5-common.h        | 10 -------
 include/configs/exynos5-dt-common.h     |  2 --
 include/configs/exynos5250-common.h     |  2 --
 include/configs/exynos5420-common.h     |  7 -----
 include/configs/exynos7420-common.h     |  4 ---
 include/configs/exynos78x0-common.h     |  4 ---
 include/configs/odroid.h                |  3 --
 include/configs/odroid_xu3.h            |  3 --
 include/configs/origen.h                |  4 ---
 include/configs/s5p_goni.h              |  5 ----
 include/configs/smdkc100.h              |  8 -----
 include/configs/smdkv310.h              |  2 --
 include/configs/trats.h                 |  5 ----
 include/configs/trats2.h                |  3 --
 include/power/fg_battery_cell_params.h  |  2 +-
 scripts/Makefile.spl                    |  6 ++--
 36 files changed, 74 insertions(+), 99 deletions(-)
arch/arm/Kconfig +3 -0
index da661ce30b03..b60b47743e79 100644
@@ -609,6 +609,9 @@ config ARM64_SUPPORT_AARCH32
 	help
 	  This ARM64 system supports AArch32 execution state.
 
+config S5P
+	def_bool y if ARCH_EXYNOS || ARCH_S5PC1XX
+
 choice
 	prompt "Target select"
 	default TARGET_HIKEY
arch/arm/dts/Makefile +4 -4
index 0a2713c06a3c..539eeb5a87a2 100644
@@ -5,9 +5,9 @@ dtb-$(CONFIG_TARGET_TAURUS) += at91sam9g20-taurus.dtb
 dtb-$(CONFIG_TARGET_CORVUS) += at91sam9g45-corvus.dtb
 dtb-$(CONFIG_TARGET_GURNARD) += at91sam9g45-gurnard.dtb
 
-dtb-$(CONFIG_S5PC100) += s5pc1xx-smdkc100.dtb
-dtb-$(CONFIG_S5PC110) += s5pc1xx-goni.dtb
-dtb-$(CONFIG_EXYNOS4) += exynos4210-origen.dtb \
+dtb-$(CONFIG_TARGET_SMDKC100) += s5pc1xx-smdkc100.dtb
+dtb-$(CONFIG_TARGET_S5P_GONI) += s5pc1xx-goni.dtb
+dtb-$(CONFIG_ARCH_EXYNOS4) += exynos4210-origen.dtb \
 	exynos4210-smdkv310.dtb \
 	exynos4210-universal_c210.dtb \
 	exynos4210-trats.dtb \
@@ -19,7 +19,7 @@ dtb-$(CONFIG_TARGET_HIKEY960) += hi3660-hikey960.dtb
 
 dtb-$(CONFIG_TARGET_POPLAR) += hi3798cv200-poplar.dtb
 
-dtb-$(CONFIG_EXYNOS5) += exynos5250-arndale.dtb \
+dtb-$(CONFIG_ARCH_EXYNOS5) += exynos5250-arndale.dtb \
 	exynos5250-snow.dtb \
 	exynos5250-spring.dtb \
 	exynos5250-smdk5250.dtb \
arch/arm/include/asm/spl.h +2 -3
index b5790bd0bc45..0ece4b09060a 100644
@@ -6,9 +6,8 @@
 #ifndef	_ASM_SPL_H_
 #define	_ASM_SPL_H_
 
-#if defined(CONFIG_ARCH_OMAP2PLUS) \
-	|| defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
-	|| defined(CONFIG_EXYNOS4210) || defined(CONFIG_ARCH_K3)
+#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) || \
+	defined(CONFIG_ARCH_K3) || defined(CONFIG_ARCH_OMAP2PLUS)
 /* Platform-specific defines */
 #include <asm/arch/spl.h>
 
arch/arm/mach-exynos/Kconfig +39 -0
index 77fb9d1775bb..84102908561e 100644
@@ -54,11 +54,15 @@ endchoice
 
 if ARCH_EXYNOS4
 
+config EXYNOS4210
+	bool
+
 choice
 	prompt "EXYNOS4 board select"
 
 config TARGET_SMDKV310
 	bool "Exynos4210 SMDKV310 board"
+	select EXYNOS4210
 	select OF_CONTROL
 	select SUPPORT_SPL
 
@@ -70,6 +74,7 @@ config TARGET_S5PC210_UNIVERSAL
 
 config TARGET_ORIGEN
 	bool "Exynos4412 Origen board"
+	select EXYNOS4210
 	select SUPPORT_SPL
 
 config TARGET_TRATS2
@@ -83,6 +88,15 @@ endif
 
 if ARCH_EXYNOS5
 
+config EXYNOS5250
+	bool
+
+config EXYNOS5420
+	bool
+
+config EXYNOS5_DT
+	bool
+
 config SPL_GPIO
 	default y
 
@@ -97,6 +111,8 @@ choice
 
 config TARGET_ODROID_XU3
 	bool "Exynos5422 Odroid board"
+	select EXYNOS5_DT
+	select EXYNOS5420
 	select OF_CONTROL
 
 config TARGET_ARNDALE
@@ -105,36 +121,49 @@ config TARGET_ARNDALE
 	select ARM_ERRATA_774769
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
+	select EXYNOS5250
 	select OF_CONTROL
 	select SUPPORT_SPL
 
 config TARGET_SMDK5250
 	bool "SMDK5250 board"
+	select EXYNOS5_DT
+	select EXYNOS5250
 	select OF_CONTROL
 	select SUPPORT_SPL
 
 config TARGET_SNOW
 	bool "Snow board"
+	select EXYNOS5_DT
+	select EXYNOS5250
 	select OF_CONTROL
 	select SUPPORT_SPL
 
 config TARGET_SPRING
 	bool "Spring board"
+	select EXYNOS5_DT
+	select EXYNOS5250
 	select OF_CONTROL
 	select SUPPORT_SPL
 
 config TARGET_SMDK5420
 	bool "SMDK5420 board"
+	select EXYNOS5_DT
+	select EXYNOS5420
 	select OF_CONTROL
 	select SUPPORT_SPL
 
 config TARGET_PEACH_PI
 	bool "Peach Pi board"
+	select EXYNOS5_DT
+	select EXYNOS5420
 	select OF_CONTROL
 	select SUPPORT_SPL
 
 config TARGET_PEACH_PIT
 	bool "Peach Pit board"
+	select EXYNOS5_DT
+	select EXYNOS5420
 	select OF_CONTROL
 	select SUPPORT_SPL
 
@@ -189,6 +218,16 @@ endif
 config SYS_SOC
 	default "exynos"
 
+config EXYNOS_ACE_SHA
+	bool "Advanced Crypto Engine SHA support"
+	depends on (ARCH_EXYNOS4 || ARCH_EXYNOS5) && (LIB_HW_RAND || SHA_HW_ACCEL)
+	default y if ARCH_EXYNOS5
+
+config EXYNOS_TMU
+	bool "Exynos5 thermal management unit support"
+	depends on ARCH_EXYNOS5
+	default y
+
 source "board/samsung/smdkv310/Kconfig"
 source "board/samsung/trats/Kconfig"
 source "board/samsung/universal_c210/Kconfig"
arch/arm/mach-exynos/Makefile +2 -2
index e895c13157f1..dd097cf54183 100644
@@ -10,8 +10,8 @@ obj-$(CONFIG_ARM64)	+= mmu-arm64.o
 obj-$(CONFIG_EXYNOS5420)	+= sec_boot.o
 
 ifdef CONFIG_SPL_BUILD
-obj-$(CONFIG_EXYNOS5)	+= clock_init_exynos5.o
-obj-$(CONFIG_EXYNOS5)	+= dmc_common.o dmc_init_ddr3.o
+obj-$(CONFIG_ARCH_EXYNOS5)	+= clock_init_exynos5.o
+obj-$(CONFIG_ARCH_EXYNOS5)	+= dmc_common.o dmc_init_ddr3.o
 obj-$(CONFIG_EXYNOS4210)+= dmc_init_exynos4.o clock_init_exynos4.o
 obj-y	+= spl_boot.o tzpc.o
 obj-y	+= lowlevel_init.o
arch/arm/mach-exynos/dmc_init_exynos4.c +1 -1
index ecddc7268497..58a3c82f681d 100644
@@ -175,7 +175,7 @@ void mem_ctrl_init(int reset)
 	 * 0: full_sync
 	 */
 	writel(1, ASYNC_CONFIG);
-#ifdef CONFIG_ORIGEN
+#ifdef CONFIG_TARGET_ORIGEN
 	/* Interleave: 2Bit, Interleave_bit1: 0x15, Interleave_bit0: 0x7 */
 	writel(APB_SFR_INTERLEAVE_CONF_VAL, EXYNOS4_MIU_BASE +
 		APB_SFR_INTERLEAVE_CONF_OFFSET);
arch/arm/mach-exynos/exynos4_setup.h +2 -2
index a08d64a8e23e..fbb45eb897e3 100644
@@ -420,7 +420,7 @@ struct mem_timings {
 #define ABP_SFR_SLV1_SINGLE_ADDRMAP_START_OFFSET	0x828
 #define ABP_SFR_SLV1_SINGLE_ADDRMAP_END_OFFSET	0x830
 
-#ifdef CONFIG_ORIGEN
+#ifdef CONFIG_TARGET_ORIGEN
 /* Interleave: 2Bit, Interleave_bit1: 0x15, Interleave_bit0: 0x7 */
 #define APB_SFR_INTERLEAVE_CONF_VAL	0x20001507
 #define APB_SFR_ARBRITATION_CONF_VAL	0x00000001
@@ -542,7 +542,7 @@ struct mem_timings {
 
 #define CONTROL2_VAL		0x00000000
 
-#ifdef CONFIG_ORIGEN
+#ifdef CONFIG_TARGET_ORIGEN
 #define TIMINGREF_VAL		0x000000BB
 #define TIMINGROW_VAL		0x4046654f
 #define	TIMINGDATA_VAL		0x46400506
arch/arm/mach-exynos/lowlevel_init.c +6 -2
index 2645a8ff4924..1ff5fcac1b38 100644
@@ -49,6 +49,10 @@ enum {
 };
 
 #ifdef CONFIG_EXYNOS5420
+
+/* Address for relocating helper code (Last 4 KB of IRAM) */
+#define EXYNOS_RELOCATE_CODE_BASE	(CONFIG_IRAM_TOP - 0x1000)
+
 /*
  * Power up secondary CPUs.
  */
@@ -56,7 +60,7 @@ static void secondary_cpu_start(void)
 {
 	v7_enable_smp(EXYNOS5420_INFORM_BASE);
 	svc32_mode_en();
-	branch_bx(CONFIG_EXYNOS_RELOCATE_CODE_BASE);
+	branch_bx(EXYNOS_RELOCATE_CODE_BASE);
 }
 
 /*
@@ -153,7 +157,7 @@ static void power_down_core(void)
 static void secondary_cores_configure(void)
 {
 	/* Clear secondary boot iRAM base */
-	writel(0x0, (CONFIG_EXYNOS_RELOCATE_CODE_BASE + 0x1C));
+	writel(0x0, (EXYNOS_RELOCATE_CODE_BASE + 0x1C));
 
 	/* set lowpower flag and address */
 	writel(CPU_RST_FLAG_VAL, CONFIG_LOWPOWER_FLAG);
arch/arm/mach-exynos/sec_boot.S +1 -1
index 59d05e6c01d9..40c07209e475 100644
@@ -21,7 +21,7 @@ relocate_wait_code:
 	.ltorg
 /*
  * Secondary core waits here until Primary wake it up.
- * Below code is copied to CONFIG_EXYNOS_RELOCATE_CODE_BASE.
+ * Below code is copied to (CONFIG_IRAM_TOP - 0x1000)
  * This is a workaround code which is supposed to act as a
  * substitute/supplement to the iROM code.
  *
board/samsung/arndale/arndale.c +2 -2
index b43242fd3f40..5320c1f2e0ad 100644
@@ -112,10 +112,10 @@ int checkboard(void)
 }
 #endif
 
-#ifdef CONFIG_S5P_PA_SYSRAM
+#ifdef CONFIG_SMP_PEN_ADDR
 void smp_set_core_boot_addr(unsigned long addr, int corenr)
 {
-	writel(addr, CONFIG_S5P_PA_SYSRAM);
+	writel(addr, CONFIG_SMP_PEN_ADDR);
 
 	/* make sure this write is really executed */
 	__asm__ volatile ("dsb\n");
configs/odroid-xu3_defconfig +1 -0
index 7acdca93398d..929a52140d5d 100644
@@ -6,6 +6,7 @@ CONFIG_SYS_TEXT_BASE=0x43E00000
 CONFIG_SYS_MALLOC_LEN=0x5004000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_ARCH_EXYNOS5=y
+# CONFIG_EXYNOS_TMU is not set
 CONFIG_NR_DRAM_BANKS=8
 CONFIG_ENV_SIZE=0x4000
 CONFIG_ENV_OFFSET=0x310000
configs/odroid_defconfig +1 -0
index d442aca78871..8beb6a006e5e 100644
@@ -8,6 +8,7 @@ CONFIG_SYS_MALLOC_LEN=0x5004000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_ARCH_EXYNOS4=y
 CONFIG_TARGET_ODROID=y
+CONFIG_EXYNOS_ACE_SHA=y
 CONFIG_NR_DRAM_BANKS=8
 CONFIG_ENV_SIZE=0x4000
 CONFIG_ENV_OFFSET=0x140000
configs/trats2_defconfig +1 -0
index 00a663fcf2aa..5c47a22d1e06 100644
@@ -8,6 +8,7 @@ CONFIG_SYS_MALLOC_LEN=0x5001000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_ARCH_EXYNOS4=y
 CONFIG_TARGET_TRATS2=y
+CONFIG_EXYNOS_ACE_SHA=y
 CONFIG_ENV_SIZE=0x1000
 CONFIG_ENV_OFFSET=0x7000
 CONFIG_DEFAULT_DEVICE_TREE="exynos4412-trats2"
configs/trats_defconfig +1 -0
index d5f08666068c..008a8ff4b30e 100644
@@ -8,6 +8,7 @@ CONFIG_SYS_MALLOC_LEN=0x5001000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_ARCH_EXYNOS4=y
 CONFIG_TARGET_TRATS=y
+CONFIG_EXYNOS_ACE_SHA=y
 CONFIG_ENV_SIZE=0x1000
 CONFIG_ENV_OFFSET=0x7000
 CONFIG_DEFAULT_DEVICE_TREE="exynos4210-trats"
drivers/i2c/exynos_hs_i2c.c +1 -1
index 39bcacc17a7e..a7349e06cfd3 100644
@@ -147,7 +147,7 @@ static int hsi2c_get_clk_details(struct s3c24x0_i2c_bus *i2c_bus)
 	unsigned int i = 0, utemp0 = 0, utemp1 = 0;
 	unsigned int t_ftl_cycle;
 
-#if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
+#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
 	clkin = get_i2c_clk();
 #else
 	clkin = get_PCLK();
drivers/i2c/s3c24x0_i2c.c +2 -2
index aaccb3aa2280..505e20bc61c8 100644
@@ -8,7 +8,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <fdtdec.h>
-#if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
+#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
 #include <log.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/cpu.h>
@@ -53,7 +53,7 @@ static void read_write_byte(struct s3c24x0_i2c *i2c)
 static void i2c_ch_init(struct s3c24x0_i2c *i2c, int speed, int slaveadd)
 {
 	ulong freq, pres = 16, div;
-#if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
+#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5)
 	freq = get_i2c_clk();
 #else
 	freq = get_PCLK();
include/configs/arndale.h +1 -5
index 5ebba0cda20d..7a244769e30a 100644
@@ -14,13 +14,9 @@
 #include "exynos5250-common.h"
 #include <configs/exynos5-common.h>
 
-/* MMC SPL */
-#define CONFIG_EXYNOS_SPL
-
 /* Miscellaneous configurable options */
 
-#define CONFIG_S5P_PA_SYSRAM	0x02020000
-#define CONFIG_SMP_PEN_ADDR	CONFIG_S5P_PA_SYSRAM
+#define CONFIG_SMP_PEN_ADDR	0x02020000
 
 /* The PERIPHBASE in the CBAR register is wrong on the Arndale, so override it */
 #define CONFIG_ARM_GIC_BASE_ADDRESS	0x10480000
include/configs/espresso7420.h +0 -2
index 660d1a080495..2f067a442482 100644
@@ -10,8 +10,6 @@
 
 #include <configs/exynos7420-common.h>
 
-#define CONFIG_ESPRESSO7420
-
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 
 /* DRAM Memory Banks */
include/configs/exynos-common.h +0 -4
index cbcef261f432..79860212f403 100644
@@ -8,10 +8,6 @@
 #ifndef __EXYNOS_COMMON_H
 #define __EXYNOS_COMMON_H
 
-/* High Level Configuration Options */
-#define CONFIG_SAMSUNG			/* in a SAMSUNG core */
-#define CONFIG_S5P			/* S5P Family */
-
 #include <asm/arch/cpu.h>		/* get chip and board defs */
 #include <linux/sizes.h>
 #include <linux/stringify.h>
include/configs/exynos4-common.h +0 -2
index 4202c6261262..625a2d8dc185 100644
@@ -8,8 +8,6 @@
 #ifndef __CONFIG_EXYNOS4_COMMON_H
 #define __CONFIG_EXYNOS4_COMMON_H
 
-#define CONFIG_EXYNOS4			/* Exynos4 Family */
-
 #include "exynos-common.h"
 
 /* SD/MMC configuration */
include/configs/exynos5-common.h +0 -10
index 7ab821d08ca3..44f5cb1e83f4 100644
@@ -8,15 +8,8 @@
 #ifndef __CONFIG_EXYNOS5_COMMON_H
 #define __CONFIG_EXYNOS5_COMMON_H
 
-#define CONFIG_EXYNOS5			/* Exynos5 Family */
-
 #include "exynos-common.h"
 
-#define CONFIG_EXYNOS_SPL
-
-/* Enable ACE acceleration for SHA1 and SHA256 */
-#define CONFIG_EXYNOS_ACE_SHA
-
 /* Power Down Modes */
 #define S5P_CHECK_SLEEP			0x00000BAD
 #define S5P_CHECK_DIDLE			0xBAD00000
@@ -31,9 +24,6 @@
 /* select serial console configuration */
 #define EXYNOS5_DEFAULT_UART_OFFSET	0x010000
 
-/* Thermal Management Unit */
-#define CONFIG_EXYNOS_TMU
-
 /* MMC SPL */
 #define COPY_BL2_FNPTR_ADDR	0x02020030
 
include/configs/exynos5-dt-common.h +0 -2
index bcbdfa7ae35a..38f6940a3dbc 100644
@@ -15,8 +15,6 @@
 		"stdout=serial,vidconsole\0" \
 		"stderr=serial,vidconsole\0"
 
-#define CONFIG_EXYNOS5_DT
-
 #define CONFIG_SYS_SPI_BASE	0x12D30000
 #define FLASH_SIZE		(4 << 20)
 #define CONFIG_SPI_BOOTING
include/configs/exynos5250-common.h +0 -2
index 8d91a7de5cde..8e2f135f934c 100644
@@ -9,8 +9,6 @@
 #ifndef __CONFIG_5250_H
 #define __CONFIG_5250_H
 
-#define CONFIG_EXYNOS5250
-
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 
 /* DRAM Memory Banks */
include/configs/exynos5420-common.h +0 -7
index 35bf3c2fb4a7..7a9307ccc3db 100644
@@ -8,19 +8,12 @@
 #ifndef __CONFIG_EXYNOS5420_H
 #define __CONFIG_EXYNOS5420_H
 
-#define CONFIG_EXYNOS5420
-
-#define CONFIG_EXYNOS5_DT
-
 #define CONFIG_VAR_SIZE_SPL
 
 #define CONFIG_IRAM_TOP			0x02074000
 
 #define CONFIG_PHY_IRAM_BASE		0x02020000
 
-/* Address for relocating helper code (Last 4 KB of IRAM) */
-#define CONFIG_EXYNOS_RELOCATE_CODE_BASE	(CONFIG_IRAM_TOP - 0x1000)
-
 /*
  * Low Power settings
  */
include/configs/exynos7420-common.h +0 -4
index e8aed567102e..a8bef860c2f7 100644
@@ -8,10 +8,6 @@
 #ifndef __CONFIG_EXYNOS7420_COMMON_H
 #define __CONFIG_EXYNOS7420_COMMON_H
 
-/* High Level Configuration Options */
-#define CONFIG_SAMSUNG			/* in a SAMSUNG core */
-#define CONFIG_S5P
-
 #include <asm/arch/cpu.h>		/* get chip and board defs */
 #include <linux/sizes.h>
 
include/configs/exynos78x0-common.h +0 -4
index 4a2e56b63588..6b1de18bc159 100644
@@ -11,10 +11,6 @@
 #ifndef __CONFIG_EXYNOS78x0_COMMON_H
 #define __CONFIG_EXYNOS78x0_COMMON_H
 
-/* High Level Configuration Options */
-#define CONFIG_SAMSUNG			/* in a SAMSUNG core */
-#define CONFIG_S5P
-
 #include <asm/arch/cpu.h>		/* get chip and board defs */
 #include <linux/sizes.h>
 
include/configs/odroid.h +0 -3
index 11a4a409dbaf..fec2d6e62f77 100644
@@ -146,9 +146,6 @@
 
 /* GPT */
 
-/* Security subsystem - enable hw_rand() */
-#define CONFIG_EXYNOS_ACE_SHA
-
 /*
  * Supported Odroid boards: X3, U3
  * TODO: Add Odroid X support
include/configs/odroid_xu3.h +0 -3
index 476bde53572d..1361f83ffec2 100644
@@ -28,9 +28,6 @@
 #define CONFIG_G_DNL_UMS_VENDOR_NUM	0x0525
 #define CONFIG_G_DNL_UMS_PRODUCT_NUM	0xA4A5
 
-/* FIXME: MUST BE REMOVED AFTER TMU IS TURNED ON */
-#undef CONFIG_EXYNOS_TMU
-
 #define CONFIG_DFU_ALT_SYSTEM               \
 	"uImage fat 0 1;"                   \
 	"zImage fat 0 1;"                   \
include/configs/origen.h +0 -4
index 4d296b7a03fb..36aaa7c14fb3 100644
@@ -10,10 +10,6 @@
 
 #include <configs/exynos4-common.h>
 
-/* High Level Configuration Options */
-#define CONFIG_EXYNOS4210		1	/* which is a EXYNOS4210 SoC */
-#define CONFIG_ORIGEN			1	/* working with ORIGEN*/
-
 /* ORIGEN has 4 bank of DRAM */
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 #define PHYS_SDRAM_1			CONFIG_SYS_SDRAM_BASE
include/configs/s5p_goni.h +0 -5
index d27116ad1136..8b7e2e5dc9e9 100644
@@ -10,11 +10,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-/* High Level Configuration Options */
-#define CONFIG_SAMSUNG		1	/* in a SAMSUNG core */
-#define CONFIG_S5P		1	/* which is in a S5P Family */
-#define CONFIG_S5PC110		1	/* which is in a S5PC110 */
-
 #include <linux/sizes.h>
 #include <asm/arch/cpu.h>		/* get chip and board defs */
 
include/configs/smdkc100.h +0 -8
index 2f04b077ad35..9a9f3fedff18 100644
@@ -11,14 +11,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-/*
- * High Level Configuration Options
- * (easy to change)
- */
-#define CONFIG_SAMSUNG		1	/* in a SAMSUNG core */
-#define CONFIG_S5P		1	/* which is in a S5P Family */
-#define CONFIG_S5PC100		1	/* which is in a S5PC100 */
-
 #include <asm/arch/cpu.h>		/* get chip and board defs */
 
 /* input clock of PLL: SMDKC100 has 12MHz input clock */
include/configs/smdkv310.h +0 -2
index 1367b7d0600a..bb0f5473030d 100644
@@ -13,8 +13,6 @@
 #undef CONFIG_USB_GADGET_DWC2_OTG_PHY
 
 /* High Level Configuration Options */
-#define CONFIG_EXYNOS4210		1	/* which is a EXYNOS4210 SoC */
-
 #define CONFIG_SYS_SDRAM_BASE		0x40000000
 
 /* Handling Sleep Mode*/
include/configs/trats.h +0 -5
index 118ceb525010..ee4a583baa82 100644
@@ -11,8 +11,6 @@
 
 #include <configs/exynos4-common.h>
 
-#define CONFIG_TRATS
-
 #ifndef CONFIG_SYS_L2CACHE_OFF
 #define CONFIG_SYS_L2_PL310
 #define CONFIG_SYS_PL310_BASE	0x10502000
@@ -128,9 +126,6 @@
 
 /* GPT */
 
-/* Security subsystem - enable hw_rand() */
-#define CONFIG_EXYNOS_ACE_SHA
-
 /* Common misc for Samsung */
 #define CONFIG_MISC_COMMON
 
include/configs/trats2.h +0 -3
index 2d644a8b231d..c5df03a9f54d 100644
@@ -116,9 +116,6 @@
 
 /* GPT */
 
-/* Security subsystem - enable hw_rand() */
-#define CONFIG_EXYNOS_ACE_SHA
-
 /* Common misc for Samsung */
 #define CONFIG_MISC_COMMON
 
include/power/fg_battery_cell_params.h +1 -1
index b8c895bbabb1..500c8ea7174d 100644
@@ -7,7 +7,7 @@
 #ifndef __FG_BATTERY_CELL_PARAMS_H_
 #define __FG_BATTERY_CELL_PARAMS_H_
 
-#if  defined(CONFIG_POWER_FG_MAX17042) && defined(CONFIG_TRATS)
+#if  defined(CONFIG_POWER_FG_MAX17042) && defined(CONFIG_TARGET_TRATS)
 
 /* Cell characteristics - Exynos4 TRATS development board */
 /* Shall be written to addr 0x80h */
scripts/Makefile.spl +3 -3
index c1d32f587911..1cfb8115e310 100644
@@ -253,7 +253,7 @@ endif
 
 INPUTS-y	+= $(obj)/$(SPL_BIN).bin $(obj)/$(SPL_BIN).sym
 
-ifdef CONFIG_SAMSUNG
+ifneq ($(CONFIG_ARCH_EXYNOS)$(CONFIG_ARCH_S5PC1XX),)
 INPUTS-y	+= $(obj)/$(BOARD)-spl.bin
 endif
 
@@ -367,8 +367,8 @@ $(platdata-hdr) $(u-boot-spl-platdata_c) &: $(obj)/$(SPL_BIN).dtb
 	@rm -f $(u-boot-spl-all-platdata_c) $(u-boot-spl-all-platdata)
 	$(call if_changed,dtoc)
 
-ifdef CONFIG_SAMSUNG
-ifdef CONFIG_VAR_SIZE_SPL
+ifneq ($(CONFIG_ARCH_EXYNOS)$(CONFIG_ARCH_S5PC1XX),)
+ifeq ($(CONFIG_EXYNOS5420),y)
 VAR_SIZE_PARAM = --vs
 else
 VAR_SIZE_PARAM =
Signature · 1 line
2.25.1
author
#12 lore raw

PATCH 11/15 video: Migrate exynos display options to Kconfig

In reply to Tom Rini

Following how it's done for the majority of drivers, add a new VIDEO_EXYNOS option and Kconfig file under drivers/video/exynos and list the current options there.

Cc Anatolij Gustschin <[email protected]>
Cc Jaehoon Chung <[email protected]>
Cc Minkyu Kang <[email protected]>

---
It would be good to have help options here, but I don't know the underlying parts, so what to add would be appreciated, or done as a follow-up. On a related note, the drivers themselves should be under something in the top-level MAINTAINERS file as they are not currently.

---
 configs/peach-pi_defconfig          |  3 +++
 configs/peach-pit_defconfig         |  3 +++
 configs/snow_defconfig              |  3 +++
 configs/spring_defconfig            |  3 +++
 drivers/video/Kconfig               |  2 ++
 drivers/video/exynos/Kconfig        | 20 ++++++++++++++++++++
 include/configs/exynos5-dt-common.h |  7 -------
 include/configs/peach-pi.h          |  7 -------
 include/configs/smdk5250.h          |  3 ---
 include/configs/smdk5420.h          |  3 ---
 include/configs/trats.h             |  1 -
 include/configs/trats2.h            |  1 -
 12 files changed, 34 insertions(+), 22 deletions(-)
 create mode 100644 drivers/video/exynos/Kconfig
configs/peach-pi_defconfig +3 -0
index 27be6075661b..d6662e18ab7b 100644
@@ -84,6 +84,9 @@ CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
 CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
+CONFIG_VIDEO_EXYNOS=y
+CONFIG_EXYNOS_DP=y
+CONFIG_EXYNOS_FB=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
 CONFIG_LCD=y
configs/peach-pit_defconfig +3 -0
index 296b4ceb195b..07740571c757 100644
@@ -83,6 +83,9 @@ CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
 CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
+CONFIG_VIDEO_EXYNOS=y
+CONFIG_EXYNOS_DP=y
+CONFIG_EXYNOS_FB=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
 CONFIG_LCD=y
configs/snow_defconfig +3 -0
index 4377a58130e3..8d1b28dcf8c5 100644
@@ -94,6 +94,9 @@ CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
 CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
+CONFIG_VIDEO_EXYNOS=y
+CONFIG_EXYNOS_DP=y
+CONFIG_EXYNOS_FB=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
 CONFIG_VIDEO_BRIDGE_NXP_PTN3460=y
configs/spring_defconfig +3 -0
index ad017564d994..366790b4efe4 100644
@@ -95,6 +95,9 @@ CONFIG_DM_VIDEO=y
 # CONFIG_VIDEO_BPP8 is not set
 CONFIG_VIDCONSOLE_AS_LCD=y
 CONFIG_DISPLAY=y
+CONFIG_VIDEO_EXYNOS=y
+CONFIG_EXYNOS_DP=y
+CONFIG_EXYNOS_FB=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y
 CONFIG_LCD=y
drivers/video/Kconfig +2 -0
index 965b5879274e..4ecc158c4605 100644
@@ -583,6 +583,8 @@ config ATMEL_HLCD
 
 source "drivers/video/ti/Kconfig"
 
+source "drivers/video/exynos/Kconfig"
+
 config LOGICORE_DP_TX
 	bool "Enable Logicore DP TX driver"
 	depends on DISPLAY
drivers/video/exynos/Kconfig new file +20 -0
new file mode 100644
index 000000000000..37e661b1edd2
@@ -0,0 +1,20 @@
+
+menuconfig VIDEO_EXYNOS
+	bool "Enable Exynos video support"
+	depends on DM_VIDEO
+	help
+	  Enable support for various video output options on Exynos SoCs.
+
+if VIDEO_EXYNOS
+
+config EXYNOS_DP
+	bool "Exynos Display Port support"
+
+config EXYNOS_FB
+	bool "Exynos FIMD support"
+
+config EXYNOS_MIPI_DSIM
+	bool "Exynos MIPI DSI support"
+	depends on EXYNOS_FB
+
+endif
include/configs/exynos5-dt-common.h +0 -7
index 38f6940a3dbc..a94f5a15f0d1 100644
@@ -19,11 +19,4 @@
 #define FLASH_SIZE		(4 << 20)
 #define CONFIG_SPI_BOOTING
 
-/* Display */
-#ifdef CONFIG_LCD
-#define CONFIG_EXYNOS_FB
-#define CONFIG_EXYNOS_DP
-#define LCD_BPP			LCD_COLOR16
-#endif
-
 #endif
include/configs/peach-pi.h +0 -7
index ff4180a8331d..7a8d3c63d445 100644
@@ -22,13 +22,6 @@
 
 #define CONFIG_SYS_SDRAM_BASE	0x20000000
 
-/* Display */
-#ifdef CONFIG_LCD
-#define CONFIG_EXYNOS_FB
-#define CONFIG_EXYNOS_DP
-#define LCD_BPP			LCD_COLOR16
-#endif
-
 #define CONFIG_POWER_TPS65090_EC
 
 /* DRAM Memory Banks */
include/configs/smdk5250.h +0 -3
index 1ea3b650cd26..c6d2b23197d1 100644
@@ -12,7 +12,4 @@
 #include <configs/exynos5-dt-common.h>
 #include <configs/exynos5-common.h>
 
-#undef CONFIG_EXYNOS_FB
-#undef CONFIG_EXYNOS_DP
-
 #endif	/* __CONFIG_SMDK_H */
include/configs/smdk5420.h +0 -3
index 254d0d91046c..12c2e1f6159a 100644
@@ -12,9 +12,6 @@
 #include <configs/exynos5-dt-common.h>
 #include <configs/exynos5-common.h>
 
-#undef CONFIG_EXYNOS_FB
-#undef CONFIG_EXYNOS_DP
-
 #define CONFIG_SMDK5420			/* which is in a SMDK5420 */
 
 #define CONFIG_SYS_SDRAM_BASE	0x20000000
include/configs/trats.h +0 -1
index ee4a583baa82..bca239ae817e 100644
@@ -150,7 +150,6 @@
 
 /* LCD */
 #define CONFIG_FB_ADDR		0x52504000
-#define CONFIG_EXYNOS_MIPI_DSIM
 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE  ((500 * 160 * 4) + 54)
 
 #endif	/* __CONFIG_H */
include/configs/trats2.h +0 -1
index c5df03a9f54d..20bd116c9e3d 100644
@@ -140,7 +140,6 @@
 
 /* LCD */
 #define CONFIG_FB_ADDR		0x52504000
-#define CONFIG_EXYNOS_MIPI_DSIM
 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE ((500 * 160 * 4) + 54)
 
 #endif	/* __CONFIG_H */
Signature · 1 line
2.25.1
Reviewed-by on v1 11/15
#13 lore raw

Re: [PATCH 11/15] video: Migrate exynos display options to Kconfig

Dear Tom,

Quoted 13 lines · Tom Rini

Following how it's done for the majority of drivers, add a new VIDEO_EXYNOS option and Kconfig file under drivers/video/exynos and list the current options there.

Cc Anatolij Gustschin <[email protected]>
Cc Jaehoon Chung <[email protected]>
Cc Minkyu Kang <[email protected]>

---
It would be good to have help options here, but I don't know the underlying parts, so what to add would be appreciated, or done as a follow-up. On a related note, the drivers themselves should be under something in the top-level MAINTAINERS file as they are not currently.

Quoted 17 lines
---
 configs/peach-pi_defconfig          |  3 +++
 configs/peach-pit_defconfig         |  3 +++
 configs/snow_defconfig              |  3 +++
 configs/spring_defconfig            |  3 +++
 drivers/video/Kconfig               |  2 ++
 drivers/video/exynos/Kconfig        | 20 ++++++++++++++++++++
 include/configs/exynos5-dt-common.h |  7 -------
 include/configs/peach-pi.h          |  7 -------
 include/configs/smdk5250.h          |  3 ---
 include/configs/smdk5420.h          |  3 ---
 include/configs/trats.h             |  1 -
 include/configs/trats2.h            |  1 -
 12 files changed, 34 insertions(+), 22 deletions(-)
 create mode 100644 drivers/video/exynos/Kconfig
Signature · 2 lines
Thanks,
Minkyu Kang.
author
#14 lore raw

PATCH 12/15 siemens: Move CONFIG_FACTORYSET to Kconfig

In reply to Tom Rini

Introduce board/siemens/common/Kconfig and have it hold FACTORYSET to start with. Use select for this on the boards that need it.

Cc Anatolij Gustschin <[email protected]>
Cc Samuel Egli <[email protected]>
---
 arch/arm/Kconfig                   | 1 +
 arch/arm/mach-imx/imx8/Kconfig     | 2 ++
 arch/arm/mach-omap2/am33xx/Kconfig | 6 ++++++
 board/siemens/common/Kconfig       | 2 ++
 include/configs/capricorn-common.h | 2 --
 include/configs/draco.h            | 2 --
 include/configs/etamin.h           | 2 --
 include/configs/pxm2.h             | 2 --
 include/configs/rastaban.h         | 2 --
 include/configs/rut.h              | 2 --
 include/configs/thuban.h           | 2 --
 11 files changed, 11 insertions(+), 14 deletions(-)
 create mode 100644 board/siemens/common/Kconfig
arch/arm/Kconfig +1 -0
index b60b47743e79..4b21955e8e69 100644
@@ -2331,6 +2331,7 @@ source "board/hisilicon/poplar/Kconfig"
 source "board/isee/igep003x/Kconfig"
 source "board/kontron/sl28/Kconfig"
 source "board/myir/mys_6ulx/Kconfig"
+source "board/siemens/common/Kconfig"
 source "board/seeed/npi_imx6ull/Kconfig"
 source "board/socionext/developerbox/Kconfig"
 source "board/st/stv0991/Kconfig"
arch/arm/mach-imx/imx8/Kconfig +2 -0
index 51c3f21b6e76..2ba7454457dd 100644
@@ -57,11 +57,13 @@ config TARGET_COLIBRI_IMX8X
 config TARGET_DENEB
 	bool "Support i.MX8QXP Capricorn Deneb board"
 	select BOARD_LATE_INIT
+	select FACTORYSET
 	select IMX8QXP
 
 config TARGET_GIEDI
 	bool "Support i.MX8QXP Capricorn Giedi board"
 	select BOARD_LATE_INIT
+	select FACTORYSET
 	select IMX8QXP
 
 config TARGET_IMX8QM_MEK
arch/arm/mach-omap2/am33xx/Kconfig +6 -0
index 23865d4c0704..bd6b08655260 100644
@@ -138,6 +138,7 @@ config TARGET_DRACO
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	select FACTORYSET
 	imply CMD_DM
 
 config TARGET_ETAMIN
@@ -146,6 +147,7 @@ config TARGET_ETAMIN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	select FACTORYSET
 	imply CMD_DM
 
 config TARGET_PCM051
@@ -168,6 +170,7 @@ config TARGET_PXM2
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	select FACTORYSET
 	imply CMD_DM
 
 config TARGET_RASTABAN
@@ -176,6 +179,7 @@ config TARGET_RASTABAN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	select FACTORYSET
 	imply CMD_DM
 
 config TARGET_RUT
@@ -184,6 +188,7 @@ config TARGET_RUT
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	select FACTORYSET
 	imply CMD_DM
 
 config TARGET_THUBAN
@@ -192,6 +197,7 @@ config TARGET_THUBAN
 	select DM
 	select DM_GPIO
 	select DM_SERIAL
+	select FACTORYSET
 	imply CMD_DM
 
 config TARGET_PDU001
board/siemens/common/Kconfig new file +2 -0
new file mode 100644
index 000000000000..131439fcfeac
@@ -0,0 +1,2 @@
+config FACTORYSET
+	bool
include/configs/capricorn-common.h +0 -2
index 933fcfcfd287..4ca9e13ecf7a 100644
@@ -24,8 +24,6 @@
 
 #endif /* CONFIG_SPL_BUILD */
 
-#define CONFIG_FACTORYSET
-
 /* ENET1 connects to base board and MUX with ESAI */
 #define CONFIG_FEC_ENET_DEV		1
 #define CONFIG_FEC_MXC_PHYADDR		0x0
include/configs/draco.h +0 -2
index d30560810133..b4998f5c2e56 100644
@@ -27,8 +27,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE	(1024 << 20)	/* 1GB */
 
-#define CONFIG_FACTORYSET
-
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE        (4 * CONFIG_SYS_ENV_SECT_SIZE)
 
include/configs/etamin.h +0 -2
index 654faedf33e9..654bfc612168 100644
@@ -75,8 +75,6 @@
 #define EEPROM_ADDR_DDR3 0x90
 #define EEPROM_ADDR_CHIP 0x120
 
-#define CONFIG_FACTORYSET
-
 /* nedded by compliance test in read mode */
 
 /* Define own nand partitions */
include/configs/pxm2.h +0 -2
index 7272470d12e6..ad05920ad6b1 100644
@@ -30,8 +30,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE	(512 << 20)	/* 1GB */
 
-#define CONFIG_FACTORYSET
-
 #ifndef CONFIG_SPL_BUILD
 
 /* Use common default */
include/configs/rastaban.h +0 -2
index 8e20a448d2a7..6c942a809809 100644
@@ -37,8 +37,6 @@
 #define EEPROM_ADDR_DDR3 0x90
 #define EEPROM_ADDR_CHIP 0x120
 
-#define CONFIG_FACTORYSET
-
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE		(4 * CONFIG_SYS_ENV_SECT_SIZE)
 
include/configs/rut.h +0 -2
index b30b12af52c3..fc3194654ae3 100644
@@ -21,8 +21,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE	(256 << 20) /* 256 MiB */
 
-#define CONFIG_FACTORYSET
-
 /* Watchdog */
 #define WATCHDOG_TRIGGER_GPIO	14
 
include/configs/thuban.h +0 -2
index 3b120073fef0..bb0b9fa1560d 100644
@@ -30,8 +30,6 @@
 #define EEPROM_ADDR_DDR3 0x90
 #define EEPROM_ADDR_CHIP 0x120
 
-#define CONFIG_FACTORYSET
-
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE        (4 * CONFIG_SYS_ENV_SECT_SIZE)
 
Signature · 1 line
2.25.1
author
#15 lore raw

PATCH 13/15 Remove CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE and CONFIG_SPL_ABORT_ON_RAW_IMAGE

In reply to Tom Rini

These symbols do not exist in mainline, remove them.

---
 include/configs/capricorn-common.h          | 3 ---
 include/configs/cgtqmx8.h                   | 4 ----
 include/configs/imx8mm-cl-iot-gate.h        | 3 ---
 include/configs/imx8mm_beacon.h             | 3 ---
 include/configs/imx8mm_data_modul_edm_sbc.h | 4 ----
 include/configs/imx8mm_evk.h                | 3 ---
 include/configs/imx8mm_icore_mx8mm.h        | 2 --
 include/configs/imx8mm_venice.h             | 3 ---
 include/configs/imx8mn_beacon.h             | 4 ----
 include/configs/imx8mn_evk.h                | 6 ------
 include/configs/imx8mn_venice.h             | 5 -----
 include/configs/imx8mp_dhcom_pdk2.h         | 6 ------
 include/configs/imx8mp_evk.h                | 2 --
 include/configs/imx8mp_rsb3720.h            | 2 --
 include/configs/imx8mp_venice.h             | 5 -----
 include/configs/imx8mq_cm.h                 | 3 ---
 include/configs/imx8mq_evk.h                | 2 --
 include/configs/imx8mq_phanbell.h           | 2 --
 include/configs/imx8qm_mek.h                | 4 ----
 include/configs/imx8qxp_mek.h               | 4 ----
 include/configs/imx8ulp_evk.h               | 2 --
 include/configs/kontron_pitx_imx8m.h        | 3 ---
 include/configs/phycore_imx8mm.h            | 2 --
 include/configs/phycore_imx8mp.h            | 2 --
 include/configs/pico-imx8mq.h               | 2 --
 include/configs/verdin-imx8mm.h             | 2 --
 include/configs/verdin-imx8mp.h             | 2 --
 27 files changed, 85 deletions(-)
include/configs/capricorn-common.h +0 -3
index 4ca9e13ecf7a..456d1828d629 100644
@@ -19,9 +19,6 @@
 
 #define CONFIG_MALLOC_F_ADDR		0x00120000
 
-#define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif /* CONFIG_SPL_BUILD */
 
 /* ENET1 connects to base board and MUX with ESAI */
include/configs/cgtqmx8.h +0 -4
index 0266d6988ce1..f53c49db3899 100644
@@ -16,10 +16,6 @@
 
 #define CONFIG_SERIAL_LPUART_BASE	0x5a060000
 #define CONFIG_MALLOC_F_ADDR		0x00120000
-
-#define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
-
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 /* Flat Device Tree Definitions */
include/configs/imx8mm-cl-iot-gate.h +0 -3
index c559778c1d32..8303c68e369e 100644
@@ -19,9 +19,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x912000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif
 
 /* GUIDs for capsule updatable firmware images */
include/configs/imx8mm_beacon.h +0 -3
index 897eac66b148..131eedac6c5e 100644
@@ -16,9 +16,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x930000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif
 
 /* Initial environment variables */
include/configs/imx8mm_data_modul_edm_sbc.h +0 -4
index bb19aa292b81..f8af3baef6f4 100644
@@ -16,10 +16,6 @@
 
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_MALLOC_F_ADDR		0x930000
-
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif
 
 /* Link Definitions */
include/configs/imx8mm_evk.h +0 -3
index 983743b50936..d239c926ad5c 100644
@@ -18,9 +18,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x930000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif
 
 #ifndef CONFIG_SPL_BUILD
include/configs/imx8mm_icore_mx8mm.h +0 -2
index e6642936cba0..f02d6d58c4ad 100644
@@ -17,8 +17,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 # define CONFIG_MALLOC_F_ADDR		0x930000
-/* For RAW image gives a error info not panic */
-# define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif /* CONFIG_SPL_BUILD */
 
 #ifndef CONFIG_SPL_BUILD
include/configs/imx8mm_venice.h +0 -3
index 595c10749668..573af3b7e286 100644
@@ -16,9 +16,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x930000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif
 
 #define MEM_LAYOUT_ENV_SETTINGS \
include/configs/imx8mn_beacon.h +0 -4
index 99cbc1d07c8f..bfee1e29705e 100644
@@ -16,10 +16,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x184000
-
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif /* CONFIG_SPL_BUILD */
 
 /* Initial environment variables */
include/configs/imx8mn_evk.h +0 -6
index 73ba49b0d8fb..1b8caba3321c 100644
@@ -16,12 +16,6 @@
 #define CONFIG_SYS_UBOOT_BASE	\
 	(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifdef CONFIG_SPL_BUILD
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
-#endif
-
 #ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
include/configs/imx8mn_venice.h +0 -5
index 8565ba7fdb15..a3ba520eb0b5 100644
@@ -13,11 +13,6 @@
 #define CONFIG_SYS_UBOOT_BASE	\
 	(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifdef CONFIG_SPL_BUILD
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-#endif
-
 #define MEM_LAYOUT_ENV_SETTINGS \
 	"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
 	"fdt_addr_r=0x50200000\0" \
include/configs/imx8mp_dhcom_pdk2.h +0 -6
index 1ad90e5bdbd9..79db625d0373 100644
@@ -14,12 +14,6 @@
 
 #define CONFIG_SYS_MONITOR_LEN		SZ_1M
 
-#ifdef CONFIG_SPL_BUILD
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
-#endif
-
 /* Link Definitions */
 #define CONFIG_SYS_INIT_RAM_ADDR	0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE	0x200000
include/configs/imx8mp_evk.h +0 -2
index 65c1616bca72..6464d2ff28b3 100644
@@ -18,8 +18,6 @@
 #ifdef CONFIG_SPL_BUILD
 /*#define CONFIG_ENABLE_DDR_TRAINING_DEBUG*/
 
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #define CONFIG_POWER_PCA9450
 
 #endif
include/configs/imx8mp_rsb3720.h +0 -2
index efff6b955534..e4ec63c7050d 100644
@@ -32,8 +32,6 @@
 						  * set \
 						  */
 
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #if defined(CONFIG_NAND_BOOT)
 #define CONFIG_SPL_NAND_MXS
 #endif
include/configs/imx8mp_venice.h +0 -5
index e1d335539568..7b30a3a21d7b 100644
@@ -13,11 +13,6 @@
 #define CONFIG_SYS_UBOOT_BASE	\
 	(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifdef CONFIG_SPL_BUILD
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-#endif
-
 #define MEM_LAYOUT_ENV_SETTINGS \
 	"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
 	"fdt_addr_r=0x50200000\0" \
include/configs/imx8mq_cm.h +0 -3
index a242d5e3e8ee..28f61b9fa13e 100644
@@ -19,9 +19,6 @@
 
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x182000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #endif
 
 /* ENET Config */
include/configs/imx8mq_evk.h +0 -2
index 98ddb06fe337..63bd1955f453 100644
@@ -20,8 +20,6 @@
 
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x182000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 
 #define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
include/configs/imx8mq_phanbell.h +0 -2
index 1b3c0493ebd1..66b3c2091ed3 100644
@@ -17,8 +17,6 @@
 
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x182000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 /* ENET Config */
include/configs/imx8qm_mek.h +0 -4
index f4d19f87312f..8c4402dab5ff 100644
@@ -17,10 +17,6 @@
 
 #define CONFIG_SERIAL_LPUART_BASE	0x5a060000
 #define CONFIG_MALLOC_F_ADDR		0x00120000
-
-#define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
-
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 #ifdef CONFIG_AHAB_BOOT
include/configs/imx8qxp_mek.h +0 -4
index a6aabc7add70..375079584586 100644
@@ -15,10 +15,6 @@
 
 #define CONFIG_SERIAL_LPUART_BASE	0x5a060000
 #define CONFIG_MALLOC_F_ADDR		0x00120000
-
-#define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
-
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 #ifdef CONFIG_AHAB_BOOT
include/configs/imx8ulp_evk.h +0 -2
index 987069447d53..8c911c925409 100644
@@ -16,8 +16,6 @@
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_MALLOC_F_ADDR		0x22040000
 
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE /* For RAW image gives a error info not panic */
-
 #endif
 
 /* ENET Config */
include/configs/kontron_pitx_imx8m.h +0 -3
index 88aaa55bef53..40b1be7058ae 100644
@@ -21,9 +21,6 @@
 
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x182000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 
 #define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR  0x08
include/configs/phycore_imx8mm.h +0 -2
index 1d01104cfe83..36f3adebf423 100644
@@ -19,8 +19,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x930000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
include/configs/phycore_imx8mp.h +0 -2
index 75ddcf465f9e..467216bf54c7 100644
@@ -17,8 +17,6 @@
 		(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
 #ifdef CONFIG_SPL_BUILD
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
-
 #define CONFIG_POWER_PCA9450
 
 #endif
include/configs/pico-imx8mq.h +0 -2
index 25ad936a06bb..1a43ef2fe2c3 100644
@@ -17,8 +17,6 @@
 
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x182000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 /* ENET Config */
include/configs/verdin-imx8mm.h +0 -2
index a93d94dafe4e..846d6566a55a 100644
@@ -18,8 +18,6 @@
 #ifdef CONFIG_SPL_BUILD
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR		0x930000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 #endif
 
 #define MEM_LAYOUT_ENV_SETTINGS \
include/configs/verdin-imx8mp.h +0 -2
index 906a20fd8402..2bbe2b72e0a7 100644
@@ -18,8 +18,6 @@
 
 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
 #define CONFIG_MALLOC_F_ADDR				0x184000
-/* For RAW image gives a error info not panic */
-#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
 
 #define CONFIG_POWER_PCA9450
 
Signature · 1 line
2.25.1
author
#16 lore raw

PATCH 14/15 Convert CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig

In reply to Tom Rini

This converts the following to Kconfig:
CONFIG_SYS_MPC85XX_NO_RESETVEC

---
 README                                       |  5 -----
 arch/powerpc/cpu/mpc85xx/Kconfig             | 23 ++++++++++++++++++++
 arch/powerpc/cpu/mpc85xx/u-boot-spl.lds      |  6 ++---
 arch/powerpc/cpu/mpc85xx/u-boot.lds          |  4 ++--
 configs/P1010RDB-PA_36BIT_NAND_defconfig     |  2 ++
 configs/P1010RDB-PA_36BIT_NOR_defconfig      |  1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig   |  2 ++
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig |  2 ++
 configs/P1010RDB-PA_NAND_defconfig           |  2 ++
 configs/P1010RDB-PA_NOR_defconfig            |  1 +
 configs/P1010RDB-PA_SDCARD_defconfig         |  2 ++
 configs/P1010RDB-PA_SPIFLASH_defconfig       |  2 ++
 configs/P1010RDB-PB_36BIT_NAND_defconfig     |  2 ++
 configs/P1010RDB-PB_36BIT_NOR_defconfig      |  1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig   |  2 ++
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig |  2 ++
 configs/P1010RDB-PB_NAND_defconfig           |  2 ++
 configs/P1010RDB-PB_NOR_defconfig            |  1 +
 configs/P1010RDB-PB_SDCARD_defconfig         |  2 ++
 configs/P1010RDB-PB_SPIFLASH_defconfig       |  2 ++
 configs/P1020RDB-PC_36BIT_NAND_defconfig     |  2 ++
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   |  2 ++
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig |  2 ++
 configs/P1020RDB-PC_36BIT_defconfig          |  1 +
 configs/P1020RDB-PC_NAND_defconfig           |  2 ++
 configs/P1020RDB-PC_SDCARD_defconfig         |  2 ++
 configs/P1020RDB-PC_SPIFLASH_defconfig       |  2 ++
 configs/P1020RDB-PC_defconfig                |  1 +
 configs/P1020RDB-PD_NAND_defconfig           |  2 ++
 configs/P1020RDB-PD_SDCARD_defconfig         |  2 ++
 configs/P1020RDB-PD_SPIFLASH_defconfig       |  2 ++
 configs/P1020RDB-PD_defconfig                |  1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig     |  2 ++
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   |  2 ++
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig |  2 ++
 configs/P2020RDB-PC_36BIT_defconfig          |  1 +
 configs/P2020RDB-PC_NAND_defconfig           |  2 ++
 configs/P2020RDB-PC_SDCARD_defconfig         |  2 ++
 configs/P2020RDB-PC_SPIFLASH_defconfig       |  2 ++
 configs/P2020RDB-PC_defconfig                |  1 +
 configs/T1024RDB_NAND_defconfig              |  2 ++
 configs/T1024RDB_SDCARD_defconfig            |  1 +
 configs/T1024RDB_SPIFLASH_defconfig          |  1 +
 configs/T1042D4RDB_NAND_defconfig            |  2 ++
 configs/T1042D4RDB_SDCARD_defconfig          |  1 +
 configs/T1042D4RDB_SPIFLASH_defconfig        |  1 +
 configs/T2080QDS_NAND_defconfig              |  2 ++
 configs/T2080QDS_SDCARD_defconfig            |  1 +
 configs/T2080QDS_SPIFLASH_defconfig          |  1 +
 configs/T2080RDB_NAND_defconfig              |  2 ++
 configs/T2080RDB_SDCARD_defconfig            |  1 +
 configs/T2080RDB_SPIFLASH_defconfig          |  1 +
 configs/T2080RDB_revD_NAND_defconfig         |  2 ++
 configs/T2080RDB_revD_SDCARD_defconfig       |  1 +
 configs/T2080RDB_revD_SPIFLASH_defconfig     |  1 +
 configs/T4240RDB_SDCARD_defconfig            |  1 +
 configs/qemu-ppce500_defconfig               |  1 +
 include/configs/P1010RDB.h                   |  7 ------
 include/configs/T102xRDB.h                   |  9 --------
 include/configs/T104xRDB.h                   |  9 --------
 include/configs/T208xQDS.h                   |  9 --------
 include/configs/T208xRDB.h                   |  9 --------
 include/configs/T4240RDB.h                   |  3 ---
 include/configs/p1_p2_rdb_pc.h               |  7 ------
 include/configs/qemu-ppce500.h               |  2 --
 scripts/config_whitelist.txt                 |  1 -
 66 files changed, 113 insertions(+), 66 deletions(-)
README +0 -5
index c95f4334199e..841f8ce082c0 100644
@@ -2164,11 +2164,6 @@ Low Level (hardware related) configuration options:
 		proper). Code that needs stage-specific behavior should check
 		this.
 
-- CONFIG_SYS_MPC85XX_NO_RESETVEC
-		Only for 85xx systems. If this variable is specified, the section
-		.resetvec is not kept and the section .bootpg is placed in the
-		previous 4k of the .text section.
-
 - CONFIG_ARCH_MAP_SYSMEM
 		Generally U-Boot (and in particular the md command) uses
 		effective address. It is therefore not necessary to regard
arch/powerpc/cpu/mpc85xx/Kconfig +23 -0
index c1b4e94d9191..02efa1c60301 100644
@@ -1185,6 +1185,29 @@ config SYS_FSL_LBC_CLK_DIV
 		Defines divider of platform clock(clock input to
 		eLBC controller).
 
+config SYS_MPC85XX_NO_RESETVEC
+	bool "Discard resetvec section and move bootpg section up"
+	depends on MPC85xx
+	help
+	  If this variable is specified, the section .resetvec is not kept and
+	  the section .bootpg is placed in the previous 4k of the .text section.
+
+config SPL_SYS_MPC85XX_NO_RESETVEC
+	bool "Discard resetvec section and move bootpg section up, in SPL"
+	depends on MPC85xx && SPL
+	help
+	  If this variable is specified, the section .resetvec is not kept and
+	  the section .bootpg is placed in the previous 4k of the .text section,
+	  of the SPL portion of the binary.
+
+config TPL_SYS_MPC85XX_NO_RESETVEC
+	bool "Discard resetvec section and move bootpg section up, in TPL"
+	depends on MPC85xx && TPL
+	help
+	  If this variable is specified, the section .resetvec is not kept and
+	  the section .bootpg is placed in the previous 4k of the .text section,
+	  of the SPL portion of the binary.
+
 config FSL_VIA
 	bool
 
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +3 -3
index 1b4d1e05a4a3..60628c4187a3 100644
@@ -9,7 +9,7 @@
 #include "config.h"
 
 OUTPUT_ARCH(powerpc)
-#ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC
+#if CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
 PHDRS
 {
 	text PT_LOAD;
@@ -19,7 +19,7 @@ PHDRS
 SECTIONS
 {
 /* For ifc, elbc, esdhc, espi, all need the SPL without section .resetvec */
-#ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC
+#if CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
 	.bootpg IMAGE_TEXT_BASE - 0x1000 :
 	{
 		KEEP(*(.bootpg))
@@ -75,7 +75,7 @@ SECTIONS
 #endif
 
 /* For nor and nand is needed the SPL with section .resetvec */
-#ifndef CONFIG_SYS_MPC85XX_NO_RESETVEC
+#if !CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
 #if defined(CONFIG_FSL_IFC) /* Restrict bootpg at 4K boundry for IFC */
 #ifndef BOOT_PAGE_OFFSET
 #define BOOT_PAGE_OFFSET 0x1000
arch/powerpc/cpu/mpc85xx/u-boot.lds +2 -2
index e1bbee43bcb4..ee5cbe57f431 100644
@@ -23,7 +23,7 @@ PHDRS
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
-#ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC
+#if CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
   .bootpg CONFIG_SYS_TEXT_BASE - 0x1000 :
   {
     KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg))
@@ -84,7 +84,7 @@ SECTIONS
   __init_end = .;
   _end = .;
 
-#ifndef CONFIG_SYS_MPC85XX_NO_RESETVEC
+#if !CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
   .bootpg RESET_VECTOR_ADDRESS - 0xffc :
   {
     arch/powerpc/cpu/mpc85xx/start.o	(.bootpg)
configs/P1010RDB-PA_36BIT_NAND_defconfig +2 -0
index 85fa20534637..4ebb8d06cdd3 100644
@@ -15,6 +15,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PA_36BIT_NOR_defconfig +1 -0
index 1972f140f90d..6783f1ffb35e 100644
@@ -9,6 +9,7 @@ CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PA_36BIT_SDCARD_defconfig +2 -0
index b057d1fad3d8..40dd02cf8f9c 100644
@@ -14,6 +14,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig +2 -0
index da5041068af3..30998e8ac72e 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PA_NAND_defconfig +2 -0
index b5ec62d3f9ae..9ab41e80a278 100644
@@ -15,6 +15,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_NOR_defconfig +1 -0
index 2e3dc8f5e701..a31b2c2f0d7c 100644
@@ -9,6 +9,7 @@ CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_SDCARD_defconfig +2 -0
index ed63b5e936ba..5ad69a1e633b 100644
@@ -14,6 +14,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_SPIFLASH_defconfig +2 -0
index 4c22687db87b..4b3ac2403f6b 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PA=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_36BIT_NAND_defconfig +2 -0
index 4291cbf9c233..e2abe92e7a6b 100644
@@ -15,6 +15,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PB_36BIT_NOR_defconfig +1 -0
index 367632894b1c..505c168c97a6 100644
@@ -9,6 +9,7 @@ CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PB_36BIT_SDCARD_defconfig +2 -0
index 7182e0b33077..d2c99053d781 100644
@@ -14,6 +14,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig +2 -0
index 45ef797b89fd..62d36584610f 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PB_NAND_defconfig +2 -0
index 5e052733f57f..f27a24b7a18e 100644
@@ -15,6 +15,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_NOR_defconfig +1 -0
index 2cd571443da6..b4b145377679 100644
@@ -9,6 +9,7 @@ CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_SDCARD_defconfig +2 -0
index d8e872bd6d0e..30a1f2436b04 100644
@@ -14,6 +14,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_SPIFLASH_defconfig +2 -0
index b9887e3e3e2f..74c280c1b453 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB_PB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1020RDB-PC_36BIT_NAND_defconfig +2 -0
index 51d4510d7388..96a79927b535 100644
@@ -15,6 +15,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P1020RDB-PC_36BIT_SDCARD_defconfig +2 -0
index ec5c8a7821ec..036482b53f7a 100644
@@ -14,6 +14,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig +2 -0
index 3da39efb4375..a4936777ad0b 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P1020RDB-PC_36BIT_defconfig +1 -0
index b9632026a271..89b34e6585cd 100644
@@ -10,6 +10,7 @@ CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P1020RDB-PC_NAND_defconfig +2 -0
index 27d155dea74d..27a8653c4ec9 100644
@@ -15,6 +15,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PC_SDCARD_defconfig +2 -0
index e3068f5f0ce6..238e450f2e5a 100644
@@ -14,6 +14,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PC_SPIFLASH_defconfig +2 -0
index c0e8ab8042df..92f8209f024b 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PC_defconfig +1 -0
index 5c6d27ade4e7..78f186bdca8b 100644
@@ -10,6 +10,7 @@ CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PD_NAND_defconfig +2 -0
index a6b9e047e6d1..68034b1febd8 100644
@@ -15,6 +15,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PD_SDCARD_defconfig +2 -0
index 84be176fb41c..a5c1fce82a47 100644
@@ -14,6 +14,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PD_SPIFLASH_defconfig +2 -0
index ded22f273b22..2f57f51ad7b2 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PD_defconfig +1 -0
index 8b90ac554156..01290b3a7b0a 100644
@@ -10,6 +10,7 @@ CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P2020RDB-PC_36BIT_NAND_defconfig +2 -0
index ec1a07945596..1401009fb62b 100644
@@ -15,6 +15,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P2020RDB-PC_36BIT_SDCARD_defconfig +2 -0
index 6c5c064db3b5..0706350fa7f5 100644
@@ -14,6 +14,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig +2 -0
index e6a00a737acd..bca22f947b18 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P2020RDB-PC_36BIT_defconfig +1 -0
index 73b626879242..a88eb2e81831 100644
@@ -10,6 +10,7 @@ CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_PHYS_64BIT=y
 CONFIG_MP=y
 CONFIG_FIT=y
configs/P2020RDB-PC_NAND_defconfig +2 -0
index 0d213054bf6b..627c2ab18673 100644
@@ -15,6 +15,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_TPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P2020RDB-PC_SDCARD_defconfig +2 -0
index 190d6ceb4b36..8b4bcf920b9b 100644
@@ -14,6 +14,8 @@ CONFIG_SPL=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P2020RDB-PC_SPIFLASH_defconfig +2 -0
index 61763b50b83a..208e09b4568f 100644
@@ -16,6 +16,8 @@ CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P2020RDB-PC_defconfig +1 -0
index dd92833f6b63..11e1fcfc8bac 100644
@@ -10,6 +10,7 @@ CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T1024RDB_NAND_defconfig +2 -0
index 2eb985823ec0..c33db8330075 100644
@@ -12,6 +12,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T1024RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
 CONFIG_MP=y
configs/T1024RDB_SDCARD_defconfig +1 -0
index 9daf7fd5ef77..8796db6b635e 100644
@@ -13,6 +13,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T1024RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
 CONFIG_MP=y
configs/T1024RDB_SPIFLASH_defconfig +1 -0
index ee9292a4fb9f..63b655917712 100644
@@ -15,6 +15,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T1024RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
 CONFIG_MP=y
configs/T1042D4RDB_NAND_defconfig +2 -0
index 91a83007ce87..6254c8f4e154 100644
@@ -11,6 +11,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T1042D4RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T1042D4RDB_SDCARD_defconfig +1 -0
index 32fed7a33a4a..eb756c8adbe7 100644
@@ -12,6 +12,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T1042D4RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T1042D4RDB_SPIFLASH_defconfig +1 -0
index 638ed7147a72..b5ce93e715a0 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T1042D4RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T2080QDS_NAND_defconfig +2 -0
index 6f3af93e8832..417f7ea83dda 100644
@@ -18,6 +18,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080QDS=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T2080QDS_SDCARD_defconfig +1 -0
index 4314c924fac2..6da6a173bd95 100644
@@ -19,6 +19,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080QDS=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T2080QDS_SPIFLASH_defconfig +1 -0
index 9d275b75fed8..36f6761f8715 100644
@@ -21,6 +21,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080QDS=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/T2080RDB_NAND_defconfig +2 -0
index 80c7b18634c6..d0542b65de41 100644
@@ -15,6 +15,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
 CONFIG_MP=y
configs/T2080RDB_SDCARD_defconfig +1 -0
index 80b33a9ed5b1..a3007cb4d138 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
 CONFIG_MP=y
configs/T2080RDB_SPIFLASH_defconfig +1 -0
index 810eea042d94..b3973e151d77 100644
@@ -18,6 +18,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
 CONFIG_MP=y
configs/T2080RDB_revD_NAND_defconfig +2 -0
index 2a68163b5685..2bc8f56b302d 100644
@@ -15,6 +15,8 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
+CONFIG_SPL_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_T2080RDB_REV_D=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
configs/T2080RDB_revD_SDCARD_defconfig +1 -0
index a9af2951cb9b..97460205cb95 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_T2080RDB_REV_D=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
configs/T2080RDB_revD_SPIFLASH_defconfig +1 -0
index a3cda0da8050..ba836be355dd 100644
@@ -18,6 +18,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T2080RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_T2080RDB_REV_D=y
 CONFIG_SYS_MEMTEST_START=0x00200000
 CONFIG_SYS_MEMTEST_END=0x00400000
configs/T4240RDB_SDCARD_defconfig +1 -0
index 2bc568939360..63fb7145c9aa 100644
@@ -16,6 +16,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_T4240RDB=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_MP=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/qemu-ppce500_defconfig +1 -0
index 322fe12ae9a7..7d35d058a7df 100644
@@ -6,6 +6,7 @@ CONFIG_SYS_CLK_FREQ=33000000
 CONFIG_MPC85xx=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_QEMU_PPCE500=y
+CONFIG_SYS_MPC85XX_NO_RESETVEC=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
include/configs/P1010RDB.h +0 -7
index fce4bfb3dd93..27361f2d447f 100644
@@ -20,7 +20,6 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST	(0x11000000)
 #define CONFIG_SYS_MMC_U_BOOT_START	(0x11000000)
 #define CONFIG_SYS_MMC_U_BOOT_OFFS	(96 << 10)
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
 #endif
 
 #ifdef CONFIG_SPIFLASH
@@ -32,7 +31,6 @@
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x11000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_START	(0x11000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS	(96 << 10)
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
 #endif
 #endif
 
@@ -43,7 +41,6 @@
 #define CONFIG_SYS_NAND_U_BOOT_START	0x00200000
 #else
 #ifdef CONFIG_TPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(576 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	(0x11000000)
 #define CONFIG_SYS_NAND_U_BOOT_START	(0x11000000)
@@ -51,10 +48,6 @@
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(128 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	0xD0000000
 #define CONFIG_SYS_NAND_U_BOOT_START	0xD0000000
-#else
-#ifndef CONFIG_MPC85XX_HAVE_RESET_VECTOR
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 #endif
 #endif
include/configs/T102xRDB.h +0 -9
index b412438116df..bd458ff35e9a 100644
@@ -28,9 +28,6 @@
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	0x30000000
 #define CONFIG_SYS_NAND_U_BOOT_START	0x30000000
-#ifndef CONFIG_MPC85XX_HAVE_RESET_VECTOR
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SPIFLASH
@@ -39,9 +36,6 @@
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x30000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_START	(0x30000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS	(256 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SDCARD
@@ -50,9 +44,6 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST	(0x30000000)
 #define CONFIG_SYS_MMC_U_BOOT_START	(0x30000000)
 #define CONFIG_SYS_MMC_U_BOOT_OFFS	(260 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #endif /* CONFIG_RAMBOOT_PBL */
include/configs/T104xRDB.h +0 -9
index 767c360b36c0..505bae931e6b 100644
@@ -32,9 +32,6 @@
 #endif
 #define CONFIG_SYS_NAND_U_BOOT_DST	0x30000000
 #define CONFIG_SYS_NAND_U_BOOT_START	0x30000000
-#ifndef CONFIG_MPC85XX_HAVE_RESET_VECTOR
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SPIFLASH
@@ -43,9 +40,6 @@
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x30000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_START	(0x30000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS	(256 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define	CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SDCARD
@@ -54,9 +48,6 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST	(0x30000000)
 #define CONFIG_SYS_MMC_U_BOOT_START	(0x30000000)
 #define CONFIG_SYS_MMC_U_BOOT_OFFS	(260 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define	CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #endif
include/configs/T208xQDS.h +0 -9
index 55b9260d9317..2db2b07fb4b7 100644
@@ -35,9 +35,6 @@
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	0x00200000
 #define CONFIG_SYS_NAND_U_BOOT_START	0x00200000
-#ifndef CONFIG_MPC85XX_HAVE_RESET_VECTOR
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SPIFLASH
@@ -46,9 +43,6 @@
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x00200000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_START	(0x00200000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS	(256 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define	CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SDCARD
@@ -57,9 +51,6 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST	(0x00200000)
 #define CONFIG_SYS_MMC_U_BOOT_START	(0x00200000)
 #define CONFIG_SYS_MMC_U_BOOT_OFFS	(260 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define	CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #endif /* CONFIG_RAMBOOT_PBL */
include/configs/T208xRDB.h +0 -9
index 642099bd098d..07e1108f0f04 100644
@@ -30,9 +30,6 @@
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	0x00200000
 #define CONFIG_SYS_NAND_U_BOOT_START	0x00200000
-#ifndef CONFIG_MPC85XX_HAVE_RESET_VECTOR
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SPIFLASH
@@ -41,9 +38,6 @@
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST                (0x00200000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_START      (0x00200000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS       (256 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #ifdef CONFIG_SDCARD
@@ -52,9 +46,6 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST      (0x00200000)
 #define CONFIG_SYS_MMC_U_BOOT_START    (0x00200000)
 #define CONFIG_SYS_MMC_U_BOOT_OFFS     (260 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #endif /* CONFIG_RAMBOOT_PBL */
include/configs/T4240RDB.h +0 -3
index 757fb054a807..526d40fa0349 100644
@@ -30,9 +30,6 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST	0x00200000
 #define CONFIG_SYS_MMC_U_BOOT_START	0x00200000
 #define CONFIG_SYS_MMC_U_BOOT_OFFS	(260 << 10)
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif
 
 #endif
include/configs/p1_p2_rdb_pc.h +0 -7
index 202697ec646f..81bebff6cf76 100644
@@ -81,16 +81,13 @@
 #define CONFIG_SYS_MMC_U_BOOT_DST	(0x11000000)
 #define CONFIG_SYS_MMC_U_BOOT_START	(0x11000000)
 #define CONFIG_SYS_MMC_U_BOOT_OFFS	(128 << 10)
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
 #elif defined(CONFIG_SPIFLASH)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE	(768 << 10)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST		(0x11000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_START	(0x11000000)
 #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS	(128 << 10)
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
 #elif defined(CONFIG_MTD_RAW_NAND)
 #ifdef CONFIG_TPL_BUILD
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(832 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	(0x11000000)
 #define CONFIG_SYS_NAND_U_BOOT_START	(0x11000000)
@@ -98,10 +95,6 @@
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(128 << 10)
 #define CONFIG_SYS_NAND_U_BOOT_DST	0xf8f80000
 #define CONFIG_SYS_NAND_U_BOOT_START	0xf8f80000
-#else
-#ifndef CONFIG_MPC85XX_HAVE_RESET_VECTOR
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-#endif
 #endif /* not CONFIG_TPL_BUILD */
 #endif
 
include/configs/qemu-ppce500.h +0 -2
index e427b854fced..c3fef0de173b 100644
@@ -9,8 +9,6 @@
 #ifndef __QEMU_PPCE500_H
 #define __QEMU_PPCE500_H
 
-#define CONFIG_SYS_MPC85XX_NO_RESETVEC
-
 #define CONFIG_SYS_RAMBOOT
 
 #define CONFIG_ENABLE_36BIT_PHYS
scripts/config_whitelist.txt +0 -1
index a2a02e5db67f..8d67e98372e3 100644
@@ -1198,7 +1198,6 @@ CONFIG_SYS_MPC83xx_DMA_ADDR
 CONFIG_SYS_MPC83xx_DMA_OFFSET
 CONFIG_SYS_MPC83xx_ESDHC_ADDR
 CONFIG_SYS_MPC83xx_ESDHC_OFFSET
-CONFIG_SYS_MPC85XX_NO_RESETVEC
 CONFIG_SYS_MPC85xx_DMA
 CONFIG_SYS_MPC85xx_DMA1_OFFSET
 CONFIG_SYS_MPC85xx_DMA2_OFFSET
Signature · 1 line
2.25.1
author
#17 lore raw

PATCH 15/15 Globally remove most CONFIG_SPL_BUILD tests from config headers

In reply to Tom Rini

With the exception of how PowerPC handles SPL and TPL (which has its own issues), we cannot safely hide options under CONFIG_SPL_BUILD. Largely remove the places that have this test today.

---
 include/configs/am335x_igep003x.h           |  2 --
 include/configs/am335x_sl50.h               |  4 ----
 include/configs/apalis_imx6.h               |  4 ----
 include/configs/baltos.h                    |  2 --
 include/configs/brppt1.h                    |  2 --
 include/configs/brsmarc1.h                  |  3 ---
 include/configs/brxre1.h                    |  3 ---
 include/configs/capricorn-common.h          |  3 ---
 include/configs/clearfog.h                  |  6 ------
 include/configs/cm_fx6.h                    |  6 ------
 include/configs/cm_t335.h                   |  4 ----
 include/configs/colibri_imx6.h              |  4 ----
 include/configs/controlcenterdc.h           |  2 --
 include/configs/da850evm.h                  |  2 --
 include/configs/db-88f6820-amc.h            |  2 --
 include/configs/db-88f6820-gp.h             |  2 --
 include/configs/db-mv784mp-gp.h             |  2 --
 include/configs/dh_imx6.h                   |  2 --
 include/configs/draco.h                     |  6 ------
 include/configs/dragonboard820c.h           |  2 --
 include/configs/ds414.h                     |  2 --
 include/configs/helios4.h                   |  6 ------
 include/configs/imx6dl-mamoj.h              |  2 --
 include/configs/imx8mm_data_modul_edm_sbc.h |  4 ----
 include/configs/imx8mm_evk.h                |  2 --
 include/configs/imx8mm_icore_mx8mm.h        |  4 ----
 include/configs/imx8mm_venice.h             |  4 ----
 include/configs/imx8mn_evk.h                |  2 --
 include/configs/imx8mn_venice.h             |  4 ----
 include/configs/imx8mp_dhcom_pdk2.h         |  4 ----
 include/configs/imx8mp_evk.h                |  2 --
 include/configs/imx8mp_venice.h             |  4 ----
 include/configs/imx8mq_cm.h                 |  2 --
 include/configs/imx8mq_evk.h                |  2 --
 include/configs/iot2050.h                   |  4 ----
 include/configs/kontron-sl-mx6ul.h          |  4 ----
 include/configs/kontron-sl-mx8mm.h          |  4 ----
 include/configs/kp_imx6q_tpc.h              |  2 --
 include/configs/kylin_rk3036.h              |  6 ------
 include/configs/ls1012a_common.h            |  2 --
 include/configs/ls1012afrdm.h               |  2 --
 include/configs/ls1012afrwy.h               |  2 --
 include/configs/ls1043a_common.h            |  2 --
 include/configs/ls1046a_common.h            |  2 --
 include/configs/ls1046afrwy.h               |  2 --
 include/configs/ls2080aqds.h                |  2 +-
 include/configs/mx6cuboxi.h                 |  5 -----
 include/configs/mx6sxsabresd.h              |  4 ----
 include/configs/mx6ul_14x14_evk.h           |  4 ----
 include/configs/novena.h                    |  5 -----
 include/configs/omap3_igep00x0.h            |  4 ----
 include/configs/opos6uldev.h                |  4 ----
 include/configs/pdu001.h                    |  2 --
 include/configs/pomelo.h                    |  2 --
 include/configs/poplar.h                    |  2 --
 include/configs/px30_common.h               |  4 ----
 include/configs/pxm2.h                      |  7 -------
 include/configs/qemu-riscv.h                |  2 --
 include/configs/rastaban.h                  |  6 ------
 include/configs/rk3036_common.h             |  3 ---
 include/configs/rk3066_common.h             |  4 ----
 include/configs/rk3128_common.h             |  4 ----
 include/configs/rk3188_common.h             |  3 ---
 include/configs/rk322x_common.h             |  3 ---
 include/configs/rk3288_common.h             |  3 ---
 include/configs/rk3308_common.h             |  4 ----
 include/configs/rk3328_common.h             |  4 ----
 include/configs/rk3368_common.h             |  3 ---
 include/configs/rk3568_common.h             |  2 --
 include/configs/rut.h                       |  8 --------
 include/configs/rv1108_common.h             |  3 +--
 include/configs/sandbox.h                   |  2 --
 include/configs/siemens-am33x-common.h      |  6 ------
 include/configs/sifive-unleashed.h          |  2 --
 include/configs/sifive-unmatched.h          |  2 --
 include/configs/smartweb.h                  |  2 --
 include/configs/socfpga_soc64_common.h      | 15 ---------------
 include/configs/sunxi-common.h              |  6 ------
 include/configs/synquacer.h                 |  4 ----
 include/configs/taurus.h                    |  6 ------
 include/configs/tegra-common-post.h         |  5 -----
 include/configs/thuban.h                    |  6 ------
 include/configs/ti_omap4_common.h           |  2 --
 include/configs/uniphier.h                  |  4 ----
 include/configs/verdin-imx8mm.h             |  4 ----
 include/configs/verdin-imx8mp.h             |  4 ----
 include/configs/x530.h                      |  2 --
 include/configs/xilinx_zynqmp.h             |  2 --
 88 files changed, 2 insertions(+), 308 deletions(-)
include/configs/am335x_igep003x.h +0 -2
index 2cf77a67c0c2..8d36ddeba596 100644
@@ -20,7 +20,6 @@
 #define V_OSCK				24000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	DEFAULT_LINUX_BOOT_ENV \
 	"bootdir=/boot\0" \
@@ -89,7 +88,6 @@
 			"setenv fdtfile am335x-igep-base0040-lite.dtb; fi; " \
 		"if test ${fdtfile} = ''; then " \
 			"echo WARNING: Could not determine device tree to use; fi; \0"
-#endif
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_COM1		0x44e09000	/* UART0 */
include/configs/am335x_sl50.h +0 -4
index a57d551bcf17..79d9d03a176b 100644
@@ -16,8 +16,6 @@
 #define V_OSCK				24000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)
 
-#ifndef CONFIG_SPL_BUILD
-
 #define MEM_LAYOUT_ENV_SETTINGS \
 	"scriptaddr=0x80000000\0" \
 	"pxefile_addr_r=0x80100000\0" \
@@ -39,8 +37,6 @@
 	MEM_LAYOUT_ENV_SETTINGS \
 	BOOTENV
 
-#endif
-
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_COM1		0x44e09000	/* Base EVM has UART0 */
 #define CONFIG_SYS_NS16550_COM2		0x48022000	/* UART1 */
include/configs/apalis_imx6.h +0 -4
index 5db8b2be2cb8..7767fce4050e 100644
@@ -48,7 +48,6 @@
 #undef CONFIG_SERVERIP
 #define CONFIG_SERVERIP			192.168.10.1
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
@@ -58,9 +57,6 @@
 #include <config_distro_bootcmd.h>
 #undef BOOTENV_RUN_NET_USB_START
 #define BOOTENV_RUN_NET_USB_START ""
-#else /* CONFIG_SPL_BUILD */
-#define BOOTENV
-#endif /* CONFIG_SPL_BUILD */
 
 #define UBOOT_UPDATE \
 	"uboot_hwpart=1\0" \
include/configs/baltos.h +0 -2
index 7b43741fde7c..1abda0836ab6 100644
@@ -52,7 +52,6 @@
 #define NANDARGS ""
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	DEFAULT_LINUX_BOOT_ENV \
 	"boot_fdt=try\0" \
@@ -183,7 +182,6 @@
 	"findfdt=setenv fdtfile am335x-baltos.dtb\0" \
 	NANDARGS
 	/*DFUARGS*/
-#endif
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_COM1		0x44e09000	/* Base EVM has UART0 */
include/configs/brppt1.h +0 -2
index 12a4048a511c..440571a799e5 100644
@@ -99,7 +99,6 @@ MMCSPI_TGTS \
 
 #define LOAD_OFFSET(x)			0x8##x
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
 BUR_COMMON_ENV \
 "verify=no\0" \
@@ -123,7 +122,6 @@ NANDTGTS \
 "b_default=run b_deftgts; for target in ${b_tgts};"\
 " do echo \"### booting ${target} ###\"; run b_${target};" \
 " if test ${b_break} = 1; then; exit; fi; done\0"
-#endif /* !CONFIG_SPL_BUILD*/
 
 #ifdef CONFIG_MTD_RAW_NAND
 /*
include/configs/brsmarc1.h +0 -3
index f1e6dbf61358..eccf16fdb7a1 100644
@@ -24,8 +24,6 @@
 #define V_OSCK				26000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Default environment */
 #define CONFIG_EXTRA_ENV_SETTINGS	\
 BUR_COMMON_ENV \
@@ -56,7 +54,6 @@ BUR_COMMON_ENV \
 " fdt boardsetup\0" \
 "startsys=run vxargs && mw 0x80001100 0 && run vxfdt &&" \
 " bootm ${loadaddr} - ${dtbaddr}\0"
-#endif /* !CONFIG_SPL_BUILD*/
 
 /* SPI Flash */
 
include/configs/brxre1.h +0 -3
index d34d69778f1b..b4e8d73db05a 100644
@@ -23,8 +23,6 @@
 #define V_OSCK				26000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Default environment */
 #define CONFIG_EXTRA_ENV_SETTINGS	\
 BUR_COMMON_ENV \
@@ -51,7 +49,6 @@ BUR_COMMON_ENV \
 "b_usb0=usb start && load usb 0 ${scradr} usbscript.img && source ${scradr}\0" \
 "b_default=run b_deftgts; for target in ${b_tgts};"\
 " do run b_${target}; if test ${b_break} = 1; then; exit; fi; done\0"
-#endif /* !CONFIG_SPL_BUILD*/
 
 /* Environment */
 
include/configs/capricorn-common.h +0 -3
index 456d1828d629..6b1e82ad3b17 100644
@@ -25,15 +25,12 @@
 #define CONFIG_FEC_ENET_DEV		1
 #define CONFIG_FEC_MXC_PHYADDR		0x0
 
-/* I2C Configuration */
-#ifndef CONFIG_SPL_BUILD
 /* EEPROM */
 #define  EEPROM_I2C_BUS		0 /* I2C0 */
 #define  EEPROM_I2C_ADDR	0x50
 /* PCA9552 */
 #define  PCA9552_1_I2C_BUS	1 /* I2C1 */
 #define  PCA9552_1_I2C_ADDR	0x60
-#endif /* !CONFIG_SPL_BUILD */
 
 /* AHAB */
 #ifdef CONFIG_AHAB_BOOT
include/configs/clearfog.h +0 -6
index 8497fe28effe..af04352eda3b 100644
@@ -31,9 +31,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /* Keep device tree and initrd in lower memory so the kernel can access them */
 #define RELOCATION_LIMITS_ENV_SETTINGS	\
@@ -47,8 +45,6 @@
 #include "mv-common.h"
 
 /* Include the common distro boot environment */
-#ifndef CONFIG_SPL_BUILD
-
 #ifdef CONFIG_MMC
 #define BOOT_TARGET_DEVICES_MMC(func) func(MMC, mmc, 0)
 #else
@@ -125,6 +121,4 @@
 	"console=ttyS0,115200\0" \
 	BOOTENV
 
-#endif /* CONFIG_SPL_BUILD */
-
 #endif /* _CONFIG_CLEARFOG_H */
include/configs/cm_fx6.h +0 -6
index fbe1e35e001a..02935430c25e 100644
@@ -30,7 +30,6 @@
 
 /* Environment */
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"fdt_high=0xffffffff\0" \
 	"initrd_high=0xffffffff\0" \
@@ -130,16 +129,11 @@
 	func(SATA, sata, 0)
 
 #include <config_distro_bootcmd.h>
-#else
-#define CONFIG_EXTRA_ENV_SETTINGS
-#endif
 
 /* NAND */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_SYS_NAND_BASE		0x40000000
 #define CONFIG_SYS_MAX_NAND_DEVICE	1
 /* APBH DMA is required for NAND support */
-#endif
 
 /* Ethernet */
 #define CONFIG_FEC_MXC_PHYADDR		0
include/configs/cm_t335.h +0 -4
index b3ccc3cac3da..b2bec10960aa 100644
@@ -19,7 +19,6 @@
 #define V_OSCK				25000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)
 
-#ifndef CONFIG_SPL_BUILD
 #define MMCARGS \
 	"mmcdev=0\0" \
 	"mmcroot=/dev/mmcblk0p2 rw rootwait\0" \
@@ -55,7 +54,6 @@
 	"loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
 	MMCARGS \
 	NANDARGS
-#endif /* CONFIG_SPL_BUILD */
 
 #define CONFIG_SYS_AUTOLOAD		"no"
 
@@ -95,7 +93,6 @@
 
 /* EEPROM */
 
-#ifndef CONFIG_SPL_BUILD
 /*
  * Enable PCA9555 at I2C0-0x26.
  * First select the I2C0 bus with "i2c dev 0", then use "pca953x" command.
@@ -103,6 +100,5 @@
 #define CONFIG_PCA953X
 #define CONFIG_SYS_I2C_PCA953X_ADDR	0x26
 #define CONFIG_SYS_I2C_PCA953X_WIDTH	{ {0x26, 16} }
-#endif /* CONFIG_SPL_BUILD */
 
 #endif	/* __CONFIG_CM_T335_H */
include/configs/colibri_imx6.h +0 -4
index f62a3f6688ed..0d8922bc3f83 100644
@@ -45,7 +45,6 @@
 #undef CONFIG_SERVERIP
 #define CONFIG_SERVERIP			192.168.10.1
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 0) \
@@ -54,9 +53,6 @@
 #include <config_distro_bootcmd.h>
 #undef BOOTENV_RUN_NET_USB_START
 #define BOOTENV_RUN_NET_USB_START ""
-#else /* CONFIG_SPL_BUILD */
-#define BOOTENV
-#endif /* CONFIG_SPL_BUILD */
 
 #define UBOOT_UPDATE \
 	"uboot_hwpart=1\0" \
include/configs/controlcenterdc.h +0 -2
index d1bea54b207e..bb1595f96111 100644
@@ -18,9 +18,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /*
  * Environment Configuration
include/configs/da850evm.h +0 -2
index 71ebca587d14..1f6ac8d28adf 100644
@@ -101,9 +101,7 @@
 /*
  * I2C Configuration
  */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_SYS_I2C_EXPANDER_ADDR   0x20
-#endif
 
 /*
  * Flash & Environment
include/configs/db-88f6820-amc.h +0 -2
index 3c442018ab1d..6912f39d32d2 100644
@@ -15,9 +15,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /* NAND */
 
include/configs/db-88f6820-gp.h +0 -2
index 6b2edbb1e0d3..3b3a7abd281f 100644
@@ -18,9 +18,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /* Keep device tree and initrd in lower memory so the kernel can access them */
 #define CONFIG_EXTRA_ENV_SETTINGS	\
include/configs/db-mv784mp-gp.h +0 -2
index b4cfa61d4e75..da6514b64fc9 100644
@@ -23,9 +23,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /* NAND */
 
include/configs/dh_imx6.h +0 -2
index 6fe45a86dcc0..0c0abe6023e8 100644
@@ -52,7 +52,6 @@
 #endif
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS	\
 	"console=ttymxc0,115200\0"	\
 	"fdt_addr=0x18000000\0"		\
@@ -77,7 +76,6 @@
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Physical Memory Map */
 #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
include/configs/draco.h +0 -6
index b4998f5c2e56..21367f0a6f5e 100644
@@ -30,8 +30,6 @@
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE        (4 * CONFIG_SYS_ENV_SECT_SIZE)
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Default env settings */
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"hostname=draco\0" \
@@ -43,8 +41,4 @@
 	CONFIG_ENV_SETTINGS_V2 \
 	CONFIG_ENV_SETTINGS_NAND_V2
 
-#ifndef CONFIG_RESTORE_FLASH
-/* set to negative value for no autoboot */
-#endif
-#endif	/* CONFIG_SPL_BUILD */
 #endif	/* ! __CONFIG_DRACO_H */
include/configs/dragonboard820c.h +0 -2
index e3940dc3217c..705146d04f76 100644
@@ -22,9 +22,7 @@
 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
 #define CONFIG_SYS_BOOTM_LEN		SZ_64M
 
-#ifndef CONFIG_SPL_BUILD
 #include <config_distro_bootcmd.h>
-#endif
 
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0)
include/configs/ds414.h +0 -2
index 7fa1a4ebf020..7e3f657e31cc 100644
@@ -20,9 +20,7 @@
 #define CONFIG_I2C_MVTWSI_BASE0		MVEBU_TWSI_BASE
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /*
  * mv-common.h should be defined after CMD configs since it used them
include/configs/helios4.h +0 -6
index 23eb0d4375df..cae20073584c 100644
@@ -31,9 +31,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /* Keep device tree and initrd in lower memory so the kernel can access them */
 #define RELOCATION_LIMITS_ENV_SETTINGS	\
@@ -47,8 +45,6 @@
 #include "mv-common.h"
 
 /* Include the common distro boot environment */
-#ifndef CONFIG_SPL_BUILD
-
 #ifdef CONFIG_MMC
 #define BOOT_TARGET_DEVICES_MMC(func) func(MMC, mmc, 0)
 #else
@@ -126,6 +122,4 @@
 	"console=ttyS0,115200\0" \
 	BOOTENV
 
-#endif /* CONFIG_SPL_BUILD */
-
 #endif /* _CONFIG_HELIOS4_H */
include/configs/imx6dl-mamoj.h +0 -2
index 2707ae644067..0bae238a4b03 100644
@@ -20,7 +20,6 @@
 /* Environment in MMC */
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS	\
 	"scriptaddr=0x14000000\0"	\
 	"fdt_addr_r=0x13000000\0"	\
@@ -34,7 +33,6 @@
 	func(MMC, mmc, 2)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* UART */
 #define CONFIG_MXC_UART_BASE		UART3_BASE
include/configs/imx8mm_data_modul_edm_sbc.h +0 -4
index f8af3baef6f4..e8f56b0759aa 100644
@@ -35,8 +35,6 @@
 #define CONFIG_SYS_FSL_USDHC_NUM	2
 #define CONFIG_SYS_FSL_ESDHC_ADDR	0
 
-#if !defined(CONFIG_SPL_BUILD)
-
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 	"altbootcmd=setenv devpart 2 && run bootcmd ; reset\0"		\
 	"bootlimit=3\0"							\
@@ -102,5 +100,3 @@
 		"fi"
 
 #endif
-
-#endif
include/configs/imx8mm_evk.h +0 -2
index d239c926ad5c..fbbc3ab30058 100644
@@ -20,14 +20,12 @@
 #define CONFIG_MALLOC_F_ADDR		0x930000
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/imx8mm_icore_mx8mm.h +0 -4
index f02d6d58c4ad..dc7756e0c610 100644
@@ -19,14 +19,10 @@
 # define CONFIG_MALLOC_F_ADDR		0x930000
 #endif /* CONFIG_SPL_BUILD */
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 2) \
 	func(MMC, mmc, 0)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"fdt_addr_r=0x44000000\0" \
include/configs/imx8mm_venice.h +0 -4
index 573af3b7e286..9d3ecd51ccda 100644
@@ -26,7 +26,6 @@
 	"kernel_comp_addr_r=0x40200000\0"
 
 /* Enable Distro Boot */
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
@@ -34,9 +33,6 @@
 	func(USB, usb, 1) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS \
include/configs/imx8mn_evk.h +0 -2
index 1b8caba3321c..f6889d4676db 100644
@@ -16,14 +16,12 @@
 #define CONFIG_SYS_UBOOT_BASE	\
 	(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 /* see include/configs/ti_armv7_common.h */
include/configs/imx8mn_venice.h +0 -4
index a3ba520eb0b5..0103d7df6131 100644
@@ -21,16 +21,12 @@
 	"kernel_comp_addr_r=0x40200000\0"
 
 /* Enable Distro Boot */
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
 	func(USB, usb, 0) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS \
include/configs/imx8mp_dhcom_pdk2.h +0 -4
index 79db625d0373..797ea0c7fad2 100644
@@ -32,8 +32,6 @@
 #define CONFIG_SYS_FSL_USDHC_NUM	2
 #define CONFIG_SYS_FSL_ESDHC_ADDR	0
 
-#if !defined(CONFIG_SPL_BUILD)
-
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 	"altbootcmd=run bootcmd ; reset\0"				\
 	"bootlimit=3\0"							\
@@ -85,5 +83,3 @@
 #include <config_distro_bootcmd.h>
 
 #endif
-
-#endif
include/configs/imx8mp_evk.h +0 -2
index 6464d2ff28b3..206f5c2fb353 100644
@@ -31,13 +31,11 @@
 
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
        func(MMC, mmc, 1) \
        func(MMC, mmc, 2)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/imx8mp_venice.h +0 -4
index 7b30a3a21d7b..c9a2cefcd632 100644
@@ -21,16 +21,12 @@
 	"kernel_comp_addr_r=0x40200000\0"
 
 /* Enable Distro Boot */
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
 	func(USB, usb, 0) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS \
include/configs/imx8mq_cm.h +0 -2
index 28f61b9fa13e..96e736e1e69a 100644
@@ -24,14 +24,12 @@
 /* ENET Config */
 /* ENET1 */
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 		func(MMC, mmc, 0) \
 		func(MMC, mmc, 1) \
 		func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/imx8mq_evk.h +0 -2
index 63bd1955f453..781a40e3de29 100644
@@ -31,14 +31,12 @@
 #define CONFIG_FEC_MXC_PHYADDR          0
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
        func(MMC, mmc, 0) \
        func(MMC, mmc, 1) \
        func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/iot2050.h +0 -4
index 296bcd4c7b7b..d379bad0b154 100644
@@ -21,8 +21,6 @@
 #define EXTRA_ENV_IOT2050_BOARD_SETTINGS				\
 	"usb_pgood_delay=900\0"
 
-#ifndef CONFIG_SPL_BUILD
-
 #if CONFIG_IS_ENABLED(CMD_USB)
 # define BOOT_TARGET_USB(func) \
 	func(USB, usb, 0) \
@@ -44,8 +42,6 @@
 
 #include <config_distro_bootcmd.h>
 
-#endif
-
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 	DEFAULT_LINUX_BOOT_ENV						\
 	BOOTENV								\
include/configs/kontron-sl-mx6ul.h +0 -4
index d04684955d3c..7b5e57734644 100644
@@ -35,7 +35,6 @@
 #endif
 
 /* Boot order for distro boot */
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 0) \
@@ -44,9 +43,6 @@
 	func(PXE, pxe, na) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 /* MMC Configs */
 #ifdef CONFIG_FSL_USDHC
include/configs/kontron-sl-mx8mm.h +0 -4
index 64bfddde3b00..dcc98fdef867 100644
@@ -37,7 +37,6 @@
 	EFI_GUID(0xd488e45a, 0x4929, 0x4b55, 0x8c, 0x14, \
 		 0x86, 0xce, 0xa2, 0xcd, 0x66, 0x29)
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 0) \
@@ -47,9 +46,6 @@
 /* Do not try to probe USB net adapters for net boot */
 #undef BOOTENV_RUN_NET_USB_START
 #define BOOTENV_RUN_NET_USB_START
-#else
-#define BOOTENV
-#endif
 
 #define CONFIG_SYS_BOOTM_LEN		SZ_64M
 
include/configs/kp_imx6q_tpc.h +0 -2
index a513213c5980..7b8e70e59453 100644
@@ -26,7 +26,6 @@
 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2 /* Enabled USB controller number */
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS	\
 	"console=ttymxc0,115200\0"	\
 	"fdt_addr=0x18000000\0"		\
@@ -87,7 +86,6 @@
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Physical Memory Map */
 #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
include/configs/kylin_rk3036.h +0 -6
index 75fc03f14723..fea7c835fdcb 100644
@@ -9,10 +9,4 @@
 #include <linux/sizes.h>
 #include <configs/rk3036_common.h>
 
-#ifndef CONFIG_SPL_BUILD
-
-/* Store env in emmc */
-
-#endif
-
 #endif
include/configs/ls1012a_common.h +0 -2
index 1d8d9485e743..19201a735f0a 100644
@@ -36,14 +36,12 @@
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE		128
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(USB, usb, 0) \
 	func(SCSI, scsi, 0) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/ls1012afrdm.h +0 -2
index cb79d6362fcb..674bcbeb7584 100644
@@ -12,11 +12,9 @@
 /* DDR */
 #define CONFIG_SYS_SDRAM_SIZE		0x20000000
 
-#ifndef CONFIG_SPL_BUILD
 #undef BOOT_TARGET_DEVICES
 #define BOOT_TARGET_DEVICES(func) \
 	func(USB, usb, 0)
-#endif
 
 #undef CONFIG_EXTRA_ENV_SETTINGS
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/ls1012afrwy.h +0 -2
index a1d23b64630d..7f083c597e30 100644
@@ -19,13 +19,11 @@
 /* ENV */
 #define CONFIG_SYS_FSL_QSPI_BASE	0x40000000
 
-#ifndef CONFIG_SPL_BUILD
 #undef BOOT_TARGET_DEVICES
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(USB, usb, 0) \
 	func(DHCP, dhcp, na)
-#endif
 
 #define CONFIG_PCIE1		/* PCIE controller 1 */
 
include/configs/ls1043a_common.h +0 -2
index fe9a8fd3754e..6e2c048fb128 100644
@@ -137,13 +137,11 @@
 #define HWCONFIG_BUFFER_SIZE		128
 
 #ifndef SPL_NO_MISC
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(USB, usb, 0) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/ls1046a_common.h +0 -2
index 8e9103562eb7..e139aa93e1fc 100644
@@ -104,14 +104,12 @@
 #define CONFIG_HWCONFIG
 #define HWCONFIG_BUFFER_SIZE		128
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(SCSI, scsi, 0) \
 	func(MMC, mmc, 0) \
 	func(USB, usb, 0) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#endif
 
 #if defined(CONFIG_TARGET_LS1046AFRWY)
 #define LS1046A_BOOT_SRC_AND_HDR\
include/configs/ls1046afrwy.h +0 -2
index d56d0c029474..e663fa0f6c7d 100644
@@ -80,13 +80,11 @@
  */
 #define CONFIG_SYS_FSL_QSPI_BASE	0x40000000
 
-#ifndef CONFIG_SPL_BUILD
 #undef BOOT_TARGET_DEVICES
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(USB, usb, 0) \
 	func(DHCP, dhcp, na)
-#endif
 
 /* FMan */
 #ifdef CONFIG_SYS_DPAA_FMAN
include/configs/ls2080aqds.h +1 -1
index f2eae073810b..21ca4afa51ce 100644
@@ -410,7 +410,7 @@
 			"env exists secureboot && esbc_halt;"
 #endif
 
-#if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD)
+#if defined(CONFIG_FSL_MC_ENET)
 #define CONFIG_FSL_MEMAC
 #define SGMII_CARD_PORT1_PHY_ADDR 0x1C
 #define SGMII_CARD_PORT2_PHY_ADDR 0x1d
include/configs/mx6cuboxi.h +0 -5
index c6744e970f68..cffbb64bcd53 100644
@@ -27,7 +27,6 @@
 
 #define CONFIG_MXC_UART_BASE	UART1_BASE
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"som_rev=undefined\0" \
 	"has_emmc=undefined\0" \
@@ -87,10 +86,6 @@
 
 #include <config_distro_bootcmd.h>
 
-#else
-#define CONFIG_EXTRA_ENV_SETTINGS
-#endif /* CONFIG_SPL_BUILD */
-
 /* Physical Memory Map */
 #define CONFIG_SYS_SDRAM_BASE          MMDC0_ARB_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
include/configs/mx6sxsabresd.h +0 -4
index a5596d98fe68..8bddc5281e5e 100644
@@ -136,10 +136,6 @@
 #define CONFIG_PCIE_IMX_POWER_GPIO	IMX_GPIO_NR(2, 1)
 #endif
 
-#ifndef CONFIG_SPL_BUILD
-#ifdef CONFIG_DM_VIDEO
 #define MXS_LCDIF_BASE MX6SX_LCDIF1_BASE_ADDR
-#endif
-#endif
 
 #endif				/* __CONFIG_H */
include/configs/mx6ul_14x14_evk.h +0 -4
index 7c76290a2aeb..6a110132a759 100644
@@ -134,10 +134,6 @@
 #endif
 #endif
 
-#ifndef CONFIG_SPL_BUILD
-#if defined(CONFIG_DM_VIDEO)
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
-#endif
-#endif
 
 #endif
include/configs/novena.h +0 -5
index 9c67a3a77750..40304ba468c1 100644
@@ -76,7 +76,6 @@
 #define CONFIG_IMX_VIDEO_SKIP
 
 /* Extra U-Boot environment. */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 	"fdt_high=0xffffffff\0"						\
 	"initrd_high=0xffffffff\0"					\
@@ -147,8 +146,4 @@
 
 #include <config_distro_bootcmd.h>
 
-#else
-#define CONFIG_EXTRA_ENV_SETTINGS
-#endif /* CONFIG_SPL_BUILD */
-
 #endif				/* __CONFIG_H */
include/configs/omap3_igep00x0.h +0 -4
index c1ef040ce360..6be214753f1b 100644
@@ -28,8 +28,6 @@
 #define GPIO_IGEP00X0_BOARD_DETECTION		28
 #define GPIO_IGEP00X0_REVISION_DETECTION	129
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Environment */
 #define ENV_DEVICE_SETTINGS \
 	"stdin=serial\0" \
@@ -67,8 +65,6 @@
 	MEM_LAYOUT_SETTINGS \
 	BOOTENV
 
-#endif
-
 /* OneNAND config */
 #define CONFIG_USE_ONENAND_BOARD_INIT
 #define CONFIG_SYS_ONENAND_BASE		ONENAND_MAP
include/configs/opos6uldev.h +0 -4
index ebfba72d0da4..d368376d2028 100644
@@ -30,11 +30,7 @@
 #endif
 
 /* LCD */
-#ifndef CONFIG_SPL_BUILD
-#ifdef CONFIG_DM_VIDEO
 #define MXS_LCDIF_BASE MX6UL_LCDIF1_BASE_ADDR
-#endif
-#endif
 
 /* Environment is stored in the eMMC boot partition */
 
include/configs/pdu001.h +0 -2
index 7ab6a896040f..ed3201aa3c42 100644
@@ -32,7 +32,6 @@
 	#define CONSOLE_DEV "ttyO5"
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	DEFAULT_LINUX_BOOT_ENV \
 	"fdtfile=am335x-pdu001.dtb\0" \
@@ -49,7 +48,6 @@
 			"reset;" \
 		"fi;" \
 	"\0"
-#endif
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_COM1	UART0_BASE
include/configs/pomelo.h +0 -2
index 11d408f19084..647bb3d02a1b 100644
@@ -16,12 +16,10 @@
 /*BOOT*/
 #define CONFIG_SYS_BOOTM_LEN		0x3c00000
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(SCSI, scsi, 0) \
 
 #include <config_distro_bootcmd.h>
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS		\
include/configs/poplar.h +0 -2
index 6def3691103c..b119465420df 100644
@@ -31,9 +31,7 @@
 					func(USB, usb, 0)		\
 					func(MMC, mmc, 0)		\
 					func(DHCP, dhcp, na)
-#ifndef CONFIG_SPL_BUILD
 #include <config_distro_bootcmd.h>
-#endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 			"loader_mmc_blknum=0x0\0"			\
include/configs/px30_common.h +0 -4
index 96dcfb420f7b..62ed86b29c89 100644
@@ -24,8 +24,6 @@
 #define SDRAM_MAX_SIZE			0xff000000
 #define SDRAM_BANK_SIZE			(2UL << 30)
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x00500000\0" \
 	"pxefile_addr_r=0x00600000\0" \
@@ -43,5 +41,3 @@
 	BOOTENV
 
 #endif
-
-#endif
include/configs/pxm2.h +0 -7
index ad05920ad6b1..4f24b13f500e 100644
@@ -30,8 +30,6 @@
  /* Physical Memory Map */
 #define CONFIG_MAX_RAM_BANK_SIZE	(512 << 20)	/* 1GB */
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Use common default */
 
 /* Default env settings */
@@ -67,9 +65,4 @@
 		"bootm ${kloadaddr}\0" \
 	""
 
-#ifndef CONFIG_RESTORE_FLASH
-/* set to negative value for no autoboot */
-#endif
-#endif	/* CONFIG_SPL_BUILD */
-
 #endif	/* ! __CONFIG_PXM2_H */
include/configs/qemu-riscv.h +0 -2
index f3e16e55966d..a81c503d9fd1 100644
@@ -21,7 +21,6 @@
 
 /* Environment options */
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(QEMU, qemu, na) \
 	func(VIRTIO, virtio, 0) \
@@ -50,6 +49,5 @@
 	"pxefile_addr_r=0x8c200000\0" \
 	"ramdisk_addr_r=0x8c300000\0" \
 	BOOTENV
-#endif
 
 #endif /* __CONFIG_H */
include/configs/rastaban.h +0 -6
index 6c942a809809..5de980ddc00a 100644
@@ -40,8 +40,6 @@
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE		(4 * CONFIG_SYS_ENV_SECT_SIZE)
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Default env settings */
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"hostname=rastaban\0" \
@@ -53,8 +51,4 @@
 	CONFIG_ENV_SETTINGS_V2 \
 	CONFIG_ENV_SETTINGS_NAND_V2
 
-#ifndef CONFIG_RESTORE_FLASH
-/* set to negative value for no autoboot */
-#endif
-#endif	/* CONFIG_SPL_BUILD */
 #endif	/* ! __CONFIG_RASTABAN_H */
include/configs/rk3036_common.h +0 -3
index 2f3260e449c1..ac57721f0214 100644
@@ -17,8 +17,6 @@
 #define SDRAM_BANK_SIZE			(512UL << 20UL)
 #define SDRAM_MAX_SIZE                  (CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE)
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x60000000\0" \
 	"pxefile_addr_r=0x60100000\0" \
@@ -36,6 +34,5 @@
 	"partitions=" PARTS_DEFAULT \
 	ENV_MEM_LAYOUT_SETTINGS \
 	BOOTENV
-#endif
 
 #endif
include/configs/rk3066_common.h +0 -4
index 41e0d18f88c6..9297184bded8 100644
@@ -15,8 +15,6 @@
 #define SDRAM_BANK_SIZE			(1024UL << 20UL)
 #define SDRAM_MAX_SIZE			CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x60000000\0" \
 	"pxefile_addr_r=0x60100000\0" \
@@ -34,6 +32,4 @@
 	ROCKCHIP_DEVICE_SETTINGS \
 	BOOTENV
 
-#endif /* CONFIG_SPL_BUILD */
-
 #endif
include/configs/rk3128_common.h +0 -4
index 5c60d119f995..f3e0eefb9a21 100644
@@ -22,8 +22,6 @@
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     1
 
-#ifndef CONFIG_SPL_BUILD
-
 /* usb mass storage */
 
 #define ENV_MEM_LAYOUT_SETTINGS \
@@ -41,5 +39,3 @@
 	BOOTENV
 
 #endif
-
-#endif
include/configs/rk3188_common.h +0 -3
index c1d66845412f..56fba3ff2578 100644
@@ -19,7 +19,6 @@
 #define SDRAM_BANK_SIZE			(2UL << 30)
 #define SDRAM_MAX_SIZE			0x80000000
 
-#ifndef CONFIG_SPL_BUILD
 /* usb otg */
 
 /* usb host support */
@@ -43,6 +42,4 @@
 	ROCKCHIP_DEVICE_SETTINGS \
 	BOOTENV
 
-#endif /* CONFIG_SPL_BUILD */
-
 #endif
include/configs/rk322x_common.h +0 -3
index dd1a207aed33..c3279b84d3a4 100644
@@ -20,8 +20,6 @@
 #define SDRAM_BANK_SIZE			(512UL << 20UL)
 #define SDRAM_MAX_SIZE			0x80000000
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x60000000\0" \
 	"pxefile_addr_r=0x60100000\0" \
@@ -39,6 +37,5 @@
 	"partitions=" PARTS_DEFAULT \
 	ENV_MEM_LAYOUT_SETTINGS \
 	BOOTENV
-#endif
 
 #endif
include/configs/rk3288_common.h +0 -3
index 844c154217bd..18f4289d29ab 100644
@@ -23,8 +23,6 @@
 
 #define CONFIG_SYS_MONITOR_LEN (600 * 1024)
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x00000000\0" \
 	"pxefile_addr_r=0x00100000\0" \
@@ -44,6 +42,5 @@
 	ENV_MEM_LAYOUT_SETTINGS \
 	ROCKCHIP_DEVICE_SETTINGS \
 	BOOTENV
-#endif
 
 #endif
include/configs/rk3308_common.h +0 -4
index 169cf2ac9c1f..d5aadd5fa803 100644
@@ -20,8 +20,6 @@
 #define SDRAM_MAX_SIZE			0xff000000
 #define SDRAM_BANK_SIZE			(2UL << 30)
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x00500000\0" \
 	"pxefile_addr_r=0x00600000\0" \
@@ -37,5 +35,3 @@
 	BOOTENV
 
 #endif
-
-#endif
include/configs/rk3328_common.h +0 -4
index 9cdc9004a91f..90183579202d 100644
@@ -16,8 +16,6 @@
 #define CONFIG_SYS_SDRAM_BASE		0
 #define SDRAM_MAX_SIZE			0xff000000
 
-#ifndef CONFIG_SPL_BUILD
-
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x00500000\0" \
 	"pxefile_addr_r=0x00600000\0" \
@@ -32,8 +30,6 @@
 	"partitions=" PARTS_DEFAULT \
 	BOOTENV
 
-#endif
-
 /* rockchip ohci host driver */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	1
include/configs/rk3368_common.h +0 -3
index ac8818868245..4db4026ebe56 100644
@@ -18,7 +18,6 @@
 
 #define CONFIG_SYS_BOOTM_LEN	(64 << 20)	/* 64M */
 
-#ifndef CONFIG_SPL_BUILD
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x00500000\0" \
 	"pxefile_addr_r=0x00600000\0" \
@@ -34,5 +33,3 @@
 	BOOTENV
 
 #endif
-
-#endif
include/configs/rk3568_common.h +0 -2
index f9c7c23cd9ab..ef4f725b5793 100644
@@ -15,7 +15,6 @@
 #define CONFIG_SYS_SDRAM_BASE		0
 #define SDRAM_MAX_SIZE			0xf0000000
 
-#ifndef CONFIG_SPL_BUILD
 #define ENV_MEM_LAYOUT_SETTINGS		\
 	"scriptaddr=0x00c00000\0"	\
 	"pxefile_addr_r=0x00e00000\0"	\
@@ -30,6 +29,5 @@
 	"partitions=" PARTS_DEFAULT		\
 	ROCKCHIP_DEVICE_SETTINGS		\
 	BOOTENV
-#endif
 
 #endif
include/configs/rut.h +0 -8
index fc3194654ae3..ac48372b6c0b 100644
@@ -24,8 +24,6 @@
 /* Watchdog */
 #define WATCHDOG_TRIGGER_GPIO	14
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Use common default */
 
 /* Default env settings */
@@ -59,10 +57,4 @@
 		"bootm ${kloadaddr}\0" \
 	""
 
-#ifndef CONFIG_RESTORE_FLASH
-/* set to negative value for no autoboot */
-#endif
-
-#endif /* CONFIG_SPL_BUILD */
-
 #endif	/* ! __CONFIG_RUT_H */
include/configs/rv1108_common.h +1 -2
index f088f0e7a0c1..d8de9c25df2b 100644
@@ -20,9 +20,7 @@
 /* rockchip ohci host driver */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS	1
-#endif
 
-#ifndef CONFIG_SPL_BUILD
 #define ENV_MEM_LAYOUT_SETTINGS \
 	"scriptaddr=0x60000000\0" \
 	"fdt_addr_r=0x61f00000\0" \
@@ -35,4 +33,5 @@
 	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
 	"partitions=" PARTS_DEFAULT \
 	BOOTENV
+
 #endif
include/configs/sandbox.h +0 -2
index c22b74f707ef..5168e2fa3531 100644
@@ -6,9 +6,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_IO_TRACE
-#endif
 
 #define CONFIG_MALLOC_F_ADDR		0x0010000
 
include/configs/siemens-am33x-common.h +0 -6
index 941e02c5c68d..db8ff848285a 100644
@@ -17,9 +17,7 @@
 
 /* commands to include */
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_ROOTPATH		"/opt/eldk"
-#endif
 
 #define CONFIG_SYS_AUTOLOAD	"yes"
 
@@ -81,16 +79,12 @@
  * we don't need to do it twice.
  */
 
-#ifndef CONFIG_SPL_BUILD
-
 /* USB DRACO ID as default */
 #define CONFIG_USBD_HS
 
 /* USB Device Firmware Update support */
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
 
-#endif /* CONFIG_SPL_BUILD */
-
 /*
  * Default to using SPI for environment, etc.  We have multiple copies
  * of SPL as the ROM will check these locations.
include/configs/sifive-unleashed.h +0 -2
index 4442fc29e316..a99d143485c4 100644
@@ -24,7 +24,6 @@
 
 /* Environment options */
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(SF, sf, 0) \
@@ -61,6 +60,5 @@
 	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
 	BOOTENV \
 	BOOTENV_SF
-#endif
 
 #endif /* __CONFIG_H */
include/configs/sifive-unmatched.h +0 -2
index f5a341c84496..680caac377bc 100644
@@ -19,7 +19,6 @@
 
 /* Environment options */
 
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(NVME, nvme, 0) \
 	func(USB, usb, 0) \
@@ -53,7 +52,6 @@
 	"partitions=" PARTS_DEFAULT "\0" \
 	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
 	BOOTENV
-#endif /* CONFIG_SPL_BUILD */
 
 #define CONFIG_SYS_EEPROM_BUS_NUM		0
 
include/configs/smartweb.h +0 -2
index cde6abc62611..458d22d61f48 100644
@@ -69,7 +69,6 @@
 #define CONFIG_USART_BASE		ATMEL_BASE_DBGU
 #define CONFIG_USART_ID			ATMEL_ID_SYS
 
-#if !defined(CONFIG_SPL_BUILD)
 /* USB configuration */
 #define CONFIG_USB_ATMEL
 #define CONFIG_USB_ATMEL_CLK_SEL_PLLB
@@ -85,7 +84,6 @@
 
 /* DFU class support */
 #define DFU_MANIFEST_POLL_TIMEOUT	25000
-#endif
 
 /* General Boot Parameter */
 
include/configs/socfpga_soc64_common.h +0 -15
index b71f8bab156f..c388ae9a816c 100644
@@ -34,21 +34,6 @@
  * U-Boot environment configurations
  */
 
-/*
- * QSPI support
- */
- #ifdef CONFIG_CADENCE_QSPI
-/* Enable it if you want to use dual-stacked mode */
-/*#define CONFIG_QSPI_RBF_ADDR		0x720000*/
-
-/* Flash device info */
-
-#ifndef CONFIG_SPL_BUILD
-#define MTDIDS_DEFAULT			"nor0=ff705000.spi.0"
-#endif /* CONFIG_SPL_BUILD */
-
-#endif /* CONFIG_CADENCE_QSPI */
-
 /*
  * Environment variable
  */
include/configs/sunxi-common.h +0 -6
index 327bf98ddb23..1f77b7b2dfde 100644
@@ -125,8 +125,6 @@
 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
 #endif
 
-#ifndef CONFIG_SPL_BUILD
-
 #ifdef CONFIG_ARM64
 /*
  * Boards seem to come with at least 512MB of DRAM.
@@ -372,8 +370,4 @@
 	BOOTCMD_SUNXI_COMPAT \
 	BOOTENV
 
-#else /* ifndef CONFIG_SPL_BUILD */
-#define CONFIG_EXTRA_ENV_SETTINGS
-#endif
-
 #endif /* _SUNXI_COMMON_CONFIG_H */
include/configs/synquacer.h +0 -4
index 5b862f4f2ee9..63d897d090af 100644
@@ -60,7 +60,6 @@
 		 0xf0, 0xa3, 0x83, 0x87, 0xe6, 0x30)
 
 /* Distro boot settings */
-#ifndef CONFIG_SPL_BUILD
 #ifdef CONFIG_CMD_USB
 #define BOOT_TARGET_DEVICE_USB(func)	func(USB, usb, 0)
 #else
@@ -92,9 +91,6 @@
 	BOOT_TARGET_DEVICE_NVME(func)	\
 
 #include <config_distro_bootcmd.h>
-#else /* CONFIG_SPL_BUILD */
-#define BOOTENV
-#endif
 
 #define	CONFIG_EXTRA_ENV_SETTINGS		\
 	"fdt_addr_r=0x9fe00000\0"		\
include/configs/taurus.h +0 -6
index b9285e8cabad..798d72d8e26b 100644
@@ -84,13 +84,8 @@
 /* SPI EEPROM */
 #define TAURUS_SPI_MASK (1 << 4)
 
-#if defined(CONFIG_SPL_BUILD)
-/* SPL related */
-#endif
-
 /* bootstrap in spi flash , u-boot + env + linux in nandflash */
 
-#ifndef CONFIG_SPL_BUILD
 #if defined(CONFIG_BOARD_AXM)
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:" \
@@ -139,7 +134,6 @@
 	"stdout=serial\0" \
 	"upgrade_available=0\0"
 #endif
-#endif /* #ifndef CONFIG_SPL_BUILD */
 
 /* Defines for SPL */
 
include/configs/tegra-common-post.h +0 -5
index 755a41fef7e2..c8f9d7cb175c 100644
@@ -9,8 +9,6 @@
 
 #define CONFIG_SYS_NONCACHED_MEMORY	(1 << 20)	/* 1 MiB */
 
-#ifndef CONFIG_SPL_BUILD
-
 #if CONFIG_IS_ENABLED(CMD_USB)
 # define BOOT_TARGET_USB(func) func(USB, usb, 0)
 #else
@@ -26,9 +24,6 @@
 	func(DHCP, dhcp, na)
 #endif
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 #ifdef CONFIG_TEGRA_KEYBOARD
 #define STDIN_KBD_KBC ",tegra-kbc"
include/configs/thuban.h +0 -6
index bb0b9fa1560d..fd903537ae5e 100644
@@ -33,8 +33,6 @@
 /* Define own nand partitions */
 #define CONFIG_ENV_RANGE        (4 * CONFIG_SYS_ENV_SECT_SIZE)
 
-#ifndef CONFIG_SPL_BUILD
-
 /* Default env settings */
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"hostname=thuban\0" \
@@ -46,8 +44,4 @@
 	CONFIG_ENV_SETTINGS_V2 \
 	CONFIG_ENV_SETTINGS_NAND_V2
 
-#ifndef CONFIG_RESTORE_FLASH
-/* set to negative value for no autoboot */
-#endif
-#endif	/* CONFIG_SPL_BUILD */
 #endif	/* ! __CONFIG_THUBAN_H */
include/configs/ti_omap4_common.h +0 -2
index 5d8c45af2fa0..fcf282bc4c18 100644
@@ -47,9 +47,7 @@
 #endif
 
 /* TWL6030 */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_TWL6030_POWER		1
-#endif
 
 /*
  * Environment setup
include/configs/uniphier.h +0 -4
index 2bb9e59b9462..8096b2c89603 100644
@@ -10,7 +10,6 @@
 #ifndef __CONFIG_UNIPHIER_H__
 #define __CONFIG_UNIPHIER_H__
 
-#ifndef CONFIG_SPL_BUILD
 #include <config_distro_bootcmd.h>
 
 #ifdef CONFIG_CMD_MMC
@@ -35,9 +34,6 @@
 	BOOT_TARGET_DEVICE_MMC(func)	\
 	BOOT_TARGET_DEVICE_UBIFS(func)	\
 	BOOT_TARGET_DEVICE_USB(func)
-#else
-#define BOOTENV
-#endif
 
 #define CONFIG_SYS_MONITOR_LEN		0x00200000	/* 2MB */
 
include/configs/verdin-imx8mm.h +0 -4
index 846d6566a55a..0192a4fe06cb 100644
@@ -27,15 +27,11 @@
 	"scriptaddr=0x46000000\0"
 
 /* Enable Distro Boot */
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 0) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS \
include/configs/verdin-imx8mp.h +0 -4
index 2bbe2b72e0a7..beec393a3997 100644
@@ -39,15 +39,11 @@
 	"scriptaddr=0x46000000\0"
 
 /* Enable Distro Boot */
-#ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
 	func(DHCP, dhcp, na)
 #include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
 
 #if defined(CONFIG_TDX_EASY_INSTALLER)
 #  define BOOT_SCRIPT	"boot-tezi.scr"
include/configs/x530.h +0 -2
index d8fc3c13d062..1f1b4e1449eb 100644
@@ -48,9 +48,7 @@
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs a longer aneg time */
 
 /* PCIe support */
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_PCI_SCAN_SHOW
-#endif
 
 /* NAND */
 
include/configs/xilinx_zynqmp.h +0 -2
index bfd622bb0289..20515b4e26ac 100644
@@ -37,13 +37,11 @@
 #define DFU_DEFAULT_POLL_TIMEOUT	300
 #define CONFIG_THOR_RESET_OFF
 
-#ifndef CONFIG_SPL_BUILD
 # define PARTS_DEFAULT \
 	"partitions=uuid_disk=${uuid_gpt_disk};" \
 	"name=""boot"",size=16M,uuid=${uuid_gpt_boot};" \
 	"name=""Linux"",size=-M,uuid=${uuid_gpt_Linux}\0"
 #endif
-#endif
 
 #if !defined(PARTS_DEFAULT)
 # define PARTS_DEFAULT
Signature · 1 line
2.25.1
author
#18 lore raw
In reply to Tom Rini
Quoted 4 lines · Tom Rini

The only use of CONFIG_XTFPGA was to build all of the in-tree device trees. Switch to using CONFIG_XTENSA instead of a non-Kconfig symbol.

For the series, applied to u-boot/next, thanks!

Signature · 1 line
Tom