blob: deec71734dc792498bc8c6e96db5468e9dcc2ce2 [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
12/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053013 * High Level Configuration Options (easy to change)
14 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053015#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
DrEagle511d72d2014-12-17 15:02:48 +010016
17/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053018 * Commands configuration
19 */
DrEagle32ca21f2014-12-17 15:02:44 +010020
Prafulla Wadaskar62634642009-07-16 20:58:00 +053021/*
Quentin Armitagebb7f7282015-10-28 00:47:18 +000022 * Standard filesystems
23 */
Chris Packham273a1342018-05-26 22:32:29 +120024#define CONFIG_BZIP2
Quentin Armitagebb7f7282015-10-28 00:47:18 +000025
26/*
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000027 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar32686292010-09-30 22:53:43 +053028 * to enable certain macros
Prafulla Wadaskar62634642009-07-16 20:58:00 +053029 */
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000030#include "mv-plug-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053031
32/*
33 * Environment variables configurations
34 */
35#ifdef CONFIG_CMD_NAND
Prafulla Wadaskar62634642009-07-16 20:58:00 +053036#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053037#endif
38/*
39 * max 4k env size is enough, but in case of nand
40 * it has to be rounded to sector size
41 */
42#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEaglec2bc79d2014-09-07 18:01:20 +020043#define CONFIG_ENV_ADDR 0x80000
44#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Chris Packhamf585c012018-06-04 19:51:49 +120045/*
46 * Environment is right behind U-Boot in flash. Make sure U-Boot
47 * doesn't grow into the environment area.
48 */
49#define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET
Prafulla Wadaskar62634642009-07-16 20:58:00 +053050
51/*
52 * Default environment variables
53 */
54#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
55 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
Peter Korsgaard89132022016-01-17 18:23:44 +010056 "bootm 0x6400000;"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053057
Prafulla Wadaskar62634642009-07-16 20:58:00 +053058#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
Tom Rini5ad8e112017-10-22 17:55:07 -040059 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
Peter Korsgaard280eb452016-01-17 18:23:45 +010060 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar62634642009-07-16 20:58:00 +053061 "x_bootcmd_usb=usb start\0" \
62 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
63
64/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053065 * Ethernet Driver configuration
66 */
67#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020068#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053069#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +053070#endif /* CONFIG_CMD_NET */
71
72/*
DrEaglead881742014-07-25 21:07:30 +020073 * SDIO/MMC Card Configuration
74 */
75#ifdef CONFIG_CMD_MMC
DrEaglead881742014-07-25 21:07:30 +020076#define CONFIG_MVEBU_MMC
77#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
78#endif /* CONFIG_CMD_MMC */
79
80/*
DrEagle9ea48002014-09-07 18:01:21 +020081 * SATA driver configuration
82 */
Simon Glassb569a012017-05-17 03:25:30 -060083#ifdef CONFIG_IDE
DrEagle9ea48002014-09-07 18:01:21 +020084#define __io
85#define CONFIG_IDE_PREINIT
DrEagle9ea48002014-09-07 18:01:21 +020086#define CONFIG_MVSATA_IDE_USE_PORT0
87#define CONFIG_MVSATA_IDE_USE_PORT1
88#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
89#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
Simon Glassb569a012017-05-17 03:25:30 -060090#endif /* CONFIG_IDE */
DrEagle9ea48002014-09-07 18:01:21 +020091
Prafulla Wadaskar62634642009-07-16 20:58:00 +053092#endif /* _CONFIG_SHEEVAPLUG_H */