blob: 8110f8376f6effd513f5b91f693449e1758f8446 [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
Luka Perkov87d14a82014-11-30 02:41:49 +010013
Prafulla Wadaskar62634642009-07-16 20:58:00 +053014/*
15 * Version number information
16 */
17#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
18
19/*
20 * High Level Configuration Options (easy to change)
21 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053022#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053023#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
DrEagle511d72d2014-12-17 15:02:48 +010024
25/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053026 * Commands configuration
27 */
DrEaglead881742014-07-25 21:07:30 +020028#define CONFIG_CMD_MMC
DrEagle32ca21f2014-12-17 15:02:44 +010029
Prafulla Wadaskar62634642009-07-16 20:58:00 +053030/*
Quentin Armitagebb7f7282015-10-28 00:47:18 +000031 * Standard filesystems
32 */
33#define CONFIG_SYS_MVFS
34
35/*
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000036 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar32686292010-09-30 22:53:43 +053037 * to enable certain macros
Prafulla Wadaskar62634642009-07-16 20:58:00 +053038 */
Quentin Armitagea99ac8a2015-10-28 00:47:21 +000039#include "mv-plug-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053040
41/*
42 * Environment variables configurations
43 */
44#ifdef CONFIG_CMD_NAND
45#define CONFIG_ENV_IS_IN_NAND 1
46#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
47#else
48#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
49#endif
50/*
51 * max 4k env size is enough, but in case of nand
52 * it has to be rounded to sector size
53 */
54#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEaglec2bc79d2014-09-07 18:01:20 +020055#define CONFIG_ENV_ADDR 0x80000
56#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053057
58/*
59 * Default environment variables
60 */
61#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
62 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
63 "${x_bootcmd_usb}; bootm 0x6400000;"
64
DrEagle711d28e2014-09-07 18:01:23 +020065#define CONFIG_MTDPARTS \
Peter Korsgaard3bbf6dd2016-01-17 18:23:43 +010066 "orion_nand:512K(uboot)," \
DrEagle711d28e2014-09-07 18:01:23 +020067 "512K(env),1M(script),6M(kernel)," \
Peter Korsgaarde051d322016-01-17 18:23:42 +010068 "12M(ramdisk),4M(spare),-(rootfs)\0"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053069
70#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
71 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
72 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
73 "x_bootcmd_usb=usb start\0" \
74 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
75
DrEaglea0aa4a72014-09-07 18:01:22 +020076#define MTDIDS_DEFAULT "nand0=orion_nand"
77
78#define MTDPARTS_DEFAULT \
79 "mtdparts="CONFIG_MTDPARTS
80
Prafulla Wadaskar62634642009-07-16 20:58:00 +053081/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053082 * Ethernet Driver configuration
83 */
84#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020085#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053086#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +053087#endif /* CONFIG_CMD_NET */
88
89/*
DrEaglead881742014-07-25 21:07:30 +020090 * SDIO/MMC Card Configuration
91 */
92#ifdef CONFIG_CMD_MMC
93#define CONFIG_MMC
94#define CONFIG_GENERIC_MMC
95#define CONFIG_MVEBU_MMC
96#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
97#endif /* CONFIG_CMD_MMC */
98
99/*
DrEagle9ea48002014-09-07 18:01:21 +0200100 * SATA driver configuration
101 */
102#ifdef CONFIG_CMD_IDE
103#define __io
104#define CONFIG_IDE_PREINIT
105#define CONFIG_DOS_PARTITION
106#define CONFIG_MVSATA_IDE_USE_PORT0
107#define CONFIG_MVSATA_IDE_USE_PORT1
108#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
109#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
110#endif /* CONFIG_CMD_IDE */
111
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530112#endif /* _CONFIG_SHEEVAPLUG_H */