blob: e1f8fb8ac84b088720d28f0bb6b62a00252b595d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05302/*
DrEagle0f88a5a2014-09-07 18:01:21 +02003 * (C) Copyright 2009-2014
4 * Gerald Kerma <dreagle@doukki.net>
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05305 * Marvell Semiconductor <www.marvell.com>
6 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05307 */
8
9#ifndef _CONFIG_SHEEVAPLUG_H
10#define _CONFIG_SHEEVAPLUG_H
11
12/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053013 * High Level Configuration Options (easy to change)
14 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053015#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
DrEagle9a5e0a72014-12-17 15:02:48 +010016
Quentin Armitage38c0e862015-10-28 00:47:21 +000017#include "mv-plug-common.h"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053018
19/*
20 * Environment variables configurations
21 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053022/*
23 * max 4k env size is enough, but in case of nand
24 * it has to be rounded to sector size
25 */
Chris Packham84035fc2018-06-04 19:51:49 +120026/*
27 * Environment is right behind U-Boot in flash. Make sure U-Boot
28 * doesn't grow into the environment area.
29 */
30#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053031
32/*
33 * Default environment variables
34 */
35#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
36 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
Peter Korsgaarda8073692016-01-17 18:23:44 +010037 "bootm 0x6400000;"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053038
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053039#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
Tom Rini43ede0b2017-10-22 17:55:07 -040040 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
Peter Korsgaard371b9e92016-01-17 18:23:45 +010041 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053042 "x_bootcmd_usb=usb start\0" \
43 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
44
45/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053046 * Ethernet Driver configuration
47 */
48#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020049#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053050#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053051#endif /* CONFIG_CMD_NET */
52
53/*
DrEagle3fe3b4f2014-07-25 21:07:30 +020054 * SDIO/MMC Card Configuration
55 */
56#ifdef CONFIG_CMD_MMC
DrEagle3fe3b4f2014-07-25 21:07:30 +020057#define CONFIG_MVEBU_MMC
58#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
59#endif /* CONFIG_CMD_MMC */
60
61/*
DrEagle0f88a5a2014-09-07 18:01:21 +020062 * SATA driver configuration
63 */
Simon Glassfc843a02017-05-17 03:25:30 -060064#ifdef CONFIG_IDE
DrEagle0f88a5a2014-09-07 18:01:21 +020065#define __io
66#define CONFIG_IDE_PREINIT
DrEagle0f88a5a2014-09-07 18:01:21 +020067#define CONFIG_MVSATA_IDE_USE_PORT0
68#define CONFIG_MVSATA_IDE_USE_PORT1
69#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
70#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
Simon Glassfc843a02017-05-17 03:25:30 -060071#endif /* CONFIG_IDE */
DrEagle0f88a5a2014-09-07 18:01:21 +020072
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053073#endif /* _CONFIG_SHEEVAPLUG_H */