blob: ebed1d526c97aa981ae0d0815828e309612a4233 [file] [log] [blame]
Prafulla Wadaskar62634642009-07-16 20:58:00 +05301/*
DrEagle9ea48002014-09-07 18:01:21 +02002 * (C) Copyright 2009-2014
3 * Gerald Kerma <dreagle@doukki.net>
Prafulla Wadaskar62634642009-07-16 20:58:00 +05304 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskar62634642009-07-16 20:58:00 +05308 */
9
10#ifndef _CONFIG_SHEEVAPLUG_H
11#define _CONFIG_SHEEVAPLUG_H
12
13/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053014 * High Level Configuration Options (easy to change)
15 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053016#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
DrEagle511d72d2014-12-17 15:02:48 +010017
18/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053019 * Commands configuration
20 */
DrEagle32ca21f2014-12-17 15:02:44 +010021
Prafulla Wadaskar62634642009-07-16 20:58:00 +053022/*
Quentin Armitagebb7f7282015-10-28 00:47:18 +000023 * Standard filesystems
24 */
25#define CONFIG_SYS_MVFS
26
27/*
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000028 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar32686292010-09-30 22:53:43 +053029 * to enable certain macros
Prafulla Wadaskar62634642009-07-16 20:58:00 +053030 */
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000031#include "mv-plug-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053032
33/*
34 * Environment variables configurations
35 */
36#ifdef CONFIG_CMD_NAND
Prafulla Wadaskar62634642009-07-16 20:58:00 +053037#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053038#endif
39/*
40 * max 4k env size is enough, but in case of nand
41 * it has to be rounded to sector size
42 */
43#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEaglec2bc79d2014-09-07 18:01:20 +020044#define CONFIG_ENV_ADDR 0x80000
45#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053046
47/*
48 * Default environment variables
49 */
50#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
51 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
Peter Korsgaard89132022016-01-17 18:23:44 +010052 "bootm 0x6400000;"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053053
Prafulla Wadaskar62634642009-07-16 20:58:00 +053054#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
Tom Rini5ad8e112017-10-22 17:55:07 -040055 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
Peter Korsgaard280eb452016-01-17 18:23:45 +010056 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar62634642009-07-16 20:58:00 +053057 "x_bootcmd_usb=usb start\0" \
58 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
59
60/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053061 * Ethernet Driver configuration
62 */
63#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020064#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053065#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +053066#endif /* CONFIG_CMD_NET */
67
68/*
DrEaglead881742014-07-25 21:07:30 +020069 * SDIO/MMC Card Configuration
70 */
71#ifdef CONFIG_CMD_MMC
DrEaglead881742014-07-25 21:07:30 +020072#define CONFIG_MVEBU_MMC
73#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
74#endif /* CONFIG_CMD_MMC */
75
76/*
DrEagle9ea48002014-09-07 18:01:21 +020077 * SATA driver configuration
78 */
Simon Glassb569a012017-05-17 03:25:30 -060079#ifdef CONFIG_IDE
DrEagle9ea48002014-09-07 18:01:21 +020080#define __io
81#define CONFIG_IDE_PREINIT
DrEagle9ea48002014-09-07 18:01:21 +020082#define CONFIG_MVSATA_IDE_USE_PORT0
83#define CONFIG_MVSATA_IDE_USE_PORT1
84#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
85#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
Simon Glassb569a012017-05-17 03:25:30 -060086#endif /* CONFIG_IDE */
DrEagle9ea48002014-09-07 18:01:21 +020087
Prafulla Wadaskar62634642009-07-16 20:58:00 +053088#endif /* _CONFIG_SHEEVAPLUG_H */