1# SPDX-License-Identifier: GPL-2.0+
2#
3# Copyright (C) 2019, Pascal Linder <pascal.linder@edu.hefr.ch>
4
5config VENDOR_KM
6	bool
7	help
8	  Selected by any KM board to have additional configurations.
9
10if VENDOR_KM
11
12menu "KM Board Setup"
13
14config KM_PNVRAM
15	hex "Pseudo RAM"
16	default 0x80000
17	depends on !ARCH_SOCFPGA
18	help
19	  Start address of the pseudo non-volatile RAM for application.
20
21config KM_PHRAM
22	hex "Physical RAM"
23	default 0x17F000 if ARM
24	default 0x100000 if PPC
25	depends on !ARCH_SOCFPGA
26	help
27	  Start address of the physical RAM, which is the mounted /var folder.
28
29config KM_RESERVED_PRAM
30	hex "Reserved RAM"
31	default 0x801000 if ARCH_KIRKWOOD
32	default 0x0 if MPC83xx
33	default 0x1000 if MPC85xx
34	depends on !ARCH_SOCFPGA
35	help
36	  Reserved physical RAM area at the end of memory for special purposes.
37
38config KM_CRAMFS_ADDR
39	hex "CRAMFS Address"
40	default 0x3000000
41	depends on !ARCH_SOCFPGA
42	help
43	  Start address of the CRAMFS containing the Linux kernel.
44
45config KM_KERNEL_ADDR
46	hex "Kernel Load Address"
47	default 0x2000000
48	help
49	  Address where to load Linux kernel in RAM.
50
51config KM_FDT_ADDR
52	hex "FDT Load Address"
53	default 0x2FC0000
54	help
55	  Address where to load flattened device tree in RAM.
56
57config KM_CONSOLE_TTY
58	string "KM Console"
59	default "ttyS0"
60	help
61	  TTY console to use on board.
62
63config KM_DEF_NETDEV
64	string "Default Netdevice"
65	default "eth0"
66	help
67	  Default netdevice for debug interface
68
69config KM_COMMON_ETH_INIT
70	bool "Common Ethernet Initialization"
71	default y if ARCH_KIRKWOOD || MPC83xx
72	default n if MPC85xx || ARCH_SOCFPGA
73	help
74	  Use the Ethernet initialization implemented in common code, which
75	  detects if a Piggy board is present.
76
77config PIGGY_MAC_ADDRESS_OFFSET
78	int "Piggy Address Offset"
79	default 0
80	help
81	  MAC address offset for the Piggy board.
82
83config KM_MVEXTSW_ADDR
84	hex "Marvell Switch Address"
85	depends on MV88E6352_SWITCH
86	default 0x10
87	help
88	  Address of external Marvell switch.
89
90config KM_IVM_BUS
91	int "IVM I2C Bus"
92	default 0 if ARCH_SOCFPGA
93	default 1 if ARCH_KIRKWOOD || MPC85xx
94	default 2 if MPC83xx
95	help
96	  Identifier number of I2C bus, where the inventory EEPROM is connected to.
97
98config SYS_IVM_EEPROM_ADR
99	hex "IVM I2C Address"
100	default 0x50
101	help
102	  I2C address of the EEPROM containing the inventory.
103
104config SYS_IVM_EEPROM_MAX_LEN
105	hex "IVM Length"
106	default 0x400
107	help
108	  Maximum length of inventory in EEPROM.
109
110config SYS_IVM_EEPROM_PAGE_LEN
111	hex "IVM Page Size"
112	default 0x100
113	help
114	  Page size of inventory in EEPROM.
115
116source "board/keymile/km83xx/Kconfig"
117source "board/keymile/kmcent2/Kconfig"
118source "board/keymile/kmp204x/Kconfig"
119source "board/keymile/km_arm/Kconfig"
120
121endmenu
122
123endif
124