mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
54e999a30a
It is observed that, in most of the board configs the code is being duplicated, also for any common change all board files needs update This issue was under discussion from long on mailing list and we converge on introducing common config file. With this patch- 1. Total Kirkwood specific configuration code is reduced by 210 lines 2. All common configuration can be shared by multiple boards 3. Easy to manage common updates like ARM relocation changes mv-common.h file is added to include/configs/ It contains all common configuration supported for all Kirkwood boards The respective board configs are updated for its usage Build tested for guruplug, mv88f6281gtw_ge, openrd_base, rd6281a and sheevaplug Binary execution tested for sheevaplug Todo: 1. Other custom Kirkwood boards to be synced 2. The support to be extended for Orion5X based boards Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
106 lines
3.1 KiB
C
106 lines
3.1 KiB
C
/*
|
|
* (C) Copyright 2009
|
|
* Marvell Semiconductor <www.marvell.com>
|
|
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
|
|
*
|
|
* See file CREDITS for list of people who contributed to this
|
|
* project.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of
|
|
* the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
* MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _CONFIG_MV88F6281GTW_GE_H
|
|
#define _CONFIG_MV88F6281GTW_GE_H
|
|
|
|
/*
|
|
* Version number information
|
|
*/
|
|
#define CONFIG_IDENT_STRING "\nMarvell-MV88F6281GTW_GE"
|
|
|
|
/*
|
|
* High Level Configuration Options (easy to change)
|
|
*/
|
|
#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
|
|
#define CONFIG_KIRKWOOD 1 /* SOC Family Name */
|
|
#define CONFIG_KW88F6281 1 /* SOC Name */
|
|
#define CONFIG_MACH_MV88F6281GTW_GE /* Machine type */
|
|
#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
|
|
|
|
/*
|
|
* Commands configuration
|
|
*/
|
|
#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
|
|
#include <config_cmd_default.h>
|
|
#define CONFIG_CMD_DHCP
|
|
#define CONFIG_CMD_PING
|
|
#define CONFIG_CMD_ENV
|
|
#define CONFIG_CMD_FAT
|
|
#define CONFIG_CMD_PING
|
|
#define CONFIG_CMD_SF
|
|
#define CONFIG_CMD_USB
|
|
|
|
/*
|
|
* mv-common.h should be defined after CMD configs since it used them
|
|
* to enable certain macros
|
|
*/
|
|
#include "mv-common.h"
|
|
|
|
/* Unwanted stuffs from mv-common.h */
|
|
#undef CONFIG_CMD_EXT2
|
|
#undef CONFIG_CMD_JFFS2
|
|
#undef CONFIG_CMD_FAT
|
|
#undef CONFIG_CMD_UBI
|
|
#undef CONFIG_CMD_UBIFS
|
|
#undef CONFIG_RBTREE
|
|
|
|
/*
|
|
* Environment variables configurations
|
|
*/
|
|
#ifdef CONFIG_SPI_FLASH
|
|
#define CONFIG_ENV_IS_IN_SPI_FLASH 1
|
|
#define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K */
|
|
#else
|
|
#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
|
|
#endif
|
|
#define CONFIG_ENV_SIZE 0x1000 /* 4k */
|
|
#define CONFIG_ENV_ADDR 0x30000
|
|
#define CONFIG_ENV_OFFSET 0x30000 /* env starts here */
|
|
|
|
/*
|
|
* Default environment variables
|
|
*/
|
|
#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
|
|
"setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
|
|
"${x_bootcmd_usb}; bootm 0x6400000;"
|
|
|
|
#define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \
|
|
"512k@512k(psm),2m@1m(kernel),13m@3m(rootfs)\0"
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
|
|
"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
|
|
"x_bootcmd_kernel=cp.b 0xE8100000 0x6400000 0x200000\0" \
|
|
"x_bootcmd_usb=usb start\0" \
|
|
"x_bootargs_root=root=/dev/mtdblock3 ro rootfstype=squashfs\0"
|
|
|
|
/*
|
|
* Ethernet Driver configuration
|
|
*/
|
|
#ifdef CONFIG_CMD_NET
|
|
#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
|
|
#define CONFIG_MV88E61XX_SWITCH /* Enable mv88e61xx switch driver */
|
|
#endif /* CONFIG_CMD_NET */
|
|
|
|
#endif /* _CONFIG_MV88F6281GTW_GE_H */
|