blob: 76cdbe0c6dcb2162669243bbb0beee76b595f67e [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_KW88F6281 1 /* SOC Name */
24#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053025#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053026
27/*
DrEagle9ea48002014-09-07 18:01:21 +020028 * Compression configuration
29 */
30#define CONFIG_BZIP2
31#define CONFIG_LZMA
32#define CONFIG_LZO
33
34/*
DrEagle511d72d2014-12-17 15:02:48 +010035 * Enable device tree support
36 */
37#define CONFIG_OF_LIBFDT
38
39/*
DrEaglee73ac1f2014-09-07 18:01:24 +020040 * Miscellaneous configurable options
41 */
42#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
43
44/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +053045 * Commands configuration
46 */
47#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
DrEagle9ea48002014-09-07 18:01:21 +020048#define CONFIG_CMD_BOOTZ
Prafulla Wadaskar62634642009-07-16 20:58:00 +053049#define CONFIG_CMD_DHCP
50#define CONFIG_CMD_ENV
DrEagle9ea48002014-09-07 18:01:21 +020051#define CONFIG_CMD_IDE
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +053052#define CONFIG_CMD_MII
DrEaglead881742014-07-25 21:07:30 +020053#define CONFIG_CMD_MMC
Prafulla Wadaskar62634642009-07-16 20:58:00 +053054#define CONFIG_CMD_NAND
55#define CONFIG_CMD_PING
56#define CONFIG_CMD_USB
DrEagle32ca21f2014-12-17 15:02:44 +010057
Prafulla Wadaskar62634642009-07-16 20:58:00 +053058/*
Prafulla Wadaskar32686292010-09-30 22:53:43 +053059 * mv-common.h should be defined after CMD configs since it used them
60 * to enable certain macros
Prafulla Wadaskar62634642009-07-16 20:58:00 +053061 */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053062#include "mv-common.h"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053063
64/*
65 * Environment variables configurations
66 */
67#ifdef CONFIG_CMD_NAND
68#define CONFIG_ENV_IS_IN_NAND 1
69#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
70#else
71#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
72#endif
73/*
74 * max 4k env size is enough, but in case of nand
75 * it has to be rounded to sector size
76 */
77#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEaglec2bc79d2014-09-07 18:01:20 +020078#define CONFIG_ENV_ADDR 0x80000
79#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar62634642009-07-16 20:58:00 +053080
81/*
82 * Default environment variables
83 */
84#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
85 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
86 "${x_bootcmd_usb}; bootm 0x6400000;"
87
DrEagle711d28e2014-09-07 18:01:23 +020088#define CONFIG_MTDPARTS \
89 "mtdparts=orion_nand:512K(uboot)," \
90 "512K(env),1M(script),6M(kernel)," \
91 "12M(ramdisk),4M(spare),-(rootfs)"
Prafulla Wadaskar62634642009-07-16 20:58:00 +053092
93#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
94 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
95 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
96 "x_bootcmd_usb=usb start\0" \
97 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
98
DrEaglea0aa4a72014-09-07 18:01:22 +020099#define MTDIDS_DEFAULT "nand0=orion_nand"
100
101#define MTDPARTS_DEFAULT \
102 "mtdparts="CONFIG_MTDPARTS
103
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530104/*
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530105 * Ethernet Driver configuration
106 */
107#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +0200108#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530109#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530110#endif /* CONFIG_CMD_NET */
111
112/*
DrEaglead881742014-07-25 21:07:30 +0200113 * SDIO/MMC Card Configuration
114 */
115#ifdef CONFIG_CMD_MMC
116#define CONFIG_MMC
117#define CONFIG_GENERIC_MMC
118#define CONFIG_MVEBU_MMC
119#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
120#endif /* CONFIG_CMD_MMC */
121
122/*
DrEagle9ea48002014-09-07 18:01:21 +0200123 * SATA driver configuration
124 */
125#ifdef CONFIG_CMD_IDE
126#define __io
127#define CONFIG_IDE_PREINIT
128#define CONFIG_DOS_PARTITION
129#define CONFIG_MVSATA_IDE_USE_PORT0
130#define CONFIG_MVSATA_IDE_USE_PORT1
131#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
132#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
133#endif /* CONFIG_CMD_IDE */
134
135/*
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +0530136 * File system
137 */
138#define CONFIG_CMD_EXT2
DrEagle9ea48002014-09-07 18:01:21 +0200139#define CONFIG_CMD_EXT4
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +0530140#define CONFIG_CMD_FAT
141#define CONFIG_CMD_JFFS2
142#define CONFIG_CMD_UBI
143#define CONFIG_CMD_UBIFS
144#define CONFIG_RBTREE
145#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
146#define CONFIG_MTD_PARTITIONS
147#define CONFIG_CMD_MTDPARTS
Frans Meulenbroeks7e362e92010-04-06 18:26:19 +0530148
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530149#endif /* _CONFIG_SHEEVAPLUG_H */