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 && !ARCH_LS1021A
24	default 0x100000 if PPC || ARCH_LS1021A
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 || ARCH_LS1021A
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 0x83000000 if ARCH_LS1021A
41	default 0x3000000
42	depends on !ARCH_SOCFPGA
43	help
44	  Start address of the CRAMFS containing the Linux kernel.
45
46config KM_KERNEL_ADDR
47	hex "Kernel Load Address"
48	default 0x82000000 if ARCH_LS1021A
49	default 0x2000000
50	help
51	  Address where to load Linux kernel in RAM.
52
53config KM_FDT_ADDR
54	hex "FDT Load Address"
55	default 0x82FC0000 if ARCH_LS1021A
56	default 0x2FC0000
57	help
58	  Address where to load flattened device tree in RAM.
59
60config SYS_PAX_BASE
61	hex "PAX IFC Base Address"
62	default 0x78000000
63	depends on ARCH_LS1021A
64	help
65	  IFC Base Address for PAXx FPGA.
66
67config SYS_CLIPS_BASE
68	hex "CLIPS IFC Base Address"
69	default 0x78000000
70	depends on ARCH_LS1021A
71	help
72	  IFC Base Address for CLIPS FPGA.
73
74config KM_CONSOLE_TTY
75	string "KM Console"
76	default "ttyS0"
77	help
78	  TTY console to use on board.
79
80config KM_DEF_NETDEV
81	string "Default Netdevice"
82	default "eth0"
83	help
84	  Default netdevice for debug interface
85
86config KM_COMMON_ETH_INIT
87	bool "Common Ethernet Initialization"
88	default y if ARCH_KIRKWOOD || MPC83xx
89	default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
90	help
91	  Use the Ethernet initialization implemented in common code that
92	  detects if a Piggy board is present.
93
94config PIGGY_MAC_ADDRESS_OFFSET
95	int "Piggy Address Offset"
96	default 0
97	help
98	  MAC address offset for the Piggy board.
99
100config KM_MVEXTSW_ADDR
101	hex "Marvell Switch Address"
102	depends on MV88E6352_SWITCH
103	default 0x10
104	help
105	  Address of external Marvell switch.
106
107config KM_IVM_BUS
108	int "IVM I2C Bus"
109	default 0 if ARCH_SOCFPGA
110	default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
111	default 2 if MPC83xx
112	help
113	  Identifier number of I2C bus, where the inventory EEPROM is connected to.
114
115config SYS_IVM_EEPROM_ADR
116	hex "IVM I2C Address"
117	default 0x50
118	help
119	  I2C address of the EEPROM containing the inventory.
120
121config SYS_IVM_EEPROM_MAX_LEN
122	hex "IVM Length"
123	default 0x400
124	help
125	  Maximum length of inventory in EEPROM.
126
127config SYS_IVM_EEPROM_PAGE_LEN
128	hex "IVM Page Size"
129	default 0x100
130	help
131	  Page size of inventory in EEPROM.
132
133source "board/keymile/km83xx/Kconfig"
134source "board/keymile/kmcent2/Kconfig"
135source "board/keymile/km_arm/Kconfig"
136source "board/keymile/pg-wcom-ls102xa/Kconfig"
137
138endmenu
139
140endif
141