]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/sheevaplug.h
arm: kirkwood: Remove duplicate definition from dreamplug.h
[people/ms/u-boot.git] / include / configs / sheevaplug.h
CommitLineData
55dd4ba5 1/*
0f88a5a9
D
2 * (C) Copyright 2009-2014
3 * Gerald Kerma <dreagle@doukki.net>
55dd4ba5
PW
4 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
55dd4ba5
PW
8 */
9
10#ifndef _CONFIG_SHEEVAPLUG_H
11#define _CONFIG_SHEEVAPLUG_H
12
d4d8f1b7 13
55dd4ba5
PW
14/*
15 * Version number information
16 */
17#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
18
19/*
20 * High Level Configuration Options (easy to change)
21 */
55dd4ba5 22#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
55dd4ba5
PW
23#define CONFIG_KW88F6281 1 /* SOC Name */
24#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
55dd4ba5 25#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
5414fec8 26
64561639
QA
27/* Add target to build it automatically upon "make" */
28#define CONFIG_BUILD_TARGET "u-boot.kwb"
29
0f88a5a9
D
30/*
31 * Compression configuration
32 */
33#define CONFIG_BZIP2
34#define CONFIG_LZMA
0f88a5a9 35
9a5e0a7d
D
36/*
37 * Enable device tree support
38 */
39#define CONFIG_OF_LIBFDT
40
55dd4ba5
PW
41/*
42 * Commands configuration
43 */
44#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
0f88a5a9 45#define CONFIG_CMD_BOOTZ
64561639 46#define CONFIG_CMD_DATE
55dd4ba5 47#define CONFIG_CMD_ENV
0f88a5a9 48#define CONFIG_CMD_IDE
5414fec8 49#define CONFIG_CMD_MII
3fe3b4fb 50#define CONFIG_CMD_MMC
815451e0 51
ea944003
QA
52/*
53 * Standard filesystems
54 */
55#define CONFIG_SYS_MVFS
56
57/*
58 * Extra file system
59 */
60#define CONFIG_CMD_EXT4
61
55dd4ba5 62/*
54e999a3
PW
63 * mv-common.h should be defined after CMD configs since it used them
64 * to enable certain macros
55dd4ba5 65 */
54e999a3 66#include "mv-common.h"
55dd4ba5
PW
67
68/*
69 * Environment variables configurations
70 */
71#ifdef CONFIG_CMD_NAND
72#define CONFIG_ENV_IS_IN_NAND 1
73#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
74#else
75#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
76#endif
77/*
78 * max 4k env size is enough, but in case of nand
79 * it has to be rounded to sector size
80 */
81#define CONFIG_ENV_SIZE 0x20000 /* 128k */
4dfb0e4d
D
82#define CONFIG_ENV_ADDR 0x80000
83#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
55dd4ba5
PW
84
85/*
86 * Default environment variables
87 */
88#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
89 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
90 "${x_bootcmd_usb}; bootm 0x6400000;"
91
1e3d6403
D
92#define CONFIG_MTDPARTS \
93 "mtdparts=orion_nand:512K(uboot)," \
94 "512K(env),1M(script),6M(kernel)," \
95 "12M(ramdisk),4M(spare),-(rootfs)"
55dd4ba5
PW
96
97#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
98 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
99 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
100 "x_bootcmd_usb=usb start\0" \
101 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
102
65ae9523
D
103#define MTDIDS_DEFAULT "nand0=orion_nand"
104
105#define MTDPARTS_DEFAULT \
106 "mtdparts="CONFIG_MTDPARTS
107
55dd4ba5
PW
108/*
109 * Ethernet Driver configuration
110 */
111#ifdef CONFIG_CMD_NET
d44265ad 112#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
55dd4ba5 113#define CONFIG_PHY_BASE_ADR 0
55dd4ba5
PW
114#endif /* CONFIG_CMD_NET */
115
3fe3b4fb
D
116/*
117 * SDIO/MMC Card Configuration
118 */
119#ifdef CONFIG_CMD_MMC
120#define CONFIG_MMC
121#define CONFIG_GENERIC_MMC
122#define CONFIG_MVEBU_MMC
123#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
124#endif /* CONFIG_CMD_MMC */
125
0f88a5a9
D
126/*
127 * SATA driver configuration
128 */
129#ifdef CONFIG_CMD_IDE
130#define __io
131#define CONFIG_IDE_PREINIT
132#define CONFIG_DOS_PARTITION
133#define CONFIG_MVSATA_IDE_USE_PORT0
134#define CONFIG_MVSATA_IDE_USE_PORT1
135#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
136#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
137#endif /* CONFIG_CMD_IDE */
138
64561639
QA
139/*
140 * RTC driver configuration
141 */
142#ifdef CONFIG_CMD_DATE
143#define CONFIG_RTC_MV
144#endif /* CONFIG_CMD_DATE */
145
64561639
QA
146#define CONFIG_SYS_ALT_MEMTEST
147
55dd4ba5 148#endif /* _CONFIG_SHEEVAPLUG_H */