2004-06-10 21:55:33 +00:00
|
|
|
/*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LPD7A404_H_
|
|
|
|
#define __LPD7A404_H_
|
|
|
|
|
|
|
|
#define CONFIG_LPD7A404 /* Logic LH7A400 SDK */
|
|
|
|
|
|
|
|
#undef CONFIG_USE_IRQ
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This board uses the logic LH7A404-10 card engine
|
|
|
|
*/
|
|
|
|
#include <configs/lpd7a404-10.h>
|
|
|
|
|
|
|
|
#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
|
|
|
|
#define CONFIG_SETUP_MEMORY_TAGS 1
|
|
|
|
#define CONFIG_INITRD_TAG 1
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Size of malloc() pool
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
|
|
|
|
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
|
2004-06-10 21:55:33 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* select serial console configuration
|
|
|
|
*/
|
|
|
|
#define CONFIG_CONSOLE_UART2 /* UART2 LH7A40x for console */
|
|
|
|
|
|
|
|
/* allow to overwrite serial and ethaddr */
|
|
|
|
#define CONFIG_ENV_OVERWRITE
|
|
|
|
|
|
|
|
#define CONFIG_BAUDRATE 115200
|
|
|
|
#define CONFIG_IPADDR 192.168.1.100
|
|
|
|
#define CONFIG_NETMASK 255.255.1.0
|
|
|
|
#define CONFIG_SERVERIP 192.168.1.1
|
|
|
|
|
|
|
|
#define CONFIG_TIMESTAMP 1 /* Print timestamp info for images */
|
|
|
|
|
2007-07-05 03:32:57 +00:00
|
|
|
|
2007-07-10 14:38:02 +00:00
|
|
|
/*
|
|
|
|
* BOOTP options
|
|
|
|
*/
|
|
|
|
#define CONFIG_BOOTP_BOOTFILESIZE
|
|
|
|
#define CONFIG_BOOTP_BOOTPATH
|
|
|
|
#define CONFIG_BOOTP_GATEWAY
|
|
|
|
#define CONFIG_BOOTP_HOSTNAME
|
|
|
|
|
|
|
|
|
2007-07-05 03:32:57 +00:00
|
|
|
/*
|
|
|
|
* Command line configuration.
|
|
|
|
*/
|
|
|
|
#include <config_cmd_default.h>
|
|
|
|
|
2004-06-10 21:55:33 +00:00
|
|
|
#ifndef USE_920T_MMU
|
2007-07-05 03:32:57 +00:00
|
|
|
#define CONFIG_CMD_PING)
|
|
|
|
#undef CONFIG_CMD_CACHE
|
2004-06-10 21:55:33 +00:00
|
|
|
#else
|
2007-07-05 03:32:57 +00:00
|
|
|
#define CONFIG_CMD_DATE
|
2004-06-10 21:55:33 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define CONFIG_BOOTDELAY 3
|
|
|
|
|
2007-07-05 03:32:57 +00:00
|
|
|
#if defined(CONFIG_CMD_KGDB)
|
2004-06-10 21:55:33 +00:00
|
|
|
#define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
|
|
|
|
/* what's this ? it's not used anywhere */
|
|
|
|
#define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Miscellaneous configurable options
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LONGHELP /* undef to save memory */
|
|
|
|
#define CONFIG_SYS_PROMPT "LPD7A404> " /* Monitor Command Prompt */
|
|
|
|
#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
|
|
|
|
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
|
|
|
|
#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
|
|
|
|
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
|
2004-06-10 21:55:33 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MEMTEST_START 0xc0300000 /* memtest works on */
|
|
|
|
#define CONFIG_SYS_MEMTEST_END 0xc0500000 /* 2 MB in DRAM */
|
2004-06-10 21:55:33 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#undef CONFIG_SYS_CLKS_IN_HZ /* everything, incl board info, in Hz */
|
2004-06-10 21:55:33 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_LOAD_ADDR 0xc0f00000 /* default load address */
|
2004-06-10 21:55:33 +00:00
|
|
|
|
|
|
|
/* valid baudrates */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
2004-06-10 21:55:33 +00:00
|
|
|
|
|
|
|
/* size and location of u-boot in flash */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
|
|
|
|
#define CONFIG_SYS_MONITOR_LEN (256<<10)
|
2004-06-10 21:55:33 +00:00
|
|
|
|
2008-09-10 20:48:04 +00:00
|
|
|
#define CONFIG_ENV_IS_IN_FLASH 1
|
2004-06-10 21:55:33 +00:00
|
|
|
|
|
|
|
/* Address and size of Primary Environment Sector */
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0xFC0000)
|
2008-09-10 20:48:06 +00:00
|
|
|
#define CONFIG_ENV_SIZE 0x40000
|
2004-06-10 21:55:33 +00:00
|
|
|
|
|
|
|
#endif /* __LPD7A404_H_ */
|