blob: 863c07db47d5feb73bc27d0e2440f35adfac90e0 [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
Aleksandar Gerasimovskia7fd6fa2021-06-08 14:16:28 +000067config 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
Pascal Linder707f06f2019-07-09 09:28:20 +020074config KM_CONSOLE_TTY
75 string "KM Console"
76 default "ttyS0"
77 help
78 TTY console to use on board.
79
Holger Brunck05577fa2019-11-26 19:09:01 +010080config KM_DEF_NETDEV
81 string "Default Netdevice"
82 default "eth0"
83 help
84 Default netdevice for debug interface
85
Pascal Linder707f06f2019-07-09 09:28:20 +020086config KM_COMMON_ETH_INIT
87 bool "Common Ethernet Initialization"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040088 default y if ARCH_KIRKWOOD || MPC83xx
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000089 default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +020090 help
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000091 Use the Ethernet initialization implemented in common code that
Pascal Linder707f06f2019-07-09 09:28:20 +020092 detects if a Piggy board is present.
93
Holger Brunck58e1fdb2019-11-25 17:24:13 +010094config PIGGY_MAC_ADDRESS_OFFSET
Pascal Linder707f06f2019-07-09 09:28:20 +020095 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"
Holger Brunck468ba8d2020-02-19 19:55:14 +0100109 default 0 if ARCH_SOCFPGA
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000110 default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +0200111 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
Aleksandar Gerasimovskiefe19292021-12-10 11:07:53 +0100133config PG_WCOM_UBOOT_UPDATE_SUPPORTED
134 bool "Enable U-boot Field Fail-Safe Update Functionality"
135 default n
136 help
137 Indicates that field fail-safe u-boot update is supported.
138 This functionality works only for designs that are booting
139 from parallel NOR flash.
140
141config PG_WCOM_UBOOT_BOOTPACKAGE
142 bool "U-boot Is Part Of Factory Boot-Package Image"
143 default n
144 help
145 Indicates that u-boot will be a part of the factory programmed
146 boot-package image.
147 Has to be set for original u-boot programmed at factory.
148
149config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
150 hex "Text Base For U-boot Programmed Outside Factory"
151 default 0xFFFFFFFF
152 help
153 Text base of an updated u-boot that is not factory programmed but
154 later when the unit is rolled out on the field.
155 Has to be set for original u-boot programmed at factory.
156
157config PG_WCOM_UBOOT_UPDATE
158 bool "U-boot Is Part Of Factory Boot-Package Image"
159 default n
160 help
161 Indicates that u-boot will be a part of the embedded software and
162 programmed at field.
163 Has to be set for updated u-boot version programmed at field.
164
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200165source "board/keymile/km83xx/Kconfig"
Niel Fourie37bfd9c2021-01-21 13:19:20 +0100166source "board/keymile/kmcent2/Kconfig"
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200167source "board/keymile/km_arm/Kconfig"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000168source "board/keymile/pg-wcom-ls102xa/Kconfig"
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200169
Pascal Linder707f06f2019-07-09 09:28:20 +0200170endmenu
171
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200172endif