7366a332f943057eaf8a40baf94db99e5450a0cd
[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 #include "mv-common.h"
10
11 /* Remove or override few declarations from mv-common.h */
12
13 /*
14  * Enable platform initialisation via misc_init_r() function
15  */
16
17 /*
18  * Ethernet Driver configuration
19  */
20 #ifdef CONFIG_CMD_NET
21 #define CONFIG_MVGBE_PORTS              {1, 0} /* enable port 0 only */
22 #endif
23
24 /*
25  * SATA Driver configuration
26  */
27
28 #ifdef CONFIG_SATA
29 #define CONFIG_SYS_64BIT_LBA
30 #define CONFIG_LBA48
31 #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
32         defined(CONFIG_NET2BIG_V2)
33 #define CONFIG_SYS_SATA_MAX_DEVICE      2
34 #else
35 #define CONFIG_SYS_SATA_MAX_DEVICE      1
36 #endif
37 #endif /* CONFIG_SATA */
38
39 /*
40  * Enable GPI0 support
41  */
42
43 /*
44  * Enable I2C support
45  */
46 #ifdef CONFIG_CMD_I2C
47 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
48 #if defined(CONFIG_NET2BIG_V2)
49 #define CONFIG_SYS_I2C_G762_ADDR                0x3e
50 #endif
51 #endif /* CONFIG_CMD_I2C */
52
53 /*
54  * Partition support
55  */
56
57 /*
58  * File systems support
59  */
60
61 /*
62  * Environment variables configurations
63  */
64
65 /*
66  * Default environment variables
67  */
68
69 #define CONFIG_EXTRA_ENV_SETTINGS                               \
70         "stdin=serial\0"                                        \
71         "stdout=serial\0"                                       \
72         "stderr=serial\0"                                       \
73         "bootfile=uImage\0"                                     \
74         "loadaddr=0x800000\0"                                   \
75         "autoload=no\0"                                         \
76         "netconsole="                                           \
77                 "set stdin $stdin,nc; "                         \
78                 "set stdout $stdout,nc; "                       \
79                 "set stderr $stderr,nc;\0"                      \
80         "diskload=sata init && "                                \
81                 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
82         "usbload=usb start && "                                 \
83                 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
84
85 #endif /* _CONFIG_LACIE_KW_H */