blob: e20c01743636e44dd3355afae00c1d4ec4b50acb [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"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040040 default 0x2400000 if ARCH_KIRKWOOD
Pascal Linder707f06f2019-07-09 09:28:20 +020041 default 0xC00000 if MPC83xx
42 default 0x2000000 if MPC85xx
Holger Brunck468ba8d2020-02-19 19:55:14 +010043 depends on !ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020044 help
45 Start address of the CRAMFS containing the Linux kernel.
46
47config KM_KERNEL_ADDR
48 hex "Kernel Load Address"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040049 default 0x2000000 if ARCH_KIRKWOOD
Pascal Linder707f06f2019-07-09 09:28:20 +020050 default 0x400000 if MPC83xx
Holger Brunck468ba8d2020-02-19 19:55:14 +010051 default 0x1000000 if MPC85xx || ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020052 help
53 Address where to load Linux kernel in RAM.
54
55config KM_FDT_ADDR
56 hex "FDT Load Address"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040057 default 0x23E0000 if ARCH_KIRKWOOD || ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020058 default 0xB80000 if MPC83xx
59 default 0x1F80000 if MPC85xx
60 help
61 Address where to load flattened device tree in RAM.
62
63config KM_CONSOLE_TTY
64 string "KM Console"
65 default "ttyS0"
66 help
67 TTY console to use on board.
68
Holger Brunck05577fa2019-11-26 19:09:01 +010069config KM_DEF_NETDEV
70 string "Default Netdevice"
71 default "eth0"
72 help
73 Default netdevice for debug interface
74
Pascal Linder707f06f2019-07-09 09:28:20 +020075config KM_COMMON_ETH_INIT
76 bool "Common Ethernet Initialization"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040077 default y if ARCH_KIRKWOOD || MPC83xx
Holger Brunck468ba8d2020-02-19 19:55:14 +010078 default n if MPC85xx || ARCH_SOCFPGA
Pascal Linder707f06f2019-07-09 09:28:20 +020079 help
80 Use the Ethernet initialization implemented in common code, which
81 detects if a Piggy board is present.
82
Holger Brunck58e1fdb2019-11-25 17:24:13 +010083config PIGGY_MAC_ADDRESS_OFFSET
Pascal Linder707f06f2019-07-09 09:28:20 +020084 int "Piggy Address Offset"
85 default 0
86 help
87 MAC address offset for the Piggy board.
88
89config KM_MVEXTSW_ADDR
90 hex "Marvell Switch Address"
91 depends on MV88E6352_SWITCH
92 default 0x10
93 help
94 Address of external Marvell switch.
95
96config KM_IVM_BUS
97 int "IVM I2C Bus"
Holger Brunck468ba8d2020-02-19 19:55:14 +010098 default 0 if ARCH_SOCFPGA
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -040099 default 1 if ARCH_KIRKWOOD || MPC85xx
Pascal Linder707f06f2019-07-09 09:28:20 +0200100 default 2 if MPC83xx
101 help
102 Identifier number of I2C bus, where the inventory EEPROM is connected to.
103
104config SYS_IVM_EEPROM_ADR
105 hex "IVM I2C Address"
106 default 0x50
107 help
108 I2C address of the EEPROM containing the inventory.
109
110config SYS_IVM_EEPROM_MAX_LEN
111 hex "IVM Length"
112 default 0x400
113 help
114 Maximum length of inventory in EEPROM.
115
116config SYS_IVM_EEPROM_PAGE_LEN
117 hex "IVM Page Size"
118 default 0x100
119 help
120 Page size of inventory in EEPROM.
121
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200122source "board/keymile/km83xx/Kconfig"
123source "board/keymile/kmp204x/Kconfig"
124source "board/keymile/km_arm/Kconfig"
125
Pascal Linder707f06f2019-07-09 09:28:20 +0200126endmenu
127
Pascal Linderc0fed3a2019-06-18 13:27:47 +0200128endif