blob: fa76a257fa1d15101ad66912a0d932c3e9b077c0 [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/*
14 * Version number information
15 */
16#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
17
18/*
19 * High Level Configuration Options (easy to change)
20 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053021#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053022#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
DrEagle511d72d2014-12-17 15:02:48 +010023
24/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053025 * Commands configuration
26 */
DrEagle32ca21f2014-12-17 15:02:44 +010027
Prafulla Wadaskar62634642009-07-16 20:58:00 +053028/*
Quentin Armitagebb7f7282015-10-28 00:47:18 +000029 * Standard filesystems
30 */
31#define CONFIG_SYS_MVFS
32
33/*
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000034 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar32686292010-09-30 22:53:43 +053035 * to enable certain macros
Prafulla Wadaskar62634642009-07-16 20:58:00 +053036 */
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000037#include "mv-plug-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053038
39/*
40 * Environment variables configurations
41 */
42#ifdef CONFIG_CMD_NAND
43#define CONFIG_ENV_IS_IN_NAND 1
44#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
45#else
46#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
47#endif
48/*
49 * max 4k env size is enough, but in case of nand
50 * it has to be rounded to sector size
51 */
52#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEaglec2bc79d2014-09-07 18:01:20 +020053#define CONFIG_ENV_ADDR 0x80000
54#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053055
56/*
57 * Default environment variables
58 */
59#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
60 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
Peter Korsgaard89132022016-01-17 18:23:44 +010061 "bootm 0x6400000;"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053062
DrEagle711d28e2014-09-07 18:01:23 +020063#define CONFIG_MTDPARTS \
Peter Korsgaard3bbf6dd2016-01-17 18:23:43 +010064 "orion_nand:512K(uboot)," \
Peter Korsgaard280eb452016-01-17 18:23:45 +010065 "512K(env),4M(kernel)," \
66 "-(rootfs)\0"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053067
68#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
69 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
Peter Korsgaard280eb452016-01-17 18:23:45 +010070 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar62634642009-07-16 20:58:00 +053071 "x_bootcmd_usb=usb start\0" \
72 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
73
DrEaglea0aa4a72014-09-07 18:01:22 +020074#define MTDIDS_DEFAULT "nand0=orion_nand"
75
76#define MTDPARTS_DEFAULT \
77 "mtdparts="CONFIG_MTDPARTS
78
Prafulla Wadaskar62634642009-07-16 20:58:00 +053079/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053080 * Ethernet Driver configuration
81 */
82#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020083#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053084#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +053085#endif /* CONFIG_CMD_NET */
86
87/*
DrEaglead881742014-07-25 21:07:30 +020088 * SDIO/MMC Card Configuration
89 */
90#ifdef CONFIG_CMD_MMC
91#define CONFIG_MMC
92#define CONFIG_GENERIC_MMC
93#define CONFIG_MVEBU_MMC
94#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
95#endif /* CONFIG_CMD_MMC */
96
97/*
DrEagle9ea48002014-09-07 18:01:21 +020098 * SATA driver configuration
99 */
100#ifdef CONFIG_CMD_IDE
101#define __io
102#define CONFIG_IDE_PREINIT
103#define CONFIG_DOS_PARTITION
104#define CONFIG_MVSATA_IDE_USE_PORT0
105#define CONFIG_MVSATA_IDE_USE_PORT1
106#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
107#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
108#endif /* CONFIG_CMD_IDE */
109
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530110#endif /* _CONFIG_SHEEVAPLUG_H */