blob: 3ebc98963866aad2c952f5394bb5cf51af49263f [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#define CONFIG_SYS_GENERIC_BOARD
14
Prafulla Wadaskar62634642009-07-16 20:58:00 +053015/*
16 * Version number information
17 */
18#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
19
20/*
21 * High Level Configuration Options (easy to change)
22 */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053023#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053024#define CONFIG_KW88F6281 1 /* SOC Name */
25#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053026#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053027
28/*
DrEagle9ea48002014-09-07 18:01:21 +020029 * Compression configuration
30 */
31#define CONFIG_BZIP2
32#define CONFIG_LZMA
33#define CONFIG_LZO
34
35/*
DrEaglee73ac1f2014-09-07 18:01:24 +020036 * Miscellaneous configurable options
37 */
38#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
39
40/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053041 * Commands configuration
42 */
43#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
44#include <config_cmd_default.h>
DrEagle9ea48002014-09-07 18:01:21 +020045#define CONFIG_CMD_BOOTZ
Prafulla Wadaskar62634642009-07-16 20:58:00 +053046#define CONFIG_CMD_DHCP
47#define CONFIG_CMD_ENV
DrEagle9ea48002014-09-07 18:01:21 +020048#define CONFIG_CMD_IDE
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +053049#define CONFIG_CMD_MII
DrEaglead881742014-07-25 21:07:30 +020050#define CONFIG_CMD_MMC
Prafulla Wadaskar62634642009-07-16 20:58:00 +053051#define CONFIG_CMD_NAND
52#define CONFIG_CMD_PING
53#define CONFIG_CMD_USB
DrEagle32ca21f2014-12-17 15:02:44 +010054
Prafulla Wadaskar62634642009-07-16 20:58:00 +053055/*
Prafulla Wadaskar32686292010-09-30 22:53:43 +053056 * mv-common.h should be defined after CMD configs since it used them
57 * to enable certain macros
Prafulla Wadaskar62634642009-07-16 20:58:00 +053058 */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053059#include "mv-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053060
61/*
62 * Environment variables configurations
63 */
64#ifdef CONFIG_CMD_NAND
65#define CONFIG_ENV_IS_IN_NAND 1
66#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
67#else
68#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
69#endif
70/*
71 * max 4k env size is enough, but in case of nand
72 * it has to be rounded to sector size
73 */
74#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEaglec2bc79d2014-09-07 18:01:20 +020075#define CONFIG_ENV_ADDR 0x80000
76#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053077
78/*
79 * Default environment variables
80 */
81#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
82 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
83 "${x_bootcmd_usb}; bootm 0x6400000;"
84
DrEagle711d28e2014-09-07 18:01:23 +020085#define CONFIG_MTDPARTS \
86 "mtdparts=orion_nand:512K(uboot)," \
87 "512K(env),1M(script),6M(kernel)," \
88 "12M(ramdisk),4M(spare),-(rootfs)"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053089
90#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
91 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
92 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
93 "x_bootcmd_usb=usb start\0" \
94 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
95
DrEaglea0aa4a72014-09-07 18:01:22 +020096#define MTDIDS_DEFAULT "nand0=orion_nand"
97
98#define MTDPARTS_DEFAULT \
99 "mtdparts="CONFIG_MTDPARTS
100
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530101/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530102 * Ethernet Driver configuration
103 */
104#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +0200105#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530106#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530107#endif /* CONFIG_CMD_NET */
108
109/*
DrEaglead881742014-07-25 21:07:30 +0200110 * SDIO/MMC Card Configuration
111 */
112#ifdef CONFIG_CMD_MMC
113#define CONFIG_MMC
114#define CONFIG_GENERIC_MMC
115#define CONFIG_MVEBU_MMC
116#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
117#endif /* CONFIG_CMD_MMC */
118
119/*
DrEagle9ea48002014-09-07 18:01:21 +0200120 * SATA driver configuration
121 */
122#ifdef CONFIG_CMD_IDE
123#define __io
124#define CONFIG_IDE_PREINIT
125#define CONFIG_DOS_PARTITION
126#define CONFIG_MVSATA_IDE_USE_PORT0
127#define CONFIG_MVSATA_IDE_USE_PORT1
128#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
129#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
130#endif /* CONFIG_CMD_IDE */
131
132/*
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +0530133 * File system
134 */
135#define CONFIG_CMD_EXT2
DrEagle9ea48002014-09-07 18:01:21 +0200136#define CONFIG_CMD_EXT4
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +0530137#define CONFIG_CMD_FAT
138#define CONFIG_CMD_JFFS2
139#define CONFIG_CMD_UBI
140#define CONFIG_CMD_UBIFS
141#define CONFIG_RBTREE
142#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
143#define CONFIG_MTD_PARTITIONS
144#define CONFIG_CMD_MTDPARTS
145#define CONFIG_LZO
146
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530147#endif /* _CONFIG_SHEEVAPLUG_H */