summaryrefslogtreecommitdiff
path: root/board/keymile
diff options
context:
space:
mode:
authorPascal Linder <pascal.linder@edu.hefr.ch>2019-07-09 09:28:20 +0200
committerStefan Roese <sr@denx.de>2019-08-12 09:12:38 +0200
commit707f06f331096161d2ece57634cb816e46d1878a (patch)
tree6b19cd410b078db8eae7db96d29318bd9d87ec23 /board/keymile
parentfeb5a02f869d5678190dfc915ef6c2781b4f7a6c (diff)
km: add Kconfig menus for KM boards
To execute the conversion away from board specific header files, Kconfig menus have been implemented for all KM boards and additionally for those having an ARM architecture. For the moment, the preprocessor definitions stay in the headers. The boolean types, however, needed a modification (#define CONFIG_* 1). The default configuration files of some boards required an update in order to not change the currently defined values of the configurations. Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch> Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/keymile')
-rw-r--r--board/keymile/Kconfig101
-rw-r--r--board/keymile/km_arm/Kconfig29
2 files changed, 130 insertions, 0 deletions
diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig
index e30d64818c..acaa9289f7 100644
--- a/board/keymile/Kconfig
+++ b/board/keymile/Kconfig
@@ -9,8 +9,109 @@ config VENDOR_KM
if VENDOR_KM
+menu "KM Board Setup"
+
+config KM_PNVRAM
+ hex "Pseudo RAM"
+ default 0x80000
+ help
+ Start address of the pseudo non-volatile RAM for application.
+
+config KM_PHRAM
+ hex "Physical RAM"
+ default 0x17F000 if ARM
+ default 0x100000 if PPC
+ help
+ Start address of the physical RAM, which is the mounted /var folder.
+
+config KM_RESERVED_PRAM
+ hex "Reserved RAM"
+ default 0x801000 if KIRKWOOD
+ default 0x0 if MPC83xx
+ default 0x1000 if MPC85xx
+ help
+ Reserved physical RAM area at the end of memory for special purposes.
+
+config KM_CRAMFS_ADDR
+ hex "CRAMFS Address"
+ default 0x2400000 if KIRKWOOD
+ default 0xC00000 if MPC83xx
+ default 0x2000000 if MPC85xx
+ help
+ Start address of the CRAMFS containing the Linux kernel.
+
+config KM_KERNEL_ADDR
+ hex "Kernel Load Address"
+ default 0x2000000 if KIRKWOOD
+ default 0x400000 if MPC83xx
+ default 0x1000000 if MPC85xx
+ help
+ Address where to load Linux kernel in RAM.
+
+config KM_FDT_ADDR
+ hex "FDT Load Address"
+ default 0x23E0000 if KIRKWOOD
+ default 0xB80000 if MPC83xx
+ default 0x1F80000 if MPC85xx
+ help
+ Address where to load flattened device tree in RAM.
+
+config KM_CONSOLE_TTY
+ string "KM Console"
+ default "ttyS0"
+ help
+ TTY console to use on board.
+
+config KM_COMMON_ETH_INIT
+ bool "Common Ethernet Initialization"
+ default y if KIRKWOOD || MPC83xx
+ default n if MPC85xx
+ help
+ Use the Ethernet initialization implemented in common code, which
+ detects if a Piggy board is present.
+
+config PIGGY_MAC_ADRESS_OFFSET
+ int "Piggy Address Offset"
+ default 0
+ help
+ MAC address offset for the Piggy board.
+
+config KM_MVEXTSW_ADDR
+ hex "Marvell Switch Address"
+ depends on MV88E6352_SWITCH
+ default 0x10
+ help
+ Address of external Marvell switch.
+
+config KM_IVM_BUS
+ int "IVM I2C Bus"
+ default 1 if KIRKWOOD || MPC85xx
+ default 2 if MPC83xx
+ help
+ Identifier number of I2C bus, where the inventory EEPROM is connected to.
+
+config SYS_IVM_EEPROM_ADR
+ hex "IVM I2C Address"
+ default 0x50
+ help
+ I2C address of the EEPROM containing the inventory.
+
+config SYS_IVM_EEPROM_MAX_LEN
+ hex "IVM Length"
+ default 0x400
+ help
+ Maximum length of inventory in EEPROM.
+
+config SYS_IVM_EEPROM_PAGE_LEN
+ hex "IVM Page Size"
+ default 0x100
+ help
+ Page size of inventory in EEPROM.
+
source "board/keymile/km83xx/Kconfig"
source "board/keymile/kmp204x/Kconfig"
source "board/keymile/km_arm/Kconfig"
+endmenu
+
endif
diff --git a/board/keymile/km_arm/Kconfig b/board/keymile/km_arm/Kconfig
index 19c1db3bc2..7da052f4c4 100644
--- a/board/keymile/km_arm/Kconfig
+++ b/board/keymile/km_arm/Kconfig
@@ -1,3 +1,32 @@
+menu "KM ARM Options"
+ depends on ARM
+
+config KM_FPGA_CONFIG
+ bool "FPGA Configuration"
+ default n
+ help
+ Include capability to change FPGA configuration.
+
+config KM_ENV_IS_IN_SPI_NOR
+ bool "Environment in SPI NOR"
+ default n
+ help
+ Put the U-Boot environment in the SPI NOR flash.
+
+config KM_PIGGY4_88E6061
+ bool "Piggy via Switch 88E6061"
+ default n
+ help
+ The Piggy4 board is connected via a Marvell 88E6061 switch.
+
+config KM_PIGGY4_88E6352
+ bool "Piggy via Switch 88E6352"
+ default n
+ help
+ The Piggy4 board is connected via a Marvell 88E6352 switch.
+
+endmenu
+
if TARGET_KM_KIRKWOOD
config SYS_BOARD