blob: fa76a257fa1d15101ad66912a0d932c3e9b077c0 [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/*
14 * Version number information
15 */
16#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
17
18/*
19 * High Level Configuration Options (easy to change)
20 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053021#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053022#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
DrEagle9a5e0a72014-12-17 15:02:48 +010023
24/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053025 * Commands configuration
26 */
DrEagle815451e2014-12-17 15:02:44 +010027
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053028/*
Quentin Armitageea944002015-10-28 00:47:18 +000029 * Standard filesystems
30 */
31#define CONFIG_SYS_MVFS
32
33/*
Quentin Armitage38c0e862015-10-28 00:47:21 +000034 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053035 * to enable certain macros
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053036 */
Quentin Armitage38c0e862015-10-28 00:47:21 +000037#include "mv-plug-common.h"
Prafulla Wadaskar55dd4ba2009-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 */
DrEagle4dfb0e42014-09-07 18:01:20 +020053#define CONFIG_ENV_ADDR 0x80000
54#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar55dd4ba2009-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 Korsgaarda8073692016-01-17 18:23:44 +010061 "bootm 0x6400000;"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053062
DrEagle1e3d6402014-09-07 18:01:23 +020063#define CONFIG_MTDPARTS \
Peter Korsgaard10112262016-01-17 18:23:43 +010064 "orion_nand:512K(uboot)," \
Peter Korsgaard371b9e92016-01-17 18:23:45 +010065 "512K(env),4M(kernel)," \
66 "-(rootfs)\0"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053067
68#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
69 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
Peter Korsgaard371b9e92016-01-17 18:23:45 +010070 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053071 "x_bootcmd_usb=usb start\0" \
72 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
73
DrEagle65ae9522014-09-07 18:01:22 +020074#define MTDIDS_DEFAULT "nand0=orion_nand"
75
76#define MTDPARTS_DEFAULT \
77 "mtdparts="CONFIG_MTDPARTS
78
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053079/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053080 * Ethernet Driver configuration
81 */
82#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020083#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053084#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053085#endif /* CONFIG_CMD_NET */
86
87/*
DrEagle3fe3b4f2014-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/*
DrEagle0f88a5a2014-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 Wadaskar55dd4ba2009-07-16 20:58:00 +0530110#endif /* _CONFIG_SHEEVAPLUG_H */