blob: 45a4a7541cd8c78764a043df52076173d5fe9662 [file] [log] [blame]
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +05301/*
2 * (C) Copyright 2009
3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +05307 */
8
9#ifndef _CONFIG_MV88F6281GTW_GE_H
10#define _CONFIG_MV88F6281GTW_GE_H
11
12/*
13 * Version number information
14 */
15#define CONFIG_IDENT_STRING "\nMarvell-MV88F6281GTW_GE"
16
17/*
18 * High Level Configuration Options (easy to change)
19 */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053020#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053021#define CONFIG_KW88F6281 1 /* SOC Name */
22#define CONFIG_MACH_MV88F6281GTW_GE /* Machine type */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053023#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053024
25/*
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053026 * Commands configuration
27 */
28#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053029#define CONFIG_CMD_DHCP
Prafulla Wadaskar32686292010-09-30 22:53:43 +053030#define CONFIG_CMD_PING
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053031#define CONFIG_CMD_ENV
32#define CONFIG_CMD_FAT
33#define CONFIG_CMD_PING
34#define CONFIG_CMD_SF
35#define CONFIG_CMD_USB
36
37/*
Prafulla Wadaskar32686292010-09-30 22:53:43 +053038 * mv-common.h should be defined after CMD configs since it used them
39 * to enable certain macros
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053040 */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053041#include "mv-common.h"
42
43/* Unwanted stuffs from mv-common.h */
44#undef CONFIG_CMD_EXT2
45#undef CONFIG_CMD_JFFS2
46#undef CONFIG_CMD_FAT
47#undef CONFIG_CMD_UBI
48#undef CONFIG_CMD_UBIFS
49#undef CONFIG_RBTREE
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053050
51/*
52 * Environment variables configurations
53 */
54#ifdef CONFIG_SPI_FLASH
55#define CONFIG_ENV_IS_IN_SPI_FLASH 1
56#define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K */
57#else
58#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
59#endif
60#define CONFIG_ENV_SIZE 0x1000 /* 4k */
61#define CONFIG_ENV_ADDR 0x30000
62#define CONFIG_ENV_OFFSET 0x30000 /* env starts here */
63
64/*
65 * Default environment variables
66 */
67#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
68 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
69 "${x_bootcmd_usb}; bootm 0x6400000;"
70
71#define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \
72 "512k@512k(psm),2m@1m(kernel),13m@3m(rootfs)\0"
73
74#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
75 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
76 "x_bootcmd_kernel=cp.b 0xE8100000 0x6400000 0x200000\0" \
77 "x_bootcmd_usb=usb start\0" \
78 "x_bootargs_root=root=/dev/mtdblock3 ro rootfstype=squashfs\0"
79
80/*
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053081 * Ethernet Driver configuration
82 */
83#ifdef CONFIG_CMD_NET
Albert Aribaude91d7d32010-07-12 22:24:28 +020084#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053085#define CONFIG_MV88E61XX_SWITCH /* Enable mv88e61xx switch driver */
Prafulla Wadaskar32686292010-09-30 22:53:43 +053086#endif /* CONFIG_CMD_NET */
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +053087
88#endif /* _CONFIG_MV88F6281GTW_GE_H */