Merge tag 'v2021.10-rc5' into next
[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  * High Level Configuration Options (easy to change)
11  */
12 #define CONFIG_FEROCEON_88FR131         /* CPU Core subversion */
13 /* SoC name */
14 #if defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
15 #define CONFIG_KW88F6192
16 #else
17 #define CONFIG_KW88F6281
18 #endif
19
20 /*
21  * SDRAM configuration
22  */
23
24 /*
25  * Different SDRAM configuration and size for some of the boards derived
26  * from the Network Space v2
27  */
28 #if defined(CONFIG_INETSPACE_V2)
29 #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-is2.cfg
30 #elif defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
31 #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg
32 #endif
33
34 /*
35  * mv-common.h should be defined after CMD configs since it used them
36  * to enable certain macros
37  */
38 #include "mv-common.h"
39
40 /* Remove or override few declarations from mv-common.h */
41 #undef CONFIG_SYS_IDE_MAXBUS
42 #undef CONFIG_SYS_IDE_MAXDEVICE
43
44 /*
45  * Enable platform initialisation via misc_init_r() function
46  */
47
48 /*
49  * Ethernet Driver configuration
50  */
51 #ifdef CONFIG_CMD_NET
52 #define CONFIG_MVGBE_PORTS              {1, 0} /* enable port 0 only */
53 #endif
54
55 /*
56  * SATA Driver configuration
57  */
58
59 #ifdef CONFIG_SATA
60 #define CONFIG_SYS_64BIT_LBA
61 #define CONFIG_LBA48
62 #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
63         defined(CONFIG_NET2BIG_V2)
64 #define CONFIG_SYS_SATA_MAX_DEVICE      2
65 #else
66 #define CONFIG_SYS_SATA_MAX_DEVICE      1
67 #endif
68 #endif /* CONFIG_SATA */
69
70 /*
71  * Enable GPI0 support
72  */
73 #define CONFIG_KIRKWOOD_GPIO
74
75 /*
76  * Enable I2C support
77  */
78 #ifdef CONFIG_CMD_I2C
79 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
80 #if defined(CONFIG_NET2BIG_V2)
81 #define CONFIG_SYS_I2C_G762_ADDR                0x3e
82 #endif
83 #endif /* CONFIG_CMD_I2C */
84
85 /*
86  * Partition support
87  */
88
89 /*
90  * File systems support
91  */
92
93 /*
94  * Environment variables configurations
95  */
96
97 /*
98  * Default environment variables
99  */
100 #define CONFIG_BOOTCOMMAND                                      \
101         "dhcp && run netconsole; "                              \
102         "if run usbload || run diskload; then bootm; fi"
103
104 #define CONFIG_EXTRA_ENV_SETTINGS                               \
105         "stdin=serial\0"                                        \
106         "stdout=serial\0"                                       \
107         "stderr=serial\0"                                       \
108         "bootfile=uImage\0"                                     \
109         "loadaddr=0x800000\0"                                   \
110         "autoload=no\0"                                         \
111         "netconsole="                                           \
112                 "set stdin $stdin,nc; "                         \
113                 "set stdout $stdout,nc; "                       \
114                 "set stderr $stderr,nc;\0"                      \
115         "diskload=sata init && "                                \
116                 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
117         "usbload=usb start && "                                 \
118                 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
119
120 #endif /* _CONFIG_LACIE_KW_H */