blob: 7220c26bfe5d15b50b8590d37ca55e3257fcd9a9 [file] [log] [blame]
/*
* (C) Copyright 2011
* Marvell Semiconductor <www.marvell.com>
* Written-by: Lei Wen <leiwen@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_H
#define __CONFIG_H
/*
* Version number information
*/
#define CONFIG_IDENT_STRING "\nMarvell version: 1.1.1.1 MMP2"
/*
* High Level Configuration Options
*/
#define CONFIG_SHEEVA_88SV584xV7 1 /* CPU Core subversion */
#define CONFIG_ARMV7 1 /* ARM926EJS cpu family */
#define CONFIG_ARMADA6XX 1 /* SOC Family Name */
#define CONFIG_SYS_INIT_SP_ADDR (0xd1000000 + 0x1000)
#define CONFIG_NR_DRAM_BANKS_MAX 4
#define CONFIG_MACH_BROWNSTONE /* Used to read DRAM size */
#define CONFIG_MACH_MMP2
#define CONFIG_MMP_POWER
#define CONFIG_DDR3_EPD_1G
#define CONFIG_PXA168_FB
/*
* Commands configuration
*/
#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
#include <config_cmd_default.h>
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MMC
#define CONFIG_CMD_GPIO
#define CONFIG_USB_ETHER
#define CONFIG_CMD_FASTBOOT
#define CONFIG_CMD_UNSPARSE
#define CONFIG_MISC_INIT_R
#define CONFIG_CMD_AUTOSCRIPT
#define CONFIG_SYS_TEXT_BASE 0x100000
#define CONFIG_NR_DRAM_BANKS 2
#undef CONFIG_CMD_NET
#undef CONFIG_CMD_NFS
#define CONFIG_CMD_MIPS
/*
* mv-common.h should be defined after CMD configs since it used them
* to enable certain macros
*/
#include "mv-common.h"
#undef CONFIG_ARCH_MISC_INIT
#define CONFIG_L2_OFF
#define CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_MV_WTM
#define CONFIG_DISPLAY_BOARDINFO
#define CONFIG_BROWNSTONE_VOLT
#define CONFIG_POWEROFF_CHARGE
#define CONFIG_MAX17042_BATTERY
/*
* Boot setting
*/
#define CONFIG_ZERO_BOOTDELAY_CHECK
#define CONFIG_SHOW_BOOT_PROGRESS
#define CONFIG_BOOTDELAY 3
#define CONFIG_BOOTCOMMAND "mmc dev 0 0; mmc read $(loadaddr) 0x4c00 0x2000; bootm $(loadaddr)"
#define CONFIG_MV_RECOVERY
#ifdef CONFIG_MV_RECOVERY
#define __stringify_1(x...) #x
#define __stringify(x...) __stringify_1(x)
#define CONFIG_TRUST_BOOT_MAGIC 0x54525354
#define CONFIG_RESIDUE_CMD "bootm $(loadaddr)"
#define CONFIG_GO_RUBOOT_CMD "mmc dev 0 1; mmc read "__stringify(CONFIG_SYS_TEXT_BASE) \
" 0x580 0x280; go " __stringify(CONFIG_SYS_TEXT_BASE)
#define CONFIG_GO_RKERNEL_CMD "mmc dev 0 0; mmc read $(loadaddr)" \
" 0xcc00 0x2000; bootm $(loadaddr)"
#endif /* CONFIG_MV_RECOVERY */
/*
* Environment variables configurations
*/
#define CONFIG_ENV_IS_IN_MMC 1 /* if env in MMC */
#define CONFIG_ENV_SIZE 0x20000 /* 128k */
#define CONFIG_CMD_SAVEENV
#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_ENV_OFFSET 0x900000
#endif /* __CONFIG_ABILENE_H */