blob: 9b70eed46f7cd324037c809186817c1a1039e1e4 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Guinot79642092011-06-17 19:41:33 +05302/*
3 * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
Simon Guinot79642092011-06-17 19:41:33 +05304 */
5
Simon Guinot77ea0712011-11-21 19:25:47 +05306#ifndef _CONFIG_LACIE_KW_H
7#define _CONFIG_LACIE_KW_H
Simon Guinot79642092011-06-17 19:41:33 +05308
Simon Guinot79642092011-06-17 19:41:33 +05309#include "mv-common.h"
10
11/* Remove or override few declarations from mv-common.h */
Simon Guinot79642092011-06-17 19:41:33 +053012
13/*
Simon Guinot2af4d0f2013-06-18 15:14:48 +020014 * Enable platform initialisation via misc_init_r() function
15 */
Simon Guinot2af4d0f2013-06-18 15:14:48 +020016
17/*
Simon Guinot79642092011-06-17 19:41:33 +053018 * Ethernet Driver configuration
19 */
20#ifdef CONFIG_CMD_NET
21#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Simon Guinot79642092011-06-17 19:41:33 +053022#endif
23
24/*
Simon Guinot79642092011-06-17 19:41:33 +053025 * Enable GPI0 support
26 */
Simon Guinot79642092011-06-17 19:41:33 +053027
28/*
Simon Guinotc841c122011-11-01 16:44:12 +053029 * Enable I2C support
30 */
31#ifdef CONFIG_CMD_I2C
32/* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
Simon Guinot2af4d0f2013-06-18 15:14:48 +020033#if defined(CONFIG_NET2BIG_V2)
34#define CONFIG_SYS_I2C_G762_ADDR 0x3e
35#endif
Simon Guinotc841c122011-11-01 16:44:12 +053036#endif /* CONFIG_CMD_I2C */
37
38/*
Simon Guinot8e622432012-09-06 10:51:41 +000039 * Partition support
40 */
Simon Guinot8e622432012-09-06 10:51:41 +000041
42/*
Simon Guinot79642092011-06-17 19:41:33 +053043 * File systems support
44 */
Simon Guinot79642092011-06-17 19:41:33 +053045
46/*
Simon Guinot79642092011-06-17 19:41:33 +053047 * Environment variables configurations
48 */
Simon Guinot79642092011-06-17 19:41:33 +053049
50/*
51 * Default environment variables
52 */
Simon Guinot79642092011-06-17 19:41:33 +053053
54#define CONFIG_EXTRA_ENV_SETTINGS \
55 "stdin=serial\0" \
56 "stdout=serial\0" \
57 "stderr=serial\0" \
58 "bootfile=uImage\0" \
59 "loadaddr=0x800000\0" \
Simon Guinot79642092011-06-17 19:41:33 +053060 "netconsole=" \
61 "set stdin $stdin,nc; " \
62 "set stdout $stdout,nc; " \
63 "set stderr $stderr,nc;\0" \
Simon Guinot6620c652020-06-28 19:00:29 +020064 "diskload=sata init && " \
65 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
Simon Guinot79642092011-06-17 19:41:33 +053066 "usbload=usb start && " \
67 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
68
Simon Guinot77ea0712011-11-21 19:25:47 +053069#endif /* _CONFIG_LACIE_KW_H */