wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 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 __LPD7A404_H_ |
| 22 | #define __LPD7A404_H_ |
| 23 | |
| 24 | #define CONFIG_LPD7A404 /* Logic LH7A400 SDK */ |
| 25 | |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 26 | #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 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 40 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) |
| 41 | #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 42 | |
| 43 | /* |
| 44 | * select serial console configuration |
| 45 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 3ea201b | 2009-05-31 12:44:27 +0200 | [diff] [blame^] | 46 | #define CONFIG_LH7A40X_SERIAL |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 47 | #define CONFIG_CONSOLE_UART2 /* UART2 LH7A40x for console */ |
| 48 | |
| 49 | /* allow to overwrite serial and ethaddr */ |
| 50 | #define CONFIG_ENV_OVERWRITE |
| 51 | |
| 52 | #define CONFIG_BAUDRATE 115200 |
| 53 | #define CONFIG_IPADDR 192.168.1.100 |
| 54 | #define CONFIG_NETMASK 255.255.1.0 |
| 55 | #define CONFIG_SERVERIP 192.168.1.1 |
| 56 | |
| 57 | #define CONFIG_TIMESTAMP 1 /* Print timestamp info for images */ |
| 58 | |
Jon Loeliger | 9bbb1c0 | 2007-07-04 22:32:57 -0500 | [diff] [blame] | 59 | |
| 60 | /* |
Jon Loeliger | 7f5c015 | 2007-07-10 09:38:02 -0500 | [diff] [blame] | 61 | * BOOTP options |
| 62 | */ |
| 63 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 64 | #define CONFIG_BOOTP_BOOTPATH |
| 65 | #define CONFIG_BOOTP_GATEWAY |
| 66 | #define CONFIG_BOOTP_HOSTNAME |
| 67 | |
| 68 | |
| 69 | /* |
Jon Loeliger | 9bbb1c0 | 2007-07-04 22:32:57 -0500 | [diff] [blame] | 70 | * Command line configuration. |
| 71 | */ |
| 72 | #include <config_cmd_default.h> |
| 73 | |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 74 | #ifndef USE_920T_MMU |
Jon Loeliger | 9bbb1c0 | 2007-07-04 22:32:57 -0500 | [diff] [blame] | 75 | #define CONFIG_CMD_PING) |
| 76 | #undef CONFIG_CMD_CACHE |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 77 | #else |
Jon Loeliger | 9bbb1c0 | 2007-07-04 22:32:57 -0500 | [diff] [blame] | 78 | #define CONFIG_CMD_DATE |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 79 | #endif |
| 80 | |
| 81 | |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 82 | #define CONFIG_BOOTDELAY 3 |
| 83 | |
Jon Loeliger | 9bbb1c0 | 2007-07-04 22:32:57 -0500 | [diff] [blame] | 84 | #if defined(CONFIG_CMD_KGDB) |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 85 | #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */ |
| 86 | /* what's this ? it's not used anywhere */ |
| 87 | #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */ |
| 88 | #endif |
| 89 | |
| 90 | /* |
| 91 | * Miscellaneous configurable options |
| 92 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 93 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 94 | #define CONFIG_SYS_PROMPT "LPD7A404> " /* Monitor Command Prompt */ |
| 95 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 96 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 97 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 98 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 99 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 100 | #define CONFIG_SYS_MEMTEST_START 0xc0300000 /* memtest works on */ |
| 101 | #define CONFIG_SYS_MEMTEST_END 0xc0500000 /* 2 MB in DRAM */ |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 102 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 103 | #define CONFIG_SYS_LOAD_ADDR 0xc0f00000 /* default load address */ |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 104 | |
| 105 | /* valid baudrates */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 106 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 107 | |
| 108 | /* size and location of u-boot in flash */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 109 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE |
| 110 | #define CONFIG_SYS_MONITOR_LEN (256<<10) |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 111 | |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 112 | #define CONFIG_ENV_IS_IN_FLASH 1 |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 113 | |
| 114 | /* Address and size of Primary Environment Sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 115 | #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0xFC0000) |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 116 | #define CONFIG_ENV_SIZE 0x40000 |
wdenk | f832d8a | 2004-06-10 21:55:33 +0000 | [diff] [blame] | 117 | |
| 118 | #endif /* __LPD7A404_H_ */ |