blob: 046f1888cb186134f749eadc956c70bbc7dd91a3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Guinot16311a22011-06-17 19:41:33 +05302/*
3 * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
Simon Guinot16311a22011-06-17 19:41:33 +05304 */
5
Simon Guinota35cb4c2011-11-21 19:25:47 +05306#ifndef _CONFIG_LACIE_KW_H
7#define _CONFIG_LACIE_KW_H
Simon Guinot16311a22011-06-17 19:41:33 +05308
Simon Guinot16311a22011-06-17 19:41:33 +05309#include "mv-common.h"
10
11/* Remove or override few declarations from mv-common.h */
Simon Guinot16311a22011-06-17 19:41:33 +053012#undef CONFIG_SYS_IDE_MAXBUS
13#undef CONFIG_SYS_IDE_MAXDEVICE
Simon Guinot16311a22011-06-17 19:41:33 +053014
15/*
Simon Guinot1dd67e62013-06-18 15:14:48 +020016 * Enable platform initialisation via misc_init_r() function
17 */
Simon Guinot1dd67e62013-06-18 15:14:48 +020018
19/*
Simon Guinot16311a22011-06-17 19:41:33 +053020 * Ethernet Driver configuration
21 */
22#ifdef CONFIG_CMD_NET
23#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Simon Guinot16311a22011-06-17 19:41:33 +053024#endif
25
26/*
27 * SATA Driver configuration
28 */
Simon Guinot80f69342020-06-28 19:00:29 +020029
30#ifdef CONFIG_SATA
31#define CONFIG_SYS_64BIT_LBA
32#define CONFIG_LBA48
Simon Guinotcaf09e22012-09-06 10:51:43 +000033#if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
34 defined(CONFIG_NET2BIG_V2)
Simon Guinot80f69342020-06-28 19:00:29 +020035#define CONFIG_SYS_SATA_MAX_DEVICE 2
Simon Guinot777baa92015-09-03 11:12:20 +020036#else
Simon Guinot80f69342020-06-28 19:00:29 +020037#define CONFIG_SYS_SATA_MAX_DEVICE 1
Simon Guinot16311a22011-06-17 19:41:33 +053038#endif
Simon Guinot80f69342020-06-28 19:00:29 +020039#endif /* CONFIG_SATA */
Simon Guinot16311a22011-06-17 19:41:33 +053040
41/*
42 * Enable GPI0 support
43 */
Simon Guinot16311a22011-06-17 19:41:33 +053044
45/*
Simon Guinot5aaebab2011-11-01 16:44:12 +053046 * Enable I2C support
47 */
48#ifdef CONFIG_CMD_I2C
49/* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
Simon Guinot1dd67e62013-06-18 15:14:48 +020050#if defined(CONFIG_NET2BIG_V2)
51#define CONFIG_SYS_I2C_G762_ADDR 0x3e
52#endif
Simon Guinot5aaebab2011-11-01 16:44:12 +053053#endif /* CONFIG_CMD_I2C */
54
55/*
Simon Guinot707f5d62012-09-06 10:51:41 +000056 * Partition support
57 */
Simon Guinot707f5d62012-09-06 10:51:41 +000058
59/*
Simon Guinot16311a22011-06-17 19:41:33 +053060 * File systems support
61 */
Simon Guinot16311a22011-06-17 19:41:33 +053062
63/*
Simon Guinot16311a22011-06-17 19:41:33 +053064 * Environment variables configurations
65 */
Simon Guinot16311a22011-06-17 19:41:33 +053066
67/*
68 * Default environment variables
69 */
Simon Guinot16311a22011-06-17 19:41:33 +053070
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" \
Simon Guinot80f69342020-06-28 19:00:29 +020082 "diskload=sata init && " \
83 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
Simon Guinot16311a22011-06-17 19:41:33 +053084 "usbload=usb start && " \
85 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
86
Simon Guinota35cb4c2011-11-21 19:25:47 +053087#endif /* _CONFIG_LACIE_KW_H */