board/km: add support for seli8 design based on nxp ls102x

The SELI8 design is a new tdm service unit card for Hitachi-Powergrids
XMC and FOX product lines.

It is based on NXP LS1021 SoC and it provides following interfaces:
 - IFC interface for NOR, NAND and external FPGA's
 - 1 x RGMII ETH for debug purposes
 - 2 x SGMII ETH for management communication via back-plane
 - 1 x uQE HDLC for management communication via back-plane
 - 1 x I2C for peripheral devices
 - 1 x SPI for peripheral devices
 - 1 x UART for debug logging

It is foreseen that the design will be later re-used for another XMC and
FOX service cards with similar SoC requirements.

Signed-off-by: Rainer Boschung <rainer.boschung@hitachi-powergrids.com>
Signed-off-by: Matteo Ghidoni <matteo.ghidoni@hitachi-powergrids.com>
Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig
index 6b7377c..86a6670 100644
--- a/board/keymile/Kconfig
+++ b/board/keymile/Kconfig
@@ -20,8 +20,8 @@
 
 config KM_PHRAM
 	hex "Physical RAM"
-	default 0x17F000 if ARM
-	default 0x100000 if PPC
+	default 0x17F000 if ARM && !ARCH_LS1021A
+	default 0x100000 if PPC || ARCH_LS1021A
 	depends on !ARCH_SOCFPGA
 	help
 	  Start address of the physical RAM, which is the mounted /var folder.
@@ -30,13 +30,14 @@
 	hex "Reserved RAM"
 	default 0x801000 if ARCH_KIRKWOOD
 	default 0x0 if MPC83xx
-	default 0x1000 if MPC85xx
+	default 0x1000 if MPC85xx || ARCH_LS1021A
 	depends on !ARCH_SOCFPGA
 	help
 	  Reserved physical RAM area at the end of memory for special purposes.
 
 config KM_CRAMFS_ADDR
 	hex "CRAMFS Address"
+	default 0x83000000 if ARCH_LS1021A
 	default 0x3000000
 	depends on !ARCH_SOCFPGA
 	help
@@ -44,16 +45,25 @@
 
 config KM_KERNEL_ADDR
 	hex "Kernel Load Address"
+	default 0x82000000 if ARCH_LS1021A
 	default 0x2000000
 	help
 	  Address where to load Linux kernel in RAM.
 
 config KM_FDT_ADDR
 	hex "FDT Load Address"
+	default 0x82FC0000 if ARCH_LS1021A
 	default 0x2FC0000
 	help
 	  Address where to load flattened device tree in RAM.
 
+config SYS_PAX_BASE
+	hex "PAX IFC Base Address"
+	default 0x78000000
+	depends on ARCH_LS1021A
+	help
+	  IFC Base Address for PAXx FPGA.
+
 config KM_CONSOLE_TTY
 	string "KM Console"
 	default "ttyS0"
@@ -69,9 +79,9 @@
 config KM_COMMON_ETH_INIT
 	bool "Common Ethernet Initialization"
 	default y if ARCH_KIRKWOOD || MPC83xx
-	default n if MPC85xx || ARCH_SOCFPGA
+	default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
 	help
-	  Use the Ethernet initialization implemented in common code, which
+	  Use the Ethernet initialization implemented in common code that
 	  detects if a Piggy board is present.
 
 config PIGGY_MAC_ADDRESS_OFFSET
@@ -90,7 +100,7 @@
 config KM_IVM_BUS
 	int "IVM I2C Bus"
 	default 0 if ARCH_SOCFPGA
-	default 1 if ARCH_KIRKWOOD || MPC85xx
+	default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
 	default 2 if MPC83xx
 	help
 	  Identifier number of I2C bus, where the inventory EEPROM is connected to.
@@ -117,6 +127,7 @@
 source "board/keymile/kmcent2/Kconfig"
 source "board/keymile/kmp204x/Kconfig"
 source "board/keymile/km_arm/Kconfig"
+source "board/keymile/pg-wcom-ls102xa/Kconfig"
 
 endmenu