2 * (C) Copyright 2009-2014
3 * Gerald Kerma <dreagle@doukki.net>
4 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Siddarth Gore <gores@marvell.com>
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _CONFIG_GURUPLUG_H
11 #define _CONFIG_GURUPLUG_H
15 * Version number information
17 #define CONFIG_IDENT_STRING "\nMarvell-GuruPlug"
20 * High Level Configuration Options (easy to change)
22 #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */
23 #define CONFIG_KW88F6281 1 /* SOC Name */
24 #define CONFIG_MACH_GURUPLUG /* Machine type */
25 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
28 * Compression configuration
35 * Enable device tree support
37 #define CONFIG_OF_LIBFDT
40 * Miscellaneous configurable options
42 #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
45 * Commands configuration
47 #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
48 #define CONFIG_CMD_BOOTZ
49 #define CONFIG_CMD_DHCP
50 #define CONFIG_CMD_ENV
51 #define CONFIG_CMD_IDE
52 #define CONFIG_CMD_MII
53 #define CONFIG_CMD_NAND
54 #define CONFIG_CMD_PING
55 #define CONFIG_CMD_USB
56 #define CONFIG_CMD_FAT
59 * mv-common.h should be defined after CMD configs since it used them
60 * to enable certain macros
62 #include "mv-common.h"
65 * Environment variables configurations
67 #ifdef CONFIG_CMD_NAND
68 #define CONFIG_ENV_IS_IN_NAND 1
69 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
71 #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
74 * max 4k env size is enough, but in case of nand
75 * it has to be rounded to sector size
77 #define CONFIG_ENV_SIZE 0x20000 /* 128k */
78 #define CONFIG_ENV_OFFSET 0xE0000 /* env starts here */
81 * Default environment variables
83 #define CONFIG_BOOTCOMMAND \
84 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
86 "ubifsmount ubi:rootfs; " \
87 "ubifsload 0x800000 ${kernel}; " \
88 "ubifsload 0x700000 ${fdt}; " \
90 "fdt addr 0x700000; fdt resize; fdt chosen; " \
91 "bootz 0x800000 - 0x700000"
93 #define CONFIG_MTDPARTS \
94 "mtdparts=orion_nand:" \
95 "896K(uboot),128K(uboot_env)," \
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"
106 #define MTDIDS_DEFAULT "nand0=orion_nand"
108 #define MTDPARTS_DEFAULT \
109 "mtdparts="CONFIG_MTDPARTS
112 * Ethernet Driver configuration
114 #ifdef CONFIG_CMD_NET
115 #define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */
116 #define CONFIG_PHY_BASE_ADR 0
117 #endif /* CONFIG_CMD_NET */
120 * SATA Driver configuration
122 #ifdef CONFIG_MVSATA_IDE
123 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
124 #endif /*CONFIG_MVSATA_IDE*/
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
140 #define CONFIG_SYS_ALT_MEMTEST
142 #endif /* _CONFIG_GURUPLUG_H */