blob: 4499a63aed24ad6123396381d816f0451b92f864 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Prafulla Wadaskar62634642009-07-16 20:58:00 +05302/*
DrEagle9ea48002014-09-07 18:01:21 +02003 * (C) Copyright 2009-2014
4 * Gerald Kerma <dreagle@doukki.net>
Prafulla Wadaskar62634642009-07-16 20:58:00 +05305 * Marvell Semiconductor <www.marvell.com>
6 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
Prafulla Wadaskar62634642009-07-16 20:58:00 +05307 */
8
9#ifndef _CONFIG_SHEEVAPLUG_H
10#define _CONFIG_SHEEVAPLUG_H
11
Tom Rinib7b337b2021-12-17 18:08:44 -050012#include "mv-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053013
14/*
15 * Environment variables configurations
16 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053017/*
18 * max 4k env size is enough, but in case of nand
19 * it has to be rounded to sector size
20 */
Chris Packhamf585c012018-06-04 19:51:49 +120021/*
22 * Environment is right behind U-Boot in flash. Make sure U-Boot
23 * doesn't grow into the environment area.
24 */
25#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
Prafulla Wadaskar62634642009-07-16 20:58:00 +053026
27/*
28 * Default environment variables
29 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053030
Prafulla Wadaskar62634642009-07-16 20:58:00 +053031#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
Tom Rini5ad8e112017-10-22 17:55:07 -040032 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
Peter Korsgaard280eb452016-01-17 18:23:45 +010033 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar62634642009-07-16 20:58:00 +053034 "x_bootcmd_usb=usb start\0" \
35 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
36
37/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053038 * Ethernet Driver configuration
39 */
40#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020041#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053042#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +053043#endif /* CONFIG_CMD_NET */
44
45/*
DrEagle9ea48002014-09-07 18:01:21 +020046 * SATA driver configuration
47 */
Tony Dinh488c519d2021-07-13 21:35:46 -070048#ifdef CONFIG_SATA
Tony Dinh488c519d2021-07-13 21:35:46 -070049#define CONFIG_LBA48
50#endif /* CONFIG_SATA */
DrEagle9ea48002014-09-07 18:01:21 +020051
Prafulla Wadaskar62634642009-07-16 20:58:00 +053052#endif /* _CONFIG_SHEEVAPLUG_H */