blob: 7ad29f9299799471e4892f3301070fa21a48c268 [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 * Enable GPI0 support
19 */
Simon Guinot79642092011-06-17 19:41:33 +053020
21/*
Simon Guinotc841c122011-11-01 16:44:12 +053022 * Enable I2C support
23 */
24#ifdef CONFIG_CMD_I2C
25/* I2C EEPROM HT24LC04 (512B - 32 pages of 16 Bytes) */
Simon Guinot2af4d0f2013-06-18 15:14:48 +020026#if defined(CONFIG_NET2BIG_V2)
Tom Rini65cc0e22022-11-16 13:10:41 -050027#define CFG_SYS_I2C_G762_ADDR 0x3e
Simon Guinot2af4d0f2013-06-18 15:14:48 +020028#endif
Simon Guinotc841c122011-11-01 16:44:12 +053029#endif /* CONFIG_CMD_I2C */
30
31/*
Simon Guinot8e622432012-09-06 10:51:41 +000032 * Partition support
33 */
Simon Guinot8e622432012-09-06 10:51:41 +000034
35/*
Simon Guinot79642092011-06-17 19:41:33 +053036 * File systems support
37 */
Simon Guinot79642092011-06-17 19:41:33 +053038
39/*
Simon Guinot79642092011-06-17 19:41:33 +053040 * Environment variables configurations
41 */
Simon Guinot79642092011-06-17 19:41:33 +053042
43/*
44 * Default environment variables
45 */
Simon Guinot79642092011-06-17 19:41:33 +053046
Tom Rini0613c362022-12-04 10:03:50 -050047#define CFG_EXTRA_ENV_SETTINGS \
Simon Guinot79642092011-06-17 19:41:33 +053048 "stdin=serial\0" \
49 "stdout=serial\0" \
50 "stderr=serial\0" \
51 "bootfile=uImage\0" \
52 "loadaddr=0x800000\0" \
Simon Guinot79642092011-06-17 19:41:33 +053053 "netconsole=" \
54 "set stdin $stdin,nc; " \
55 "set stdout $stdout,nc; " \
56 "set stderr $stderr,nc;\0" \
Simon Guinot6620c652020-06-28 19:00:29 +020057 "diskload=sata init && " \
58 "ext2load sata 0:1 $loadaddr /boot/$bootfile\0" \
Simon Guinot79642092011-06-17 19:41:33 +053059 "usbload=usb start && " \
60 "fatload usb 0:1 $loadaddr /boot/$bootfile\0"
61
Simon Guinot77ea0712011-11-21 19:25:47 +053062#endif /* _CONFIG_LACIE_KW_H */