]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/lpd7a400.h
808fe1c7b0976cf5e7c11904eb1f61a05dccacdc
[people/ms/u-boot.git] / include / configs / lpd7a400.h
1 /*
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 __LPD7A400_H_
22 #define __LPD7A400_H_
23
24 #define CONFIG_LPD7A400 /* Logic LH7A400 SDK */
25
26 /*
27 * If we are developing, we might want to start armboot from ram
28 * so we MUST NOT initialize critical regs like mem-timing ...
29 */
30 #define CONFIG_INIT_CRITICAL /* undef for developing */
31
32 #undef CONFIG_USE_IRQ
33
34 /*
35 * This board uses the logic LH7A400-10 card engine
36 */
37 #include <configs/lpd7a400-10.h>
38
39 #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
40 #define CONFIG_SETUP_MEMORY_TAGS 1
41 #define CONFIG_INITRD_TAG 1
42
43 /*
44 * Size of malloc() pool
45 */
46 #define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
47 #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
48
49 /*
50 * select serial console configuration
51 */
52 #define CONFIG_CONSOLE_UART2 /* UART2 LH7A40x for console */
53
54 /* allow to overwrite serial and ethaddr */
55 #define CONFIG_ENV_OVERWRITE
56
57 #define CONFIG_BAUDRATE 115200
58 #define CONFIG_IPADDR 192.168.1.100
59 #define CONFIG_NETMASK 255.255.1.0
60 #define CONFIG_SERVERIP 192.168.1.1
61
62 #define CONFIG_TIMESTAMP 1 /* Print timestamp info for images */
63
64 #ifndef USE_920T_MMU
65 #define CONFIG_COMMANDS ((CONFIG_CMD_DFL | CFG_CMD_PING) & ~(CFG_CMD_CACHE))
66 #else
67 #define CONFIG_COMMANDS (CONFIG_CMD_DFL | CFG_CMD_DATE)
68 #endif
69
70
71 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
72 #include <cmd_confdefs.h>
73
74 #define CONFIG_BOOTDELAY 3
75
76 #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
77 #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
78 /* what's this ? it's not used anywhere */
79 #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
80 #endif
81
82 /*
83 * Miscellaneous configurable options
84 */
85 #define CFG_LONGHELP /* undef to save memory */
86 #define CFG_PROMPT "LPD7A400> " /* Monitor Command Prompt */
87 #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
88 #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
89 #define CFG_MAXARGS 16 /* max number of command args */
90 #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
91
92 #define CFG_MEMTEST_START 0xc0300000 /* memtest works on */
93 #define CFG_MEMTEST_END 0xc0500000 /* 2 MB in DRAM */
94
95 #undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
96
97 #define CFG_LOAD_ADDR 0xc0f00000 /* default load address */
98
99 /* valid baudrates */
100 #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
101
102 /* size and location of u-boot in flash */
103 #define CFG_MONITOR_BASE CFG_FLASH_BASE
104 #define CFG_MONITOR_LEN (256<<10)
105
106 #define CFG_ENV_IS_IN_FLASH 1
107
108 /* Address and size of Primary Environment Sector */
109 #define CFG_ENV_ADDR (CFG_FLASH_BASE + 0xFC0000)
110 #define CFG_ENV_SIZE 0x40000
111
112 #endif /* __LPD7A400_H_ */