Pascal Linder | 305329f | 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 | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 12 | menu "KM Board Setup" |
| 13 | |
Tom Rini | 6bb84a7 | 2022-05-12 16:12:16 -0400 | [diff] [blame] | 14 | config HUSH_INIT_VAR |
| 15 | def_bool y |
| 16 | |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 17 | config KM_PNVRAM |
| 18 | hex "Pseudo RAM" |
| 19 | default 0x80000 |
Holger Brunck | ddef889 | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 20 | depends on !ARCH_SOCFPGA |
Pascal Linder | ae01e1a | 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 | 032bdbc | 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 | ddef889 | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 28 | depends on !ARCH_SOCFPGA |
Pascal Linder | ae01e1a | 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" |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 34 | default 0x0 if MPC83xx |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 35 | default 0x1000 if MPC85xx || ARCH_LS1021A |
Holger Brunck | ddef889 | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 36 | depends on !ARCH_SOCFPGA |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 37 | help |
| 38 | Reserved physical RAM area at the end of memory for special purposes. |
| 39 | |
| 40 | config KM_CRAMFS_ADDR |
| 41 | hex "CRAMFS Address" |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 42 | default 0x83000000 if ARCH_LS1021A |
Holger Brunck | c7c7169 | 2020-10-09 17:21:32 +0200 | [diff] [blame] | 43 | default 0x3000000 |
Holger Brunck | ddef889 | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 44 | depends on !ARCH_SOCFPGA |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 45 | help |
| 46 | Start address of the CRAMFS containing the Linux kernel. |
| 47 | |
| 48 | config KM_KERNEL_ADDR |
| 49 | hex "Kernel Load Address" |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 50 | default 0x82000000 if ARCH_LS1021A |
Holger Brunck | c7c7169 | 2020-10-09 17:21:32 +0200 | [diff] [blame] | 51 | default 0x2000000 |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 52 | help |
| 53 | Address where to load Linux kernel in RAM. |
| 54 | |
| 55 | config KM_FDT_ADDR |
| 56 | hex "FDT Load Address" |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 57 | default 0x82FC0000 if ARCH_LS1021A |
Holger Brunck | c7c7169 | 2020-10-09 17:21:32 +0200 | [diff] [blame] | 58 | default 0x2FC0000 |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 59 | help |
| 60 | Address where to load flattened device tree in RAM. |
| 61 | |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 62 | config SYS_PAX_BASE |
| 63 | hex "PAX IFC Base Address" |
| 64 | default 0x78000000 |
| 65 | depends on ARCH_LS1021A |
| 66 | help |
| 67 | IFC Base Address for PAXx FPGA. |
| 68 | |
Aleksandar Gerasimovski | 3b24bbd | 2021-06-08 14:16:28 +0000 | [diff] [blame] | 69 | config SYS_CLIPS_BASE |
| 70 | hex "CLIPS IFC Base Address" |
| 71 | default 0x78000000 |
| 72 | depends on ARCH_LS1021A |
| 73 | help |
| 74 | IFC Base Address for CLIPS FPGA. |
| 75 | |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 76 | config KM_COMMON_ETH_INIT |
| 77 | bool "Common Ethernet Initialization" |
Holger Brunck | d8baa3a | 2022-12-02 18:22:41 +0100 | [diff] [blame] | 78 | default y if MPC83xx |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 79 | default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 80 | help |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 81 | Use the Ethernet initialization implemented in common code that |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 82 | detects if a Piggy board is present. |
| 83 | |
Holger Brunck | e2cbc6e | 2019-11-25 17:24:13 +0100 | [diff] [blame] | 84 | config PIGGY_MAC_ADDRESS_OFFSET |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 85 | int "Piggy Address Offset" |
| 86 | default 0 |
| 87 | help |
| 88 | MAC address offset for the Piggy board. |
| 89 | |
| 90 | config KM_MVEXTSW_ADDR |
| 91 | hex "Marvell Switch Address" |
| 92 | depends on MV88E6352_SWITCH |
| 93 | default 0x10 |
| 94 | help |
| 95 | Address of external Marvell switch. |
| 96 | |
| 97 | config KM_IVM_BUS |
| 98 | int "IVM I2C Bus" |
Holger Brunck | ddef889 | 2020-02-19 19:55:14 +0100 | [diff] [blame] | 99 | default 0 if ARCH_SOCFPGA |
Holger Brunck | 12cf6c0 | 2022-12-02 18:22:42 +0100 | [diff] [blame] | 100 | default 1 if PPC || ARCH_LS1021A |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 101 | help |
| 102 | Identifier number of I2C bus, where the inventory EEPROM is connected to. |
| 103 | |
| 104 | config SYS_IVM_EEPROM_ADR |
| 105 | hex "IVM I2C Address" |
| 106 | default 0x50 |
| 107 | help |
| 108 | I2C address of the EEPROM containing the inventory. |
| 109 | |
| 110 | config SYS_IVM_EEPROM_MAX_LEN |
| 111 | hex "IVM Length" |
| 112 | default 0x400 |
| 113 | help |
| 114 | Maximum length of inventory in EEPROM. |
| 115 | |
| 116 | config SYS_IVM_EEPROM_PAGE_LEN |
| 117 | hex "IVM Page Size" |
| 118 | default 0x100 |
| 119 | help |
| 120 | Page size of inventory in EEPROM. |
| 121 | |
Aleksandar Gerasimovski | 197b948 | 2021-12-10 11:07:53 +0100 | [diff] [blame] | 122 | config PG_WCOM_UBOOT_UPDATE_SUPPORTED |
Michal Simek | 50fa118 | 2023-05-17 09:17:16 +0200 | [diff] [blame] | 123 | bool "Enable U-Boot Field Fail-Safe Update Functionality" |
Tom Rini | 7d3684a | 2023-01-16 15:46:49 -0500 | [diff] [blame] | 124 | select EVENT |
Aleksandar Gerasimovski | 197b948 | 2021-12-10 11:07:53 +0100 | [diff] [blame] | 125 | help |
| 126 | Indicates that field fail-safe u-boot update is supported. |
| 127 | This functionality works only for designs that are booting |
| 128 | from parallel NOR flash. |
| 129 | |
| 130 | config PG_WCOM_UBOOT_BOOTPACKAGE |
Michal Simek | 50fa118 | 2023-05-17 09:17:16 +0200 | [diff] [blame] | 131 | bool "U-Boot Is Part Of Factory Boot-Package Image" |
Aleksandar Gerasimovski | 197b948 | 2021-12-10 11:07:53 +0100 | [diff] [blame] | 132 | help |
| 133 | Indicates that u-boot will be a part of the factory programmed |
| 134 | boot-package image. |
| 135 | Has to be set for original u-boot programmed at factory. |
| 136 | |
| 137 | config PG_WCOM_UBOOT_UPDATE_TEXT_BASE |
Michal Simek | 50fa118 | 2023-05-17 09:17:16 +0200 | [diff] [blame] | 138 | hex "Text Base For U-Boot Programmed Outside Factory" |
Aleksandar Gerasimovski | 197b948 | 2021-12-10 11:07:53 +0100 | [diff] [blame] | 139 | default 0xFFFFFFFF |
| 140 | help |
| 141 | Text base of an updated u-boot that is not factory programmed but |
| 142 | later when the unit is rolled out on the field. |
| 143 | Has to be set for original u-boot programmed at factory. |
| 144 | |
| 145 | config PG_WCOM_UBOOT_UPDATE |
Michal Simek | 50fa118 | 2023-05-17 09:17:16 +0200 | [diff] [blame] | 146 | bool "U-Boot Is Part Of Factory Boot-Package Image" |
Aleksandar Gerasimovski | 197b948 | 2021-12-10 11:07:53 +0100 | [diff] [blame] | 147 | help |
| 148 | Indicates that u-boot will be a part of the embedded software and |
| 149 | programmed at field. |
| 150 | Has to be set for updated u-boot version programmed at field. |
| 151 | |
Pascal Linder | 305329f | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 152 | source "board/keymile/km83xx/Kconfig" |
Niel Fourie | db7241d | 2021-01-21 13:19:20 +0100 | [diff] [blame] | 153 | source "board/keymile/kmcent2/Kconfig" |
Aleksandar Gerasimovski | 032bdbc | 2021-02-22 18:18:11 +0000 | [diff] [blame] | 154 | source "board/keymile/pg-wcom-ls102xa/Kconfig" |
Pascal Linder | 305329f | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 155 | |
Pascal Linder | ae01e1a | 2019-07-09 09:28:20 +0200 | [diff] [blame] | 156 | endmenu |
| 157 | |
Pascal Linder | 305329f | 2019-06-18 13:27:47 +0200 | [diff] [blame] | 158 | endif |