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