blob: e5906906f3a4a9bd06ae53cff8d1321947013cad [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
14config KM_PNVRAM
15 hex "Pseudo RAM"
16 default 0x80000
Holger Brunck468ba8d2020-02-19 19:55:14 +010017 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020018 help
19 Start address of the pseudo non-volatile RAM for application.
20
21config KM_PHRAM
22 hex "Physical RAM"
23 default 0x17F000 if ARM
24 default 0x100000 if PPC
Holger Brunck468ba8d2020-02-19 19:55:14 +010025 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020026 help
27 Start address of the physical RAM, which is the mounted /var folder.
28
29config KM_RESERVED_PRAM
30 hex "Reserved RAM"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040031 default 0x801000 if ARCH_KIRKWOOD
Pascal Linder707f06f2019-07-09 09:28:20 +020032 default 0x0 if MPC83xx
33 default 0x1000 if MPC85xx
Holger Brunck468ba8d2020-02-19 19:55:14 +010034 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020035 help
36 Reserved physical RAM area at the end of memory for special purposes.
37
38config KM_CRAMFS_ADDR
39 hex "CRAMFS Address"
Holger Brunck6a0952a2020-10-09 17:21:32 +020040 default 0x3000000
Holger Brunck468ba8d2020-02-19 19:55:14 +010041 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020042 help
43 Start address of the CRAMFS containing the Linux kernel.
44
45config KM_KERNEL_ADDR
46 hex "Kernel Load Address"
Holger Brunck6a0952a2020-10-09 17:21:32 +020047 default 0x2000000
Pascal Linder707f06f2019-07-09 09:28:20 +020048 help
49 Address where to load Linux kernel in RAM.
50
51config KM_FDT_ADDR
52 hex "FDT Load Address"
Holger Brunck6a0952a2020-10-09 17:21:32 +020053 default 0x2FC0000
Pascal Linder707f06f2019-07-09 09:28:20 +020054 help
55 Address where to load flattened device tree in RAM.
56
57config KM_CONSOLE_TTY
58 string "KM Console"
59 default "ttyS0"
60 help
61 TTY console to use on board.
62
Holger Brunck05577fa2019-11-26 19:09:01 +010063config KM_DEF_NETDEV
64 string "Default Netdevice"
65 default "eth0"
66 help
67 Default netdevice for debug interface
68
Pascal Linder707f06f2019-07-09 09:28:20 +020069config KM_COMMON_ETH_INIT
70 bool "Common Ethernet Initialization"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040071 default y if ARCH_KIRKWOOD || MPC83xx
Holger Brunck468ba8d2020-02-19 19:55:14 +010072 default n if MPC85xx || ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020073 help
74 Use the Ethernet initialization implemented in common code, which
75 detects if a Piggy board is present.
76
Holger Brunck58e1fdb2019-11-25 17:24:13 +010077config PIGGY_MAC_ADDRESS_OFFSET
Pascal Linder707f06f2019-07-09 09:28:20 +020078 int "Piggy Address Offset"
79 default 0
80 help
81 MAC address offset for the Piggy board.
82
83config KM_MVEXTSW_ADDR
84 hex "Marvell Switch Address"
85 depends on MV88E6352_SWITCH
86 default 0x10
87 help
88 Address of external Marvell switch.
89
90config KM_IVM_BUS
91 int "IVM I2C Bus"
Holger Brunck468ba8d2020-02-19 19:55:14 +010092 default 0 if ARCH_SOCFPGA
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040093 default 1 if ARCH_KIRKWOOD || MPC85xx
Pascal Linder707f06f2019-07-09 09:28:20 +020094 default 2 if MPC83xx
95 help
96 Identifier number of I2C bus, where the inventory EEPROM is connected to.
97
98config SYS_IVM_EEPROM_ADR
99 hex "IVM I2C Address"
100 default 0x50
101 help
102 I2C address of the EEPROM containing the inventory.
103
104config SYS_IVM_EEPROM_MAX_LEN
105 hex "IVM Length"
106 default 0x400
107 help
108 Maximum length of inventory in EEPROM.
109
110config SYS_IVM_EEPROM_PAGE_LEN
111 hex "IVM Page Size"
112 default 0x100
113 help
114 Page size of inventory in EEPROM.
115
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200116source "board/keymile/km83xx/Kconfig"
117source "board/keymile/kmp204x/Kconfig"
118source "board/keymile/km_arm/Kconfig"
119
Pascal Linder707f06f2019-07-09 09:28:20 +0200120endmenu
121
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200122endif