blob: 87815cb170f9288c2a9ea54d143ac3e4ee217d0e [file] [log] [blame]
wdenkf832d8a2004-06-10 21:55:33 +00001/*
2 * See file CREDITS for list of people who contributed to this
3 * project.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
19 */
20
21#ifndef __LPD7A404_H_
22#define __LPD7A404_H_
23
24#define CONFIG_LPD7A404 /* Logic LH7A400 SDK */
25
wdenkf832d8a2004-06-10 21:55:33 +000026#undef CONFIG_USE_IRQ
27
28/*
29 * This board uses the logic LH7A404-10 card engine
30 */
31#include <configs/lpd7a404-10.h>
32
33#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
34#define CONFIG_SETUP_MEMORY_TAGS 1
35#define CONFIG_INITRD_TAG 1
36
37/*
38 * Size of malloc() pool
39 */
40#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
41#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
42
43/*
44 * select serial console configuration
45 */
46#define CONFIG_CONSOLE_UART2 /* UART2 LH7A40x for console */
47
48/* allow to overwrite serial and ethaddr */
49#define CONFIG_ENV_OVERWRITE
50
51#define CONFIG_BAUDRATE 115200
52#define CONFIG_IPADDR 192.168.1.100
53#define CONFIG_NETMASK 255.255.1.0
54#define CONFIG_SERVERIP 192.168.1.1
55
56#define CONFIG_TIMESTAMP 1 /* Print timestamp info for images */
57
Jon Loeliger9bbb1c02007-07-04 22:32:57 -050058
59/*
60 * Command line configuration.
61 */
62#include <config_cmd_default.h>
63
wdenkf832d8a2004-06-10 21:55:33 +000064#ifndef USE_920T_MMU
Jon Loeliger9bbb1c02007-07-04 22:32:57 -050065 #define CONFIG_CMD_PING)
66 #undef CONFIG_CMD_CACHE
wdenkf832d8a2004-06-10 21:55:33 +000067#else
Jon Loeliger9bbb1c02007-07-04 22:32:57 -050068 #define CONFIG_CMD_DATE
wdenkf832d8a2004-06-10 21:55:33 +000069#endif
70
71
wdenkf832d8a2004-06-10 21:55:33 +000072#define CONFIG_BOOTDELAY 3
73
Jon Loeliger9bbb1c02007-07-04 22:32:57 -050074#if defined(CONFIG_CMD_KGDB)
wdenkf832d8a2004-06-10 21:55:33 +000075#define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
76/* what's this ? it's not used anywhere */
77#define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
78#endif
79
80/*
81 * Miscellaneous configurable options
82 */
83#define CFG_LONGHELP /* undef to save memory */
84#define CFG_PROMPT "LPD7A404> " /* Monitor Command Prompt */
85#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
86#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
87#define CFG_MAXARGS 16 /* max number of command args */
88#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
89
90#define CFG_MEMTEST_START 0xc0300000 /* memtest works on */
91#define CFG_MEMTEST_END 0xc0500000 /* 2 MB in DRAM */
92
93#undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
94
95#define CFG_LOAD_ADDR 0xc0f00000 /* default load address */
96
97/* valid baudrates */
98#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
99
100/* size and location of u-boot in flash */
101#define CFG_MONITOR_BASE CFG_FLASH_BASE
102#define CFG_MONITOR_LEN (256<<10)
103
104#define CFG_ENV_IS_IN_FLASH 1
105
106/* Address and size of Primary Environment Sector */
107#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0xFC0000)
108#define CFG_ENV_SIZE 0x40000
109
110#endif /* __LPD7A404_H_ */