1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
6 #ifndef _CONFIG_LACIE_KW_H
7 #define _CONFIG_LACIE_KW_H
10 * High Level Configuration Options (easy to change)
12 #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
14 #if defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
15 #define CONFIG_KW88F6192
17 #define CONFIG_KW88F6281
25 * Different SDRAM configuration and size for some of the boards derived
26 * from the Network Space v2
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
35 * mv-common.h should be defined after CMD configs since it used them
36 * to enable certain macros
38 #include "mv-common.h"
40 /* Remove or override few declarations from mv-common.h */
41 #undef CONFIG_SYS_IDE_MAXBUS
42 #undef CONFIG_SYS_IDE_MAXDEVICE
45 * Enable platform initialisation via misc_init_r() function
49 * Ethernet Driver configuration
52 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
56 * SATA Driver configuration
60 #define CONFIG_SYS_64BIT_LBA
62 #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
63 defined(CONFIG_NET2BIG_V2)
64 #define CONFIG_SYS_SATA_MAX_DEVICE 2
66 #define CONFIG_SYS_SATA_MAX_DEVICE 1
68 #endif /* CONFIG_SATA */
73 #define CONFIG_KIRKWOOD_GPIO
79 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
80 #if defined(CONFIG_NET2BIG_V2)
81 #define CONFIG_SYS_I2C_G762_ADDR 0x3e
83 #endif /* CONFIG_CMD_I2C */
90 * File systems support
94 * Environment variables configurations
98 * Default environment variables
100 #define CONFIG_BOOTCOMMAND \
101 "dhcp && run netconsole; " \
102 "if run usbload || run diskload; then bootm; fi"
104 #define CONFIG_EXTRA_ENV_SETTINGS \
108 "bootfile=uImage\0" \
109 "loadaddr=0x800000\0" \
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"
120 #endif /* _CONFIG_LACIE_KW_H */