Pascal Linder | c0fed3a | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # Copyright (C) 2019, Pascal Linder <pascal.linder@edu.hefr.ch> |
| 4 | |
| 5 | config VENDOR_KM |
| 6 | bool |
| 7 | help |
| 8 | Selected by any KM board to have additional configurations. |
| 9 | |
| 10 | if VENDOR_KM |
| 11 | |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 12 | menu "KM Board Setup" |
| 13 | |
Tom Rini | b7fbdc5 | 2022-05-12 16:12:16 -0400 | [diff] [blame^] | 14 | config HUSH_INIT_VAR |
| 15 | def_bool y |
| 16 | |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 17 | config KM_PNVRAM |
| 18 | hex "Pseudo RAM" |
| 19 | default 0x80000 |
Holger Brunck | 468ba8d | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 20 | depends on !ARCH_SOCFPGA |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 21 | help |
| 22 | Start address of the pseudo non-volatile RAM for application. |
| 23 | |
| 24 | config KM_PHRAM |
| 25 | hex "Physical RAM" |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 26 | default 0x17F000 if ARM && !ARCH_LS1021A |
| 27 | default 0x100000 if PPC || ARCH_LS1021A |
Holger Brunck | 468ba8d | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 28 | depends on !ARCH_SOCFPGA |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 29 | help |
| 30 | Start address of the physical RAM, which is the mounted /var folder. |
| 31 | |
| 32 | config KM_RESERVED_PRAM |
| 33 | hex "Reserved RAM" |
Trevor Woerner | bb0fb4c | 2020-05-06 08:02:40 -0400 | [diff] [blame] | 34 | default 0x801000 if ARCH_KIRKWOOD |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 35 | default 0x0 if MPC83xx |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 36 | default 0x1000 if MPC85xx || ARCH_LS1021A |
Holger Brunck | 468ba8d | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 37 | depends on !ARCH_SOCFPGA |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 38 | help |
| 39 | Reserved physical RAM area at the end of memory for special purposes. |
| 40 | |
| 41 | config KM_CRAMFS_ADDR |
| 42 | hex "CRAMFS Address" |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 43 | default 0x83000000 if ARCH_LS1021A |
Holger Brunck | 6a0952a | 2020-10-09 17:21:32 +0200 | [diff] [blame] | 44 | default 0x3000000 |
Holger Brunck | 468ba8d | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 45 | depends on !ARCH_SOCFPGA |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 46 | help |
| 47 | Start address of the CRAMFS containing the Linux kernel. |
| 48 | |
| 49 | config KM_KERNEL_ADDR |
| 50 | hex "Kernel Load Address" |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 51 | default 0x82000000 if ARCH_LS1021A |
Holger Brunck | 6a0952a | 2020-10-09 17:21:32 +0200 | [diff] [blame] | 52 | default 0x2000000 |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 53 | help |
| 54 | Address where to load Linux kernel in RAM. |
| 55 | |
| 56 | config KM_FDT_ADDR |
| 57 | hex "FDT Load Address" |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 58 | default 0x82FC0000 if ARCH_LS1021A |
Holger Brunck | 6a0952a | 2020-10-09 17:21:32 +0200 | [diff] [blame] | 59 | default 0x2FC0000 |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 60 | help |
| 61 | Address where to load flattened device tree in RAM. |
| 62 | |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 63 | config SYS_PAX_BASE |
| 64 | hex "PAX IFC Base Address" |
| 65 | default 0x78000000 |
| 66 | depends on ARCH_LS1021A |
| 67 | help |
| 68 | IFC Base Address for PAXx FPGA. |
| 69 | |
Aleksandar Gerasimovski | a7fd6fa | 2021-06-08 14:16:28 +0000 | [diff] [blame] | 70 | config SYS_CLIPS_BASE |
| 71 | hex "CLIPS IFC Base Address" |
| 72 | default 0x78000000 |
| 73 | depends on ARCH_LS1021A |
| 74 | help |
| 75 | IFC Base Address for CLIPS FPGA. |
| 76 | |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 77 | config KM_CONSOLE_TTY |
| 78 | string "KM Console" |
| 79 | default "ttyS0" |
| 80 | help |
| 81 | TTY console to use on board. |
| 82 | |
Holger Brunck | 05577fa | 2019-11-26 19:09:01 +0100 | [diff] [blame] | 83 | config KM_DEF_NETDEV |
| 84 | string "Default Netdevice" |
| 85 | default "eth0" |
| 86 | help |
| 87 | Default netdevice for debug interface |
| 88 | |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 89 | config KM_COMMON_ETH_INIT |
| 90 | bool "Common Ethernet Initialization" |
Trevor Woerner | bb0fb4c | 2020-05-06 08:02:40 -0400 | [diff] [blame] | 91 | default y if ARCH_KIRKWOOD || MPC83xx |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 92 | default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 93 | help |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 94 | Use the Ethernet initialization implemented in common code that |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 95 | detects if a Piggy board is present. |
| 96 | |
Holger Brunck | 58e1fdb | 2019-11-25 17:24:13 +0100 | [diff] [blame] | 97 | config PIGGY_MAC_ADDRESS_OFFSET |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 98 | int "Piggy Address Offset" |
| 99 | default 0 |
| 100 | help |
| 101 | MAC address offset for the Piggy board. |
| 102 | |
| 103 | config KM_MVEXTSW_ADDR |
| 104 | hex "Marvell Switch Address" |
| 105 | depends on MV88E6352_SWITCH |
| 106 | default 0x10 |
| 107 | help |
| 108 | Address of external Marvell switch. |
| 109 | |
| 110 | config KM_IVM_BUS |
| 111 | int "IVM I2C Bus" |
Holger Brunck | 468ba8d | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 112 | default 0 if ARCH_SOCFPGA |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 113 | default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 114 | default 2 if MPC83xx |
| 115 | help |
| 116 | Identifier number of I2C bus, where the inventory EEPROM is connected to. |
| 117 | |
| 118 | config SYS_IVM_EEPROM_ADR |
| 119 | hex "IVM I2C Address" |
| 120 | default 0x50 |
| 121 | help |
| 122 | I2C address of the EEPROM containing the inventory. |
| 123 | |
| 124 | config SYS_IVM_EEPROM_MAX_LEN |
| 125 | hex "IVM Length" |
| 126 | default 0x400 |
| 127 | help |
| 128 | Maximum length of inventory in EEPROM. |
| 129 | |
| 130 | config SYS_IVM_EEPROM_PAGE_LEN |
| 131 | hex "IVM Page Size" |
| 132 | default 0x100 |
| 133 | help |
| 134 | Page size of inventory in EEPROM. |
| 135 | |
Aleksandar Gerasimovski | efe1929 | 2021-12-10 11:07:53 +0100 | [diff] [blame] | 136 | config PG_WCOM_UBOOT_UPDATE_SUPPORTED |
| 137 | bool "Enable U-boot Field Fail-Safe Update Functionality" |
| 138 | default n |
| 139 | help |
| 140 | Indicates that field fail-safe u-boot update is supported. |
| 141 | This functionality works only for designs that are booting |
| 142 | from parallel NOR flash. |
| 143 | |
| 144 | config PG_WCOM_UBOOT_BOOTPACKAGE |
| 145 | bool "U-boot Is Part Of Factory Boot-Package Image" |
| 146 | default n |
| 147 | help |
| 148 | Indicates that u-boot will be a part of the factory programmed |
| 149 | boot-package image. |
| 150 | Has to be set for original u-boot programmed at factory. |
| 151 | |
| 152 | config PG_WCOM_UBOOT_UPDATE_TEXT_BASE |
| 153 | hex "Text Base For U-boot Programmed Outside Factory" |
| 154 | default 0xFFFFFFFF |
| 155 | help |
| 156 | Text base of an updated u-boot that is not factory programmed but |
| 157 | later when the unit is rolled out on the field. |
| 158 | Has to be set for original u-boot programmed at factory. |
| 159 | |
| 160 | config PG_WCOM_UBOOT_UPDATE |
| 161 | bool "U-boot Is Part Of Factory Boot-Package Image" |
| 162 | default n |
| 163 | help |
| 164 | Indicates that u-boot will be a part of the embedded software and |
| 165 | programmed at field. |
| 166 | Has to be set for updated u-boot version programmed at field. |
| 167 | |
Pascal Linder | c0fed3a | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 168 | source "board/keymile/km83xx/Kconfig" |
Niel Fourie | 37bfd9c | 2021-01-21 13:19:20 +0100 | [diff] [blame] | 169 | source "board/keymile/kmcent2/Kconfig" |
Pascal Linder | c0fed3a | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 170 | source "board/keymile/km_arm/Kconfig" |
Aleksandar Gerasimovski | 91ee547 | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 171 | source "board/keymile/pg-wcom-ls102xa/Kconfig" |
Pascal Linder | c0fed3a | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 172 | |
Pascal Linder | 707f06f | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 173 | endmenu |
| 174 | |
Pascal Linder | c0fed3a | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 175 | endif |