blob: e5d7c80a869dff2f5a860d048123cae14fc2a632 [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
Tom Rini9244b2f2022-10-28 20:26:54 -040014config SYS_I2C_INIT_BOARD
15 def_bool y if ARM
16
Tom Rinib7fbdc52022-05-12 16:12:16 -040017config HUSH_INIT_VAR
18 def_bool y
19
Pascal Linder707f06f2019-07-09 09:28:20 +020020config KM_PNVRAM
21 hex "Pseudo RAM"
22 default 0x80000
Holger Brunck468ba8d2020-02-19 19:55:14 +010023 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020024 help
25 Start address of the pseudo non-volatile RAM for application.
26
27config KM_PHRAM
28 hex "Physical RAM"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000029 default 0x17F000 if ARM && !ARCH_LS1021A
30 default 0x100000 if PPC || ARCH_LS1021A
Holger Brunck468ba8d2020-02-19 19:55:14 +010031 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020032 help
33 Start address of the physical RAM, which is the mounted /var folder.
34
35config KM_RESERVED_PRAM
36 hex "Reserved RAM"
Pascal Linder707f06f2019-07-09 09:28:20 +020037 default 0x0 if MPC83xx
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000038 default 0x1000 if MPC85xx || ARCH_LS1021A
Holger Brunck468ba8d2020-02-19 19:55:14 +010039 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020040 help
41 Reserved physical RAM area at the end of memory for special purposes.
42
43config KM_CRAMFS_ADDR
44 hex "CRAMFS Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000045 default 0x83000000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020046 default 0x3000000
Holger Brunck468ba8d2020-02-19 19:55:14 +010047 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020048 help
49 Start address of the CRAMFS containing the Linux kernel.
50
51config KM_KERNEL_ADDR
52 hex "Kernel Load Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000053 default 0x82000000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020054 default 0x2000000
Pascal Linder707f06f2019-07-09 09:28:20 +020055 help
56 Address where to load Linux kernel in RAM.
57
58config KM_FDT_ADDR
59 hex "FDT Load Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000060 default 0x82FC0000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020061 default 0x2FC0000
Pascal Linder707f06f2019-07-09 09:28:20 +020062 help
63 Address where to load flattened device tree in RAM.
64
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000065config SYS_PAX_BASE
66 hex "PAX IFC Base Address"
67 default 0x78000000
68 depends on ARCH_LS1021A
69 help
70 IFC Base Address for PAXx FPGA.
71
Aleksandar Gerasimovskia7fd6fa2021-06-08 14:16:28 +000072config SYS_CLIPS_BASE
73 hex "CLIPS IFC Base Address"
74 default 0x78000000
75 depends on ARCH_LS1021A
76 help
77 IFC Base Address for CLIPS FPGA.
78
Pascal Linder707f06f2019-07-09 09:28:20 +020079config KM_COMMON_ETH_INIT
80 bool "Common Ethernet Initialization"
Holger Brunck400d1a72022-12-02 18:22:41 +010081 default y if 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
Holger Brunck31464f92022-12-02 18:22:42 +0100103 default 1 if PPC || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +0200104 help
105 Identifier number of I2C bus, where the inventory EEPROM is connected to.
106
107config SYS_IVM_EEPROM_ADR
108 hex "IVM I2C Address"
109 default 0x50
110 help
111 I2C address of the EEPROM containing the inventory.
112
113config SYS_IVM_EEPROM_MAX_LEN
114 hex "IVM Length"
115 default 0x400
116 help
117 Maximum length of inventory in EEPROM.
118
119config SYS_IVM_EEPROM_PAGE_LEN
120 hex "IVM Page Size"
121 default 0x100
122 help
123 Page size of inventory in EEPROM.
124
Aleksandar Gerasimovskiefe19292021-12-10 11:07:53 +0100125config PG_WCOM_UBOOT_UPDATE_SUPPORTED
126 bool "Enable U-boot Field Fail-Safe Update Functionality"
127 default n
128 help
129 Indicates that field fail-safe u-boot update is supported.
130 This functionality works only for designs that are booting
131 from parallel NOR flash.
132
133config PG_WCOM_UBOOT_BOOTPACKAGE
134 bool "U-boot Is Part Of Factory Boot-Package Image"
135 default n
136 help
137 Indicates that u-boot will be a part of the factory programmed
138 boot-package image.
139 Has to be set for original u-boot programmed at factory.
140
141config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
142 hex "Text Base For U-boot Programmed Outside Factory"
143 default 0xFFFFFFFF
144 help
145 Text base of an updated u-boot that is not factory programmed but
146 later when the unit is rolled out on the field.
147 Has to be set for original u-boot programmed at factory.
148
149config PG_WCOM_UBOOT_UPDATE
150 bool "U-boot Is Part Of Factory Boot-Package Image"
151 default n
152 help
153 Indicates that u-boot will be a part of the embedded software and
154 programmed at field.
155 Has to be set for updated u-boot version programmed at field.
156
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200157source "board/keymile/km83xx/Kconfig"
Niel Fourie37bfd9c2021-01-21 13:19:20 +0100158source "board/keymile/kmcent2/Kconfig"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000159source "board/keymile/pg-wcom-ls102xa/Kconfig"
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200160
Pascal Linder707f06f2019-07-09 09:28:20 +0200161endmenu
162
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200163endif