blob: 86a667067de92cb81a9e25f1ff775ff0eaa90745 [file] [log] [blame]
Pascal Linderc0fed3a2019-06-18 13:27:47 +02001# 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
Pascal Linder707f06f2019-07-09 09:28:20 +020012menu "KM Board Setup"
13
14config KM_PNVRAM
15 hex "Pseudo RAM"
16 default 0x80000
Holger Brunck468ba8d2020-02-19 19:55:14 +010017 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020018 help
19 Start address of the pseudo non-volatile RAM for application.
20
21config KM_PHRAM
22 hex "Physical RAM"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000023 default 0x17F000 if ARM && !ARCH_LS1021A
24 default 0x100000 if PPC || ARCH_LS1021A
Holger Brunck468ba8d2020-02-19 19:55:14 +010025 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020026 help
27 Start address of the physical RAM, which is the mounted /var folder.
28
29config KM_RESERVED_PRAM
30 hex "Reserved RAM"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040031 default 0x801000 if ARCH_KIRKWOOD
Pascal Linder707f06f2019-07-09 09:28:20 +020032 default 0x0 if MPC83xx
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000033 default 0x1000 if MPC85xx || ARCH_LS1021A
Holger Brunck468ba8d2020-02-19 19:55:14 +010034 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020035 help
36 Reserved physical RAM area at the end of memory for special purposes.
37
38config KM_CRAMFS_ADDR
39 hex "CRAMFS Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000040 default 0x83000000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020041 default 0x3000000
Holger Brunck468ba8d2020-02-19 19:55:14 +010042 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020043 help
44 Start address of the CRAMFS containing the Linux kernel.
45
46config KM_KERNEL_ADDR
47 hex "Kernel Load Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000048 default 0x82000000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020049 default 0x2000000
Pascal Linder707f06f2019-07-09 09:28:20 +020050 help
51 Address where to load Linux kernel in RAM.
52
53config KM_FDT_ADDR
54 hex "FDT Load Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000055 default 0x82FC0000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020056 default 0x2FC0000
Pascal Linder707f06f2019-07-09 09:28:20 +020057 help
58 Address where to load flattened device tree in RAM.
59
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000060config 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
Pascal Linder707f06f2019-07-09 09:28:20 +020067config KM_CONSOLE_TTY
68 string "KM Console"
69 default "ttyS0"
70 help
71 TTY console to use on board.
72
Holger Brunck05577fa2019-11-26 19:09:01 +010073config KM_DEF_NETDEV
74 string "Default Netdevice"
75 default "eth0"
76 help
77 Default netdevice for debug interface
78
Pascal Linder707f06f2019-07-09 09:28:20 +020079config KM_COMMON_ETH_INIT
80 bool "Common Ethernet Initialization"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040081 default y if ARCH_KIRKWOOD || MPC83xx
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000082 default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +020083 help
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000084 Use the Ethernet initialization implemented in common code that
Pascal Linder707f06f2019-07-09 09:28:20 +020085 detects if a Piggy board is present.
86
Holger Brunck58e1fdb2019-11-25 17:24:13 +010087config PIGGY_MAC_ADDRESS_OFFSET
Pascal Linder707f06f2019-07-09 09:28:20 +020088 int "Piggy Address Offset"
89 default 0
90 help
91 MAC address offset for the Piggy board.
92
93config KM_MVEXTSW_ADDR
94 hex "Marvell Switch Address"
95 depends on MV88E6352_SWITCH
96 default 0x10
97 help
98 Address of external Marvell switch.
99
100config KM_IVM_BUS
101 int "IVM I2C Bus"
Holger Brunck468ba8d2020-02-19 19:55:14 +0100102 default 0 if ARCH_SOCFPGA
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000103 default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +0200104 default 2 if MPC83xx
105 help
106 Identifier number of I2C bus, where the inventory EEPROM is connected to.
107
108config SYS_IVM_EEPROM_ADR
109 hex "IVM I2C Address"
110 default 0x50
111 help
112 I2C address of the EEPROM containing the inventory.
113
114config SYS_IVM_EEPROM_MAX_LEN
115 hex "IVM Length"
116 default 0x400
117 help
118 Maximum length of inventory in EEPROM.
119
120config SYS_IVM_EEPROM_PAGE_LEN
121 hex "IVM Page Size"
122 default 0x100
123 help
124 Page size of inventory in EEPROM.
125
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200126source "board/keymile/km83xx/Kconfig"
Niel Fourie37bfd9c2021-01-21 13:19:20 +0100127source "board/keymile/kmcent2/Kconfig"
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200128source "board/keymile/kmp204x/Kconfig"
129source "board/keymile/km_arm/Kconfig"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000130source "board/keymile/pg-wcom-ls102xa/Kconfig"
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200131
Pascal Linder707f06f2019-07-09 09:28:20 +0200132endmenu
133
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200134endif