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
11 /* Remove or override few declarations from mv-common.h */
12 #undef CONFIG_SYS_IDE_MAXBUS
13 #undef CONFIG_SYS_IDE_MAXDEVICE
16 * Enable platform initialisation via misc_init_r() function
20 * Ethernet Driver configuration
23 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
27 * SATA Driver configuration
31 #define CONFIG_SYS_64BIT_LBA
33 #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
34 defined(CONFIG_NET2BIG_V2)
35 #define CONFIG_SYS_SATA_MAX_DEVICE 2
37 #define CONFIG_SYS_SATA_MAX_DEVICE 1
39 #endif /* CONFIG_SATA */
49 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
50 #if defined(CONFIG_NET2BIG_V2)
51 #define CONFIG_SYS_I2C_G762_ADDR 0x3e
53 #endif /* CONFIG_CMD_I2C */
60 * File systems support
64 * Environment variables configurations
68 * Default environment variables
71 #define CONFIG_EXTRA_ENV_SETTINGS \
76 "loadaddr=0x800000\0" \
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"
87 #endif /* _CONFIG_LACIE_KW_H */