blob: f6c06eea25a4b7259cfbc83ddc8d6c628695286c [file] [log] [blame]
Prafulla Wadaskar4abc5bf2009-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 Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskar4abc5bf2009-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 Wadaskar4abc5bf2009-07-16 20:58:01 +053020#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
21#define CONFIG_KIRKWOOD 1 /* SOC Family Name */
22#define CONFIG_KW88F6281 1 /* SOC Name */
23#define CONFIG_MACH_MV88F6281GTW_GE /* Machine type */
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053024#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053025
26/*
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053027 * Commands configuration
28 */
29#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
30#include <config_cmd_default.h>
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053031#define CONFIG_CMD_DHCP
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053032#define CONFIG_CMD_PING
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053033#define CONFIG_CMD_ENV
34#define CONFIG_CMD_FAT
35#define CONFIG_CMD_PING
36#define CONFIG_CMD_SF
37#define CONFIG_CMD_USB
38
39/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053040 * mv-common.h should be defined after CMD configs since it used them
41 * to enable certain macros
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053042 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053043#include "mv-common.h"
44
45/* Unwanted stuffs from mv-common.h */
46#undef CONFIG_CMD_EXT2
47#undef CONFIG_CMD_JFFS2
48#undef CONFIG_CMD_FAT
49#undef CONFIG_CMD_UBI
50#undef CONFIG_CMD_UBIFS
51#undef CONFIG_RBTREE
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053052
53/*
54 * Environment variables configurations
55 */
56#ifdef CONFIG_SPI_FLASH
57#define CONFIG_ENV_IS_IN_SPI_FLASH 1
58#define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K */
59#else
60#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
61#endif
62#define CONFIG_ENV_SIZE 0x1000 /* 4k */
63#define CONFIG_ENV_ADDR 0x30000
64#define CONFIG_ENV_OFFSET 0x30000 /* env starts here */
65
66/*
67 * Default environment variables
68 */
69#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
70 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
71 "${x_bootcmd_usb}; bootm 0x6400000;"
72
73#define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \
74 "512k@512k(psm),2m@1m(kernel),13m@3m(rootfs)\0"
75
76#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
77 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
78 "x_bootcmd_kernel=cp.b 0xE8100000 0x6400000 0x200000\0" \
79 "x_bootcmd_usb=usb start\0" \
80 "x_bootargs_root=root=/dev/mtdblock3 ro rootfstype=squashfs\0"
81
82/*
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053083 * Ethernet Driver configuration
84 */
85#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020086#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053087#define CONFIG_MV88E61XX_SWITCH /* Enable mv88e61xx switch driver */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053088#endif /* CONFIG_CMD_NET */
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +053089
90#endif /* _CONFIG_MV88F6281GTW_GE_H */