blob: 675ec52bcf9f2ad4575179987ba01bf1b94dca46 [file] [log] [blame]
Siddarth Gore16b76702010-03-18 20:25:40 +05301/*
Gerald Kerma361b3d82014-12-19 08:13:09 +01002 * (C) Copyright 2009-2014
3 * Gerald Kerma <dreagle@doukki.net>
Siddarth Gore16b76702010-03-18 20:25:40 +05304 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Siddarth Gore <gores@marvell.com>
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Siddarth Gore16b76702010-03-18 20:25:40 +05308 */
9
10#ifndef _CONFIG_GURUPLUG_H
11#define _CONFIG_GURUPLUG_H
12
Gerald Kerma361b3d82014-12-19 08:13:09 +010013
Siddarth Gore16b76702010-03-18 20:25:40 +053014/*
15 * Version number information
16 */
17#define CONFIG_IDENT_STRING "\nMarvell-GuruPlug"
18
19/*
20 * High Level Configuration Options (easy to change)
21 */
Siddarth Gore16b76702010-03-18 20:25:40 +053022#define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */
Siddarth Gore16b76702010-03-18 20:25:40 +053023#define CONFIG_KW88F6281 1 /* SOC Name */
24#define CONFIG_MACH_GURUPLUG /* Machine type */
Siddarth Gore16b76702010-03-18 20:25:40 +053025#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Siddarth Gore16b76702010-03-18 20:25:40 +053026
27/*
Gerald Kerma361b3d82014-12-19 08:13:09 +010028 * Compression configuration
29 */
30#define CONFIG_BZIP2
31#define CONFIG_LZMA
32#define CONFIG_LZO
33
34/*
35 * Enable device tree support
36 */
37#define CONFIG_OF_LIBFDT
38
39/*
40 * Miscellaneous configurable options
41 */
42#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
43
44/*
Siddarth Gore16b76702010-03-18 20:25:40 +053045 * Commands configuration
46 */
47#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
Gerald Kerma361b3d82014-12-19 08:13:09 +010048#define CONFIG_CMD_BOOTZ
Siddarth Gore16b76702010-03-18 20:25:40 +053049#define CONFIG_CMD_DHCP
50#define CONFIG_CMD_ENV
Gerald Kerma361b3d82014-12-19 08:13:09 +010051#define CONFIG_CMD_IDE
52#define CONFIG_CMD_MII
Siddarth Gore16b76702010-03-18 20:25:40 +053053#define CONFIG_CMD_NAND
54#define CONFIG_CMD_PING
55#define CONFIG_CMD_USB
Gerald Kerma361b3d82014-12-19 08:13:09 +010056#define CONFIG_CMD_FAT
Siddarth Gore16b76702010-03-18 20:25:40 +053057
58/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053059 * mv-common.h should be defined after CMD configs since it used them
60 * to enable certain macros
Siddarth Gore16b76702010-03-18 20:25:40 +053061 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053062#include "mv-common.h"
Siddarth Gore16b76702010-03-18 20:25:40 +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 */
Gerald Kerma361b3d82014-12-19 08:13:09 +010078#define CONFIG_ENV_OFFSET 0xE0000 /* env starts here */
Siddarth Gore16b76702010-03-18 20:25:40 +053079
80/*
81 * Default environment variables
82 */
Gerald Kerma361b3d82014-12-19 08:13:09 +010083#define CONFIG_BOOTCOMMAND \
84 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
85 "ubi part root; " \
86 "ubifsmount ubi:rootfs; " \
87 "ubifsload 0x800000 ${kernel}; " \
88 "ubifsload 0x700000 ${fdt}; " \
89 "ubifsumount; " \
90 "fdt addr 0x700000; fdt resize; fdt chosen; " \
91 "bootz 0x800000 - 0x700000"
Siddarth Gore16b76702010-03-18 20:25:40 +053092
Gerald Kerma361b3d82014-12-19 08:13:09 +010093#define CONFIG_MTDPARTS \
94 "mtdparts=orion_nand:" \
95 "896K(uboot),128K(uboot_env)," \
96 "-@1M(root)\0"
97
98#define CONFIG_EXTRA_ENV_SETTINGS \
99 "console=console=ttyS0,115200\0" \
100 "mtdids=nand0=orion_nand\0" \
101 "mtdparts="CONFIG_MTDPARTS \
102 "kernel=/boot/zImage\0" \
103 "fdt=/boot/guruplug-server-plus.dtb\0" \
104 "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0"
105
106#define MTDIDS_DEFAULT "nand0=orion_nand"
107
108#define MTDPARTS_DEFAULT \
109 "mtdparts="CONFIG_MTDPARTS
Siddarth Gore16b76702010-03-18 20:25:40 +0530110
111/*
Siddarth Gore16b76702010-03-18 20:25:40 +0530112 * Ethernet Driver configuration
113 */
114#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +0200115#define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */
Siddarth Gore16b76702010-03-18 20:25:40 +0530116#define CONFIG_PHY_BASE_ADR 0
Siddarth Gore16b76702010-03-18 20:25:40 +0530117#endif /* CONFIG_CMD_NET */
118
119/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +0530120 * SATA Driver configuration
Siddarth Gore16b76702010-03-18 20:25:40 +0530121 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +0530122#ifdef CONFIG_MVSATA_IDE
123#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
124#endif /*CONFIG_MVSATA_IDE*/
Siddarth Gore16b76702010-03-18 20:25:40 +0530125
Gerald Kerma361b3d82014-12-19 08:13:09 +0100126/*
127 * File system
128 */
129#define CONFIG_CMD_EXT2
130#define CONFIG_CMD_EXT4
131#define CONFIG_CMD_FAT
132#define CONFIG_CMD_JFFS2
133#define CONFIG_CMD_UBI
134#define CONFIG_CMD_UBIFS
135#define CONFIG_RBTREE
136#define CONFIG_MTD_DEVICE
137#define CONFIG_MTD_PARTITIONS
138#define CONFIG_CMD_MTDPARTS
139
Siddarth Gore16b76702010-03-18 20:25:40 +0530140#define CONFIG_SYS_ALT_MEMTEST
141
142#endif /* _CONFIG_GURUPLUG_H */