board/km: add support for seli8 design based on nxp ls102x
[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 && !ARCH_LS1021A
24         default 0x100000 if PPC || ARCH_LS1021A
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 || ARCH_LS1021A
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 0x83000000 if ARCH_LS1021A
41         default 0x3000000
42         depends on !ARCH_SOCFPGA
43         help
44           Start address of the CRAMFS containing the Linux kernel.
45
46 config KM_KERNEL_ADDR
47         hex "Kernel Load Address"
48         default 0x82000000 if ARCH_LS1021A
49         default 0x2000000
50         help
51           Address where to load Linux kernel in RAM.
52
53 config KM_FDT_ADDR
54         hex "FDT Load Address"
55         default 0x82FC0000 if ARCH_LS1021A
56         default 0x2FC0000
57         help
58           Address where to load flattened device tree in RAM.
59
60 config SYS_PAX_BASE
61         hex "PAX IFC Base Address"
62         default 0x78000000
63         depends on ARCH_LS1021A
64         help
65           IFC Base Address for PAXx FPGA.
66
67 config KM_CONSOLE_TTY
68         string "KM Console"
69         default "ttyS0"
70         help
71           TTY console to use on board.
72
73 config KM_DEF_NETDEV
74         string "Default Netdevice"
75         default "eth0"
76         help
77           Default netdevice for debug interface
78
79 config KM_COMMON_ETH_INIT
80         bool "Common Ethernet Initialization"
81         default y if ARCH_KIRKWOOD || MPC83xx
82         default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
83         help
84           Use the Ethernet initialization implemented in common code that
85           detects if a Piggy board is present.
86
87 config PIGGY_MAC_ADDRESS_OFFSET
88         int "Piggy Address Offset"
89         default 0
90         help
91           MAC address offset for the Piggy board.
92
93 config KM_MVEXTSW_ADDR
94         hex "Marvell Switch Address"
95         depends on MV88E6352_SWITCH
96         default 0x10
97         help
98           Address of external Marvell switch.
99
100 config KM_IVM_BUS
101         int "IVM I2C Bus"
102         default 0 if ARCH_SOCFPGA
103         default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
104         default 2 if MPC83xx
105         help
106           Identifier number of I2C bus, where the inventory EEPROM is connected to.
107
108 config SYS_IVM_EEPROM_ADR
109         hex "IVM I2C Address"
110         default 0x50
111         help
112           I2C address of the EEPROM containing the inventory.
113
114 config SYS_IVM_EEPROM_MAX_LEN
115         hex "IVM Length"
116         default 0x400
117         help
118           Maximum length of inventory in EEPROM.
119
120 config SYS_IVM_EEPROM_PAGE_LEN
121         hex "IVM Page Size"
122         default 0x100
123         help
124           Page size of inventory in EEPROM.
125
126 source "board/keymile/km83xx/Kconfig"
127 source "board/keymile/kmcent2/Kconfig"
128 source "board/keymile/kmp204x/Kconfig"
129 source "board/keymile/km_arm/Kconfig"
130 source "board/keymile/pg-wcom-ls102xa/Kconfig"
131
132 endmenu
133
134 endif