blob: 46d08971087d4b08a94f06b35995693869afb360 [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"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040037 default 0x801000 if ARCH_KIRKWOOD
Pascal Linder707f06f2019-07-09 09:28:20 +020038 default 0x0 if MPC83xx
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000039 default 0x1000 if MPC85xx || ARCH_LS1021A
Holger Brunck468ba8d2020-02-19 19:55:14 +010040 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020041 help
42 Reserved physical RAM area at the end of memory for special purposes.
43
44config KM_CRAMFS_ADDR
45 hex "CRAMFS Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000046 default 0x83000000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020047 default 0x3000000
Holger Brunck468ba8d2020-02-19 19:55:14 +010048 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020049 help
50 Start address of the CRAMFS containing the Linux kernel.
51
52config KM_KERNEL_ADDR
53 hex "Kernel Load Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000054 default 0x82000000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020055 default 0x2000000
Pascal Linder707f06f2019-07-09 09:28:20 +020056 help
57 Address where to load Linux kernel in RAM.
58
59config KM_FDT_ADDR
60 hex "FDT Load Address"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000061 default 0x82FC0000 if ARCH_LS1021A
Holger Brunck6a0952a2020-10-09 17:21:32 +020062 default 0x2FC0000
Pascal Linder707f06f2019-07-09 09:28:20 +020063 help
64 Address where to load flattened device tree in RAM.
65
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000066config SYS_PAX_BASE
67 hex "PAX IFC Base Address"
68 default 0x78000000
69 depends on ARCH_LS1021A
70 help
71 IFC Base Address for PAXx FPGA.
72
Aleksandar Gerasimovskia7fd6fa2021-06-08 14:16:28 +000073config SYS_CLIPS_BASE
74 hex "CLIPS IFC Base Address"
75 default 0x78000000
76 depends on ARCH_LS1021A
77 help
78 IFC Base Address for CLIPS FPGA.
79
Pascal Linder707f06f2019-07-09 09:28:20 +020080config KM_COMMON_ETH_INIT
81 bool "Common Ethernet Initialization"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040082 default y if ARCH_KIRKWOOD || MPC83xx
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000083 default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +020084 help
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +000085 Use the Ethernet initialization implemented in common code that
Pascal Linder707f06f2019-07-09 09:28:20 +020086 detects if a Piggy board is present.
87
Holger Brunck58e1fdb2019-11-25 17:24:13 +010088config PIGGY_MAC_ADDRESS_OFFSET
Pascal Linder707f06f2019-07-09 09:28:20 +020089 int "Piggy Address Offset"
90 default 0
91 help
92 MAC address offset for the Piggy board.
93
94config KM_MVEXTSW_ADDR
95 hex "Marvell Switch Address"
96 depends on MV88E6352_SWITCH
97 default 0x10
98 help
99 Address of external Marvell switch.
100
101config KM_IVM_BUS
102 int "IVM I2C Bus"
Holger Brunck468ba8d2020-02-19 19:55:14 +0100103 default 0 if ARCH_SOCFPGA
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000104 default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
Pascal Linder707f06f2019-07-09 09:28:20 +0200105 default 2 if MPC83xx
106 help
107 Identifier number of I2C bus, where the inventory EEPROM is connected to.
108
109config SYS_IVM_EEPROM_ADR
110 hex "IVM I2C Address"
111 default 0x50
112 help
113 I2C address of the EEPROM containing the inventory.
114
115config SYS_IVM_EEPROM_MAX_LEN
116 hex "IVM Length"
117 default 0x400
118 help
119 Maximum length of inventory in EEPROM.
120
121config SYS_IVM_EEPROM_PAGE_LEN
122 hex "IVM Page Size"
123 default 0x100
124 help
125 Page size of inventory in EEPROM.
126
Aleksandar Gerasimovskiefe19292021-12-10 11:07:53 +0100127config PG_WCOM_UBOOT_UPDATE_SUPPORTED
128 bool "Enable U-boot Field Fail-Safe Update Functionality"
129 default n
130 help
131 Indicates that field fail-safe u-boot update is supported.
132 This functionality works only for designs that are booting
133 from parallel NOR flash.
134
135config PG_WCOM_UBOOT_BOOTPACKAGE
136 bool "U-boot Is Part Of Factory Boot-Package Image"
137 default n
138 help
139 Indicates that u-boot will be a part of the factory programmed
140 boot-package image.
141 Has to be set for original u-boot programmed at factory.
142
143config PG_WCOM_UBOOT_UPDATE_TEXT_BASE
144 hex "Text Base For U-boot Programmed Outside Factory"
145 default 0xFFFFFFFF
146 help
147 Text base of an updated u-boot that is not factory programmed but
148 later when the unit is rolled out on the field.
149 Has to be set for original u-boot programmed at factory.
150
151config PG_WCOM_UBOOT_UPDATE
152 bool "U-boot Is Part Of Factory Boot-Package Image"
153 default n
154 help
155 Indicates that u-boot will be a part of the embedded software and
156 programmed at field.
157 Has to be set for updated u-boot version programmed at field.
158
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200159source "board/keymile/km83xx/Kconfig"
Niel Fourie37bfd9c2021-01-21 13:19:20 +0100160source "board/keymile/kmcent2/Kconfig"
Aleksandar Gerasimovski91ee5472021-02-22 18:18:11 +0000161source "board/keymile/pg-wcom-ls102xa/Kconfig"
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200162
Pascal Linder707f06f2019-07-09 09:28:20 +0200163endmenu
164
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200165endif