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