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 * Machine number definition
12 #if defined(CONFIG_INETSPACE_V2)
13 #define CONFIG_MACH_TYPE MACH_TYPE_INETSPACE_V2
14 #elif defined(CONFIG_NETSPACE_V2)
15 #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_V2
16 #elif defined(CONFIG_NETSPACE_LITE_V2)
17 #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_LITE_V2
18 #elif defined(CONFIG_NETSPACE_MINI_V2)
19 #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MINI_V2
20 #elif defined(CONFIG_NETSPACE_MAX_V2)
21 #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MAX_V2
22 #elif defined(CONFIG_D2NET_V2)
23 #define CONFIG_MACH_TYPE MACH_TYPE_D2NET_V2
24 #elif defined(CONFIG_NET2BIG_V2)
25 #define CONFIG_MACH_TYPE MACH_TYPE_NET2BIG_V2
27 #error "Unknown board"
31 * High Level Configuration Options (easy to change)
33 #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
35 #if defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
36 #define CONFIG_KW88F6192
38 #define CONFIG_KW88F6281
40 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
47 * Different SDRAM configuration and size for some of the boards derived
48 * from the Network Space v2
50 #if defined(CONFIG_INETSPACE_V2)
51 #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-is2.cfg
52 #elif defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
53 #define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg
57 * mv-common.h should be defined after CMD configs since it used them
58 * to enable certain macros
60 #include "mv-common.h"
62 /* Remove or override few declarations from mv-common.h */
63 #undef CONFIG_SYS_IDE_MAXBUS
64 #undef CONFIG_SYS_IDE_MAXDEVICE
67 * Enable platform initialisation via misc_init_r() function
71 * Ethernet Driver configuration
74 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
78 * SATA Driver configuration
82 #define CONFIG_SYS_64BIT_LBA
84 #if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
85 defined(CONFIG_NET2BIG_V2)
86 #define CONFIG_SYS_SATA_MAX_DEVICE 2
88 #define CONFIG_SYS_SATA_MAX_DEVICE 1
90 #endif /* CONFIG_SATA */
95 #define CONFIG_KIRKWOOD_GPIO
100 #ifdef CONFIG_CMD_I2C
101 /* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
102 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
103 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 /* 16-byte page size */
104 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* 8-bit device address */
105 #if defined(CONFIG_NET2BIG_V2)
106 #define CONFIG_SYS_I2C_G762_ADDR 0x3e
108 #endif /* CONFIG_CMD_I2C */
115 * File systems support
119 * Environment variables configurations
123 * Default environment variables
125 #define CONFIG_BOOTCOMMAND \
126 "dhcp && run netconsole; " \
127 "if run usbload || run diskload; then bootm; fi"
129 #define CONFIG_EXTRA_ENV_SETTINGS \
133 "bootfile=uImage\0" \
134 "loadaddr=0x800000\0" \
137 "set stdin $stdin,nc; " \
138 "set stdout $stdout,nc; " \
139 "set stderr $stderr,nc;\0" \
140 "diskload=sata init && " \
141 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
142 "usbload=usb start && " \
143 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
145 #endif /* _CONFIG_LACIE_KW_H */