From c8836dbb01f2f891c407b3f9e2d3238267c0452e Mon Sep 17 00:00:00 2001
From: Tom Rini <trini@konsulko.com>
Date: Sat, 28 May 2022 12:07:26 -0400
Subject: [PATCH] Drop CONFIG_SPL_SIZE

We do not reference CONFIG_SPL_SIZE in the code, remove it.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 include/configs/clearfog.h        | 3 ---
 include/configs/controlcenterdc.h | 3 ---
 include/configs/db-88f6820-amc.h  | 3 ---
 include/configs/db-88f6820-gp.h   | 3 ---
 include/configs/helios4.h         | 3 ---
 include/configs/turris_omnia.h    | 3 ---
 include/configs/x530.h            | 5 -----
 7 files changed, 23 deletions(-)

diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index c2aef08dbf..4aaeba3602 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -42,9 +42,6 @@
 
 /* SPL */
 
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(140 << 10)
-
 #if defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC) || defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_SATA)
 /* SPL related MMC defines */
 #ifdef CONFIG_SPL_BUILD
diff --git a/include/configs/controlcenterdc.h b/include/configs/controlcenterdc.h
index 914d7ec83d..571fdb3b07 100644
--- a/include/configs/controlcenterdc.h
+++ b/include/configs/controlcenterdc.h
@@ -34,9 +34,6 @@
 #define SPL_BOOT_SDIO_MMC_CARD		2
 #define CONFIG_SPL_BOOT_DEVICE		SPL_BOOT_SPI_NOR_FLASH
 
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(160 << 10)
-
 #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SDIO_MMC_CARD
 /* SPL related MMC defines */
 #ifdef CONFIG_SPL_BUILD
diff --git a/include/configs/db-88f6820-amc.h b/include/configs/db-88f6820-amc.h
index 0b814f5e96..523a4ead02 100644
--- a/include/configs/db-88f6820-amc.h
+++ b/include/configs/db-88f6820-amc.h
@@ -39,9 +39,6 @@
 #define SPL_BOOT_SPI_NOR_FLASH		1
 #define CONFIG_SPL_BOOT_DEVICE		SPL_BOOT_SPI_NOR_FLASH
 
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(140 << 10)
-
 /*
  * mv-common.h should be defined after CMD configs since it used them
  * to enable certain macros
diff --git a/include/configs/db-88f6820-gp.h b/include/configs/db-88f6820-gp.h
index fe75666d05..acc09da89d 100644
--- a/include/configs/db-88f6820-gp.h
+++ b/include/configs/db-88f6820-gp.h
@@ -39,9 +39,6 @@
 #define SPL_BOOT_SDIO_MMC_CARD		2
 #define CONFIG_SPL_BOOT_DEVICE		SPL_BOOT_SPI_NOR_FLASH
 
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(140 << 10)
-
 #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SDIO_MMC_CARD
 /* SPL related MMC defines */
 #ifdef CONFIG_SPL_BUILD
diff --git a/include/configs/helios4.h b/include/configs/helios4.h
index 90a631c376..c8aa564097 100644
--- a/include/configs/helios4.h
+++ b/include/configs/helios4.h
@@ -42,9 +42,6 @@
 
 /* SPL */
 
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(140 << 10)
-
 #if defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC) || defined(CONFIG_MVEBU_SPL_BOOT_DEVICE_SATA)
 /* SPL related MMC defines */
 #ifdef CONFIG_SPL_BUILD
diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h
index 4bbc992c9f..c4671f1116 100644
--- a/include/configs/turris_omnia.h
+++ b/include/configs/turris_omnia.h
@@ -26,9 +26,6 @@
 	"fdt_high=0x10000000\0"		\
 	"initrd_high=0x10000000\0"
 
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(140 << 10)
-
 #ifdef CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC
 /* SPL related MMC defines */
 # ifdef CONFIG_SPL_BUILD
diff --git a/include/configs/x530.h b/include/configs/x530.h
index e66d8af802..d8fc3c13d0 100644
--- a/include/configs/x530.h
+++ b/include/configs/x530.h
@@ -64,9 +64,4 @@
 #define CONFIG_UBI_PART			user
 #define CONFIG_UBIFS_VOLUME		user
 
-/* SPL */
-
-/* Defines for SPL */
-#define CONFIG_SPL_SIZE			(140 << 10)
-
 #endif /* _CONFIG_X530_H */
-- 
2.39.5