Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and
CONFIG_SYS_FPGA1_SIZE to Kconfig.

Signed-off-by: Mario Six <mario....@gdsys.cc>
---
 board/gdsys/mpc8308/Kconfig | 22 ++++++++++++++++++++++
 include/configs/hrcon.h     |  8 --------
 include/configs/strider.h   |  8 --------
 3 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/board/gdsys/mpc8308/Kconfig b/board/gdsys/mpc8308/Kconfig
index 9d99f686923..cad458ac710 100644
--- a/board/gdsys/mpc8308/Kconfig
+++ b/board/gdsys/mpc8308/Kconfig
@@ -4,6 +4,28 @@ config GDSYS_LEGACY_OSD_CMDS
          Use the 'osdw', 'osdp', and 'osdsize' legacy commands required by
          gdsys devices.
 
+config SYS_FPGA0_BASE
+       hex
+       default E0600000
+       help
+         The base address of the first FPGA's register map.
+
+config SYS_FPGA0_SIZE
+       hex
+       default 1
+       help
+         The base address of the first FPGA's register map.
+
+config SYS_FPGA1_BASE
+       hex
+       help
+         The base address of the second FPGA's register map.
+
+config SYS_FPGA1_SIZE
+       hex
+       help
+         The base address of the second FPGA's register map.
+
 if TARGET_HRCON
 
 config SYS_BOARD
diff --git a/include/configs/hrcon.h b/include/configs/hrcon.h
index 8029ae9dd75..6e6c1714ce9 100644
--- a/include/configs/hrcon.h
+++ b/include/configs/hrcon.h
@@ -129,14 +129,6 @@
 #define CONFIG_SYS_FLASH_ERASE_TOUT    60000 /* Flash Erase Timeout (ms) */
 #define CONFIG_SYS_FLASH_WRITE_TOUT    500 /* Flash Write Timeout (ms) */
 
-/*
- * FPGA
- */
-#define CONFIG_SYS_FPGA0_BASE          0xE0600000
-#define CONFIG_SYS_FPGA0_SIZE          1 /* FPGA size is 1M */
-
-
-#define CONFIG_SYS_FPGA_BASE(k)                CONFIG_SYS_FPGA0_BASE
 #define CONFIG_SYS_FPGA_DONE(k)                0x0010
 
 #define CONFIG_SYS_FPGA_COUNT          1
diff --git a/include/configs/strider.h b/include/configs/strider.h
index 22d255aabb8..8b942e3446a 100644
--- a/include/configs/strider.h
+++ b/include/configs/strider.h
@@ -127,14 +127,6 @@
 #define CONFIG_SYS_FLASH_ERASE_TOUT    60000 /* Flash Erase Timeout (ms) */
 #define CONFIG_SYS_FLASH_WRITE_TOUT    500 /* Flash Write Timeout (ms) */
 
-/*
- * FPGA
- */
-#define CONFIG_SYS_FPGA0_BASE          0xE0600000
-#define CONFIG_SYS_FPGA0_SIZE          1 /* FPGA size is 1M */
-
-
-#define CONFIG_SYS_FPGA_BASE(k)                CONFIG_SYS_FPGA0_BASE
 #define CONFIG_SYS_FPGA_DONE(k)                0x0010
 
 #define CONFIG_SYS_FPGA_COUNT          1
-- 
2.20.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to