6b7377c20075fdd3589c6632e9da8e31c5ab3cee
[platform/kernel/u-boot.git] / board / keymile / Kconfig
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
12 menu "KM Board Setup"
13
14 config KM_PNVRAM
15         hex "Pseudo RAM"
16         default 0x80000
17         depends on !ARCH_SOCFPGA
18         help
19           Start address of the pseudo non-volatile RAM for application.
20
21 config KM_PHRAM
22         hex "Physical RAM"
23         default 0x17F000 if ARM
24         default 0x100000 if PPC
25         depends on !ARCH_SOCFPGA
26         help
27           Start address of the physical RAM, which is the mounted /var folder.
28
29 config KM_RESERVED_PRAM
30         hex "Reserved RAM"
31         default 0x801000 if ARCH_KIRKWOOD
32         default 0x0 if MPC83xx
33         default 0x1000 if MPC85xx
34         depends on !ARCH_SOCFPGA
35         help
36           Reserved physical RAM area at the end of memory for special purposes.
37
38 config KM_CRAMFS_ADDR
39         hex "CRAMFS Address"
40         default 0x3000000
41         depends on !ARCH_SOCFPGA
42         help
43           Start address of the CRAMFS containing the Linux kernel.
44
45 config KM_KERNEL_ADDR
46         hex "Kernel Load Address"
47         default 0x2000000
48         help
49           Address where to load Linux kernel in RAM.
50
51 config KM_FDT_ADDR
52         hex "FDT Load Address"
53         default 0x2FC0000
54         help
55           Address where to load flattened device tree in RAM.
56
57 config KM_CONSOLE_TTY
58         string "KM Console"
59         default "ttyS0"
60         help
61           TTY console to use on board.
62
63 config KM_DEF_NETDEV
64         string "Default Netdevice"
65         default "eth0"
66         help
67           Default netdevice for debug interface
68
69 config KM_COMMON_ETH_INIT
70         bool "Common Ethernet Initialization"
71         default y if ARCH_KIRKWOOD || MPC83xx
72         default n if MPC85xx || ARCH_SOCFPGA
73         help
74           Use the Ethernet initialization implemented in common code, which
75           detects if a Piggy board is present.
76
77 config PIGGY_MAC_ADDRESS_OFFSET
78         int "Piggy Address Offset"
79         default 0
80         help
81           MAC address offset for the Piggy board.
82
83 config 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
90 config KM_IVM_BUS
91         int "IVM I2C Bus"
92         default 0 if ARCH_SOCFPGA
93         default 1 if ARCH_KIRKWOOD || MPC85xx
94         default 2 if MPC83xx
95         help
96           Identifier number of I2C bus, where the inventory EEPROM is connected to.
97
98 config SYS_IVM_EEPROM_ADR
99         hex "IVM I2C Address"
100         default 0x50
101         help
102           I2C address of the EEPROM containing the inventory.
103
104 config SYS_IVM_EEPROM_MAX_LEN
105         hex "IVM Length"
106         default 0x400
107         help
108           Maximum length of inventory in EEPROM.
109
110 config SYS_IVM_EEPROM_PAGE_LEN
111         hex "IVM Page Size"
112         default 0x100
113         help
114           Page size of inventory in EEPROM.
115
116 source "board/keymile/km83xx/Kconfig"
117 source "board/keymile/kmcent2/Kconfig"
118 source "board/keymile/kmp204x/Kconfig"
119 source "board/keymile/km_arm/Kconfig"
120
121 endmenu
122
123 endif