blob: 656db45adf19e3b422ab219b94e19fd10ff25041 [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
17/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053018 * Commands configuration
19 */
DrEagle815451e2014-12-17 15:02:44 +010020
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053021/*
Quentin Armitageea944002015-10-28 00:47:18 +000022 * Standard filesystems
23 */
24#define CONFIG_SYS_MVFS
25
26/*
Quentin Armitage38c0e862015-10-28 00:47:21 +000027 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053028 * to enable certain macros
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053029 */
Quentin Armitage38c0e862015-10-28 00:47:21 +000030#include "mv-plug-common.h"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053031
32/*
33 * Environment variables configurations
34 */
35#ifdef CONFIG_CMD_NAND
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053036#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
Prafulla Wadaskar55dd4ba2009-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 */
DrEagle4dfb0e42014-09-07 18:01:20 +020043#define CONFIG_ENV_ADDR 0x80000
44#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053045
46/*
47 * Default environment variables
48 */
49#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
50 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
Peter Korsgaarda8073692016-01-17 18:23:44 +010051 "bootm 0x6400000;"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053052
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053053#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
Tom Rini43ede0b2017-10-22 17:55:07 -040054 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \
Peter Korsgaard371b9e92016-01-17 18:23:45 +010055 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053056 "x_bootcmd_usb=usb start\0" \
57 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
58
59/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053060 * Ethernet Driver configuration
61 */
62#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020063#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053064#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053065#endif /* CONFIG_CMD_NET */
66
67/*
DrEagle3fe3b4f2014-07-25 21:07:30 +020068 * SDIO/MMC Card Configuration
69 */
70#ifdef CONFIG_CMD_MMC
DrEagle3fe3b4f2014-07-25 21:07:30 +020071#define CONFIG_MVEBU_MMC
72#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
73#endif /* CONFIG_CMD_MMC */
74
75/*
DrEagle0f88a5a2014-09-07 18:01:21 +020076 * SATA driver configuration
77 */
Simon Glassfc843a02017-05-17 03:25:30 -060078#ifdef CONFIG_IDE
DrEagle0f88a5a2014-09-07 18:01:21 +020079#define __io
80#define CONFIG_IDE_PREINIT
DrEagle0f88a5a2014-09-07 18:01:21 +020081#define CONFIG_MVSATA_IDE_USE_PORT0
82#define CONFIG_MVSATA_IDE_USE_PORT1
83#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
84#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
Simon Glassfc843a02017-05-17 03:25:30 -060085#endif /* CONFIG_IDE */
DrEagle0f88a5a2014-09-07 18:01:21 +020086
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053087#endif /* _CONFIG_SHEEVAPLUG_H */