blob: 828f91096344ba1fa2d6bd2c3508cd1e28495c7c [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
13/*
Simon Guinot1dd67e62013-06-18 15:14:48 +020014 * Enable platform initialisation via misc_init_r() function
15 */
Simon Guinot1dd67e62013-06-18 15:14:48 +020016
17/*
Simon Guinot16311a22011-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 Guinot16311a22011-06-17 19:41:33 +053022#endif
23
24/*
Simon Guinot16311a22011-06-17 19:41:33 +053025 * Enable GPI0 support
26 */
Simon Guinot16311a22011-06-17 19:41:33 +053027
28/*
Simon Guinot5aaebab2011-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 Guinot1dd67e62013-06-18 15:14:48 +020033#if defined(CONFIG_NET2BIG_V2)
Tom Rini6a5dccc2022-11-16 13:10:41 -050034#define CFG_SYS_I2C_G762_ADDR 0x3e
Simon Guinot1dd67e62013-06-18 15:14:48 +020035#endif
Simon Guinot5aaebab2011-11-01 16:44:12 +053036#endif /* CONFIG_CMD_I2C */
37
38/*
Simon Guinot707f5d62012-09-06 10:51:41 +000039 * Partition support
40 */
Simon Guinot707f5d62012-09-06 10:51:41 +000041
42/*
Simon Guinot16311a22011-06-17 19:41:33 +053043 * File systems support
44 */
Simon Guinot16311a22011-06-17 19:41:33 +053045
46/*
Simon Guinot16311a22011-06-17 19:41:33 +053047 * Environment variables configurations
48 */
Simon Guinot16311a22011-06-17 19:41:33 +053049
50/*
51 * Default environment variables
52 */
Simon Guinot16311a22011-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 Guinot16311a22011-06-17 19:41:33 +053060 "netconsole=" \
61 "set stdin $stdin,nc; " \
62 "set stdout $stdout,nc; " \
63 "set stderr $stderr,nc;\0" \
Simon Guinot80f69342020-06-28 19:00:29 +020064 "diskload=sata init && " \
65 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
Simon Guinot16311a22011-06-17 19:41:33 +053066 "usbload=usb start && " \
67 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
68
Simon Guinota35cb4c2011-11-21 19:25:47 +053069#endif /* _CONFIG_LACIE_KW_H */