blob: 0a988e2fadf2328e3e59d583ab2b6d50db3c2b9c [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/*
25 * SATA Driver configuration
26 */
Simon Guinot80f69342020-06-28 19:00:29 +020027
28#ifdef CONFIG_SATA
29#define CONFIG_SYS_64BIT_LBA
30#define CONFIG_LBA48
Simon Guinotcaf09e22012-09-06 10:51:43 +000031#if defined(CONFIG_NETSPACE_MAX_V2) || defined(CONFIG_D2NET_V2) || \
32 defined(CONFIG_NET2BIG_V2)
Simon Guinot16311a22011-06-17 19:41:33 +053033#endif
Simon Guinot80f69342020-06-28 19:00:29 +020034#endif /* CONFIG_SATA */
Simon Guinot16311a22011-06-17 19:41:33 +053035
36/*
37 * Enable GPI0 support
38 */
Simon Guinot16311a22011-06-17 19:41:33 +053039
40/*
Simon Guinot5aaebab2011-11-01 16:44:12 +053041 * Enable I2C support
42 */
43#ifdef CONFIG_CMD_I2C
44/* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
Simon Guinot1dd67e62013-06-18 15:14:48 +020045#if defined(CONFIG_NET2BIG_V2)
46#define CONFIG_SYS_I2C_G762_ADDR 0x3e
47#endif
Simon Guinot5aaebab2011-11-01 16:44:12 +053048#endif /* CONFIG_CMD_I2C */
49
50/*
Simon Guinot707f5d62012-09-06 10:51:41 +000051 * Partition support
52 */
Simon Guinot707f5d62012-09-06 10:51:41 +000053
54/*
Simon Guinot16311a22011-06-17 19:41:33 +053055 * File systems support
56 */
Simon Guinot16311a22011-06-17 19:41:33 +053057
58/*
Simon Guinot16311a22011-06-17 19:41:33 +053059 * Environment variables configurations
60 */
Simon Guinot16311a22011-06-17 19:41:33 +053061
62/*
63 * Default environment variables
64 */
Simon Guinot16311a22011-06-17 19:41:33 +053065
66#define CONFIG_EXTRA_ENV_SETTINGS \
67 "stdin=serial\0" \
68 "stdout=serial\0" \
69 "stderr=serial\0" \
70 "bootfile=uImage\0" \
71 "loadaddr=0x800000\0" \
72 "autoload=no\0" \
73 "netconsole=" \
74 "set stdin $stdin,nc; " \
75 "set stdout $stdout,nc; " \
76 "set stderr $stderr,nc;\0" \
Simon Guinot80f69342020-06-28 19:00:29 +020077 "diskload=sata init && " \
78 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
Simon Guinot16311a22011-06-17 19:41:33 +053079 "usbload=usb start && " \
80 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
81
Simon Guinota35cb4c2011-11-21 19:25:47 +053082#endif /* _CONFIG_LACIE_KW_H */