Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig
[platform/kernel/u-boot.git] / include / configs / lacie_kw.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
4  */
5
6 #ifndef _CONFIG_LACIE_KW_H
7 #define _CONFIG_LACIE_KW_H
8
9 /*
10  * Machine number definition
11  */
12 #if defined(CONFIG_INETSPACE_V2)
13 #define CONFIG_MACH_TYPE                MACH_TYPE_INETSPACE_V2
14 #elif defined(CONFIG_NETSPACE_V2)
15 #define CONFIG_MACH_TYPE                MACH_TYPE_NETSPACE_V2
16 #elif defined(CONFIG_NETSPACE_LITE_V2)
17 #define CONFIG_MACH_TYPE                MACH_TYPE_NETSPACE_LITE_V2
18 #elif defined(CONFIG_NETSPACE_MINI_V2)
19 #define CONFIG_MACH_TYPE                MACH_TYPE_NETSPACE_MINI_V2
20 #elif defined(CONFIG_NETSPACE_MAX_V2)
21 #define CONFIG_MACH_TYPE                MACH_TYPE_NETSPACE_MAX_V2
22 #elif defined(CONFIG_D2NET_V2)
23 #define CONFIG_MACH_TYPE                MACH_TYPE_D2NET_V2
24 #elif defined(CONFIG_NET2BIG_V2)
25 #define CONFIG_MACH_TYPE                MACH_TYPE_NET2BIG_V2
26 #else
27 #error "Unknown board"
28 #endif
29
30 /*
31  * High Level Configuration Options (easy to change)
32  */
33 #define CONFIG_FEROCEON_88FR131         /* CPU Core subversion */
34 /* SoC name */
35 #if defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
36 #define CONFIG_KW88F6192
37 #else
38 #define CONFIG_KW88F6281
39 #endif
40
41 /*
42  * SDRAM configuration
43  */
44
45 /*
46  * Different SDRAM configuration and size for some of the boards derived
47  * from the Network Space v2
48  */
49 #if defined(CONFIG_INETSPACE_V2)
50 #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-is2.cfg
51 #elif defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
52 #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg
53 #endif
54
55 /*
56  * mv-common.h should be defined after CMD configs since it used them
57  * to enable certain macros
58  */
59 #include "mv-common.h"
60
61 /* Remove or override few declarations from mv-common.h */
62 #undef CONFIG_SYS_IDE_MAXBUS
63 #undef CONFIG_SYS_IDE_MAXDEVICE
64
65 /*
66  * Enable platform initialisation via misc_init_r() function
67  */
68
69 /*
70  * Ethernet Driver configuration
71  */
72 #ifdef CONFIG_CMD_NET
73 #define CONFIG_MVGBE_PORTS              {1, 0} /* enable port 0 only */
74 #endif
75
76 /*
77  * SATA Driver configuration
78  */
79
80 #ifdef CONFIG_SATA
81 #define CONFIG_SYS_64BIT_LBA
82 #define CONFIG_LBA48
83 #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
84         defined(CONFIG_NET2BIG_V2)
85 #define CONFIG_SYS_SATA_MAX_DEVICE      2
86 #else
87 #define CONFIG_SYS_SATA_MAX_DEVICE      1
88 #endif
89 #endif /* CONFIG_SATA */
90
91 /*
92  * Enable GPI0 support
93  */
94 #define CONFIG_KIRKWOOD_GPIO
95
96 /*
97  * Enable I2C support
98  */
99 #ifdef CONFIG_CMD_I2C
100 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
101 #if defined(CONFIG_NET2BIG_V2)
102 #define CONFIG_SYS_I2C_G762_ADDR                0x3e
103 #endif
104 #endif /* CONFIG_CMD_I2C */
105
106 /*
107  * Partition support
108  */
109
110 /*
111  * File systems support
112  */
113
114 /*
115  * Environment variables configurations
116  */
117
118 /*
119  * Default environment variables
120  */
121 #define CONFIG_BOOTCOMMAND                                      \
122         "dhcp && run netconsole; "                              \
123         "if run usbload || run diskload; then bootm; fi"
124
125 #define CONFIG_EXTRA_ENV_SETTINGS                               \
126         "stdin=serial\0"                                        \
127         "stdout=serial\0"                                       \
128         "stderr=serial\0"                                       \
129         "bootfile=uImage\0"                                     \
130         "loadaddr=0x800000\0"                                   \
131         "autoload=no\0"                                         \
132         "netconsole="                                           \
133                 "set stdin $stdin,nc; "                         \
134                 "set stdout $stdout,nc; "                       \
135                 "set stderr $stderr,nc;\0"                      \
136         "diskload=sata init && "                                \
137                 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
138         "usbload=usb start && "                                 \
139                 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
140
141 #endif /* _CONFIG_LACIE_KW_H */