diff mbox series

[U-Boot,08/16] gdsys: mpc8308: Add FPGA flavor option

Message ID 20190329091819.8345-8-mario.six@gdsys.cc
State Accepted
Commit cda8e1f6ca514effb229cad74719fa7b5bf8cd7b
Delegated to: Mario Six
Headers show
Series [U-Boot,01/16] gdsys: phy: Adapt fixup_88e1518() to latest Release Notes | expand

Commit Message

Mario Six March 29, 2019, 9:18 a.m. UTC
More recent versions of IHS FPGAs feature a different memory layout.

Add a Kconfig option to differentiate between the legacy layout, and the
new layout (which is used on the upcoming "Gazerbeam" and later boards).

Signed-off-by: Mario Six <mario.six@gdsys.cc>
---
 board/gdsys/mpc8308/Kconfig | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
diff mbox series

Patch

diff --git a/board/gdsys/mpc8308/Kconfig b/board/gdsys/mpc8308/Kconfig
index 222ab0d20a3..e6a47960547 100644
--- a/board/gdsys/mpc8308/Kconfig
+++ b/board/gdsys/mpc8308/Kconfig
@@ -71,7 +71,27 @@  config GDSYS_LEGACY_DRIVERS
 
 endif
 
+if TARGET_HRCON || TARGET_STRIDER
+
+choice
+	prompt "FPGA flavor selection"
+
+config SYS_FPGA_FLAVOR_LEGACY
+	bool "Legacy flavor"
+	help
+	  This enables support for the gdsys pre-Gazerbeam FPGA memory layout.
+
+config SYS_FPGA_FLAVOR_GAZERBEAM
+	bool "Gazerbeam flavor"
+	help
+	  This enables support for the gdsys FPGA memory layout of the
+	  Gazerbeam board.
+
+endchoice
+
 config CMD_IOLOOP
 	bool "Enable 'ioloop' and 'ioreflect' commands"
 	help
 	  These commands provide FPGA tests.
+
+endif