blob: d4c9995d50af6f97fbf92502ac46ef443be25807 [file] [log] [blame]
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05301/*
DrEagle0f88a5a2014-09-07 18:01:21 +02002 * (C) Copyright 2009-2014
3 * Gerald Kerma <dreagle@doukki.net>
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05304 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05308 */
9
10#ifndef _CONFIG_SHEEVAPLUG_H
11#define _CONFIG_SHEEVAPLUG_H
12
13/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053014 * High Level Configuration Options (easy to change)
15 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053016#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053017#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
DrEagle9a5e0a72014-12-17 15:02:48 +010018
19/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053020 * Commands configuration
21 */
DrEagle815451e2014-12-17 15:02:44 +010022
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053023/*
Quentin Armitageea944002015-10-28 00:47:18 +000024 * Standard filesystems
25 */
26#define CONFIG_SYS_MVFS
27
28/*
Quentin Armitage38c0e862015-10-28 00:47:21 +000029 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053030 * to enable certain macros
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053031 */
Quentin Armitage38c0e862015-10-28 00:47:21 +000032#include "mv-plug-common.h"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053033
34/*
35 * Environment variables configurations
36 */
37#ifdef CONFIG_CMD_NAND
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053038#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053039#endif
40/*
41 * max 4k env size is enough, but in case of nand
42 * it has to be rounded to sector size
43 */
44#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEagle4dfb0e42014-09-07 18:01:20 +020045#define CONFIG_ENV_ADDR 0x80000
46#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053047
48/*
49 * Default environment variables
50 */
51#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
52 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
Peter Korsgaarda8073692016-01-17 18:23:44 +010053 "bootm 0x6400000;"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053054
DrEagle1e3d6402014-09-07 18:01:23 +020055#define CONFIG_MTDPARTS \
Peter Korsgaard10112262016-01-17 18:23:43 +010056 "orion_nand:512K(uboot)," \
Peter Korsgaard371b9e92016-01-17 18:23:45 +010057 "512K(env),4M(kernel)," \
58 "-(rootfs)\0"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053059
60#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
61 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
Peter Korsgaard371b9e92016-01-17 18:23:45 +010062 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053063 "x_bootcmd_usb=usb start\0" \
64 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
65
DrEagle65ae9522014-09-07 18:01:22 +020066#define MTDIDS_DEFAULT "nand0=orion_nand"
67
68#define MTDPARTS_DEFAULT \
69 "mtdparts="CONFIG_MTDPARTS
70
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053071/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053072 * Ethernet Driver configuration
73 */
74#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020075#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053076#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053077#endif /* CONFIG_CMD_NET */
78
79/*
DrEagle3fe3b4f2014-07-25 21:07:30 +020080 * SDIO/MMC Card Configuration
81 */
82#ifdef CONFIG_CMD_MMC
DrEagle3fe3b4f2014-07-25 21:07:30 +020083#define CONFIG_MVEBU_MMC
84#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
85#endif /* CONFIG_CMD_MMC */
86
87/*
DrEagle0f88a5a2014-09-07 18:01:21 +020088 * SATA driver configuration
89 */
Simon Glassfc843a02017-05-17 03:25:30 -060090#ifdef CONFIG_IDE
DrEagle0f88a5a2014-09-07 18:01:21 +020091#define __io
92#define CONFIG_IDE_PREINIT
DrEagle0f88a5a2014-09-07 18:01:21 +020093#define CONFIG_MVSATA_IDE_USE_PORT0
94#define CONFIG_MVSATA_IDE_USE_PORT1
95#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
96#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
Simon Glassfc843a02017-05-17 03:25:30 -060097#endif /* CONFIG_IDE */
DrEagle0f88a5a2014-09-07 18:01:21 +020098
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053099#endif /* _CONFIG_SHEEVAPLUG_H */