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