wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1 | /* |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 2 | * Copyright (C) 2003 ETC s.r.o. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 | * MA 02111-1307 USA |
| 18 | * |
| 19 | * Written by Peter Figuli <peposh@etc.sk>, 2003. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #ifndef __CONFIG_H |
| 24 | #define __CONFIG_H |
| 25 | |
| 26 | #define CONFIG_PXA250 1 /* this is an PXA250 CPU */ |
| 27 | #define CONFIG_WEPEP250 1 /* config for wepep250 board */ |
| 28 | #undef CONFIG_USE_IRQ /* don't need use IRQ/FIQ */ |
| 29 | |
Jean-Christophe PLAGNIOL-VILLARD | e6b5f1b | 2009-04-05 13:06:31 +0200 | [diff] [blame] | 30 | /* we will never enable dcache, because we have to setup MMU first */ |
| 31 | #define CONFIG_SYS_NO_DCACHE |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 32 | |
| 33 | /* |
| 34 | * Select serial console configuration |
| 35 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 4ccaed4 | 2009-05-16 22:48:46 +0200 | [diff] [blame] | 36 | #define CONFIG_PXA_SERIAL |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 37 | #define CONFIG_BTUART 1 /* BTUART is default on WEP dev board */ |
| 38 | #define CONFIG_BAUDRATE 115200 |
| 39 | |
| 40 | |
| 41 | /* |
Jon Loeliger | 5c4ddae | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 42 | * BOOTP options |
| 43 | */ |
| 44 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 45 | #define CONFIG_BOOTP_BOOTPATH |
| 46 | #define CONFIG_BOOTP_GATEWAY |
| 47 | #define CONFIG_BOOTP_HOSTNAME |
| 48 | |
| 49 | |
| 50 | /* |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 51 | * Command line configuration. |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 52 | */ |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 53 | #include <config_cmd_default.h> |
| 54 | |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 55 | #undef CONFIG_CMD_CONSOLE |
Wolfgang Denk | 85c25df | 2009-04-01 23:34:12 +0200 | [diff] [blame] | 56 | #undef CONFIG_CMD_LOADS |
| 57 | #undef CONFIG_CMD_NET |
| 58 | #undef CONFIG_CMD_SOURCE |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 59 | |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 60 | |
| 61 | /* |
| 62 | * Boot options. Setting delay to -1 stops autostart count down. |
| 63 | * NOTE: Sending parameters to kernel depends on kernel version and |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 64 | * 2.4.19-rmk6-pxa1 patch used while my u-boot coding didn't accept |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 65 | * parameters at all! Do not get confused by them so. |
| 66 | */ |
| 67 | #define CONFIG_BOOTDELAY -1 |
| 68 | #define CONFIG_BOOTARGS "root=/dev/mtdblock2 mem=32m console=ttyS01,115200n8" |
| 69 | #define CONFIG_BOOTCOMMAND "bootm 40000" |
| 70 | |
| 71 | |
| 72 | /* |
| 73 | * General options for u-boot. Modify to save memory foot print |
| 74 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 75 | #define CONFIG_SYS_LONGHELP /* undef saves memory */ |
| 76 | #define CONFIG_SYS_PROMPT "WEP> " /* prompt string */ |
| 77 | #define CONFIG_SYS_CBSIZE 256 /* console I/O buffer */ |
| 78 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* print buffer size */ |
| 79 | #define CONFIG_SYS_MAXARGS 16 /* max command args */ |
| 80 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* boot args buf size */ |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 81 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 82 | #define CONFIG_SYS_MEMTEST_START 0xa0400000 /* memtest test area */ |
| 83 | #define CONFIG_SYS_MEMTEST_END 0xa0800000 |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 84 | |
Micha Kalfon | 8a75a5b | 2009-02-11 19:50:11 +0200 | [diff] [blame] | 85 | #define CONFIG_SYS_HZ 1000 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 86 | #define CONFIG_SYS_CPUSPEED 0x141 /* core clock - register value */ |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 87 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 88 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 89 | |
| 90 | /* |
| 91 | * Definitions related to passing arguments to kernel. |
| 92 | */ |
| 93 | #define CONFIG_CMDLINE_TAG 1 /* send commandline to Kernel */ |
| 94 | #define CONFIG_SETUP_MEMORY_TAGS 1 /* send memory definition to kernel */ |
| 95 | #undef CONFIG_INITRD_TAG /* do not send initrd params */ |
| 96 | #undef CONFIG_VFD /* do not send framebuffer setup */ |
| 97 | |
| 98 | |
| 99 | /* |
| 100 | * Malloc pool need to host env + 128 Kb reserve for other allocations. |
| 101 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 102 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (128<<10) ) |
| 103 | #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 104 | |
| 105 | #define CONFIG_STACKSIZE (120<<10) /* stack size */ |
| 106 | |
| 107 | #ifdef CONFIG_USE_IRQ |
| 108 | #define CONFIG_STACKSIZE_IRQ (4<<10) /* IRQ stack */ |
| 109 | #define CONFIG_STACKSIZE_FIQ (4<<10) /* FIQ stack */ |
| 110 | #endif |
| 111 | |
| 112 | /* |
| 113 | * SDRAM Memory Map |
| 114 | */ |
| 115 | #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of SDRAM */ |
| 116 | #define WEP_SDRAM_1 0xa0000000 /* SDRAM bank #1 */ |
| 117 | #define WEP_SDRAM_1_SIZE 0x02000000 /* 32 MB ( 2 chip ) */ |
| 118 | #define WEP_SDRAM_2 0xa2000000 /* SDRAM bank #2 */ |
| 119 | #define WEP_SDRAM_2_SIZE 0x00000000 /* 0 MB */ |
| 120 | #define WEP_SDRAM_3 0xa8000000 /* SDRAM bank #3 */ |
| 121 | #define WEP_SDRAM_3_SIZE 0x00000000 /* 0 MB */ |
| 122 | #define WEP_SDRAM_4 0xac000000 /* SDRAM bank #4 */ |
| 123 | #define WEP_SDRAM_4_SIZE 0x00000000 /* 0 MB */ |
| 124 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 125 | #define CONFIG_SYS_DRAM_BASE 0xa0000000 |
| 126 | #define CONFIG_SYS_DRAM_SIZE 0x02000000 |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 127 | |
| 128 | /* Uncomment used SDRAM chip */ |
| 129 | #define WEP_SDRAM_K4S281633 |
| 130 | /*#define WEP_SDRAM_K4S561633*/ |
| 131 | |
| 132 | |
| 133 | /* |
| 134 | * Configuration for FLASH memory |
| 135 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 136 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* FLASH banks count (not chip count)*/ |
| 137 | #define CONFIG_SYS_MAX_FLASH_SECT 128 /* number of sector in FLASH bank */ |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 138 | #define WEP_FLASH_BUS_WIDTH 4 /* we use 32 bit FLASH memory... */ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 139 | #define WEP_FLASH_INTERLEAVE 2 /* ... made of 2 chips */ |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 140 | #define WEP_FLASH_BANK_SIZE 0x2000000 /* size of one flash bank*/ |
| 141 | #define WEP_FLASH_SECT_SIZE 0x0040000 /* size of erase sector */ |
| 142 | #define WEP_FLASH_BASE 0x0000000 /* location of flash memory */ |
| 143 | #define WEP_FLASH_UNLOCK 1 /* perform hw unlock first */ |
| 144 | |
| 145 | |
| 146 | /* This should be defined if CFI FLASH device is present. Actually benefit |
| 147 | is not so clear to me. In other words we can provide more informations |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 148 | to user, but this expects more complex flash handling we do not provide |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 149 | now.*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 150 | #undef CONFIG_SYS_FLASH_CFI |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 151 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 152 | #define CONFIG_SYS_FLASH_ERASE_TOUT (2*CONFIG_SYS_HZ) /* timeout for Erase operation */ |
| 153 | #define CONFIG_SYS_FLASH_WRITE_TOUT (2*CONFIG_SYS_HZ) /* timeout for Write operation */ |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 154 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 155 | #define CONFIG_SYS_FLASH_BASE WEP_FLASH_BASE |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 156 | |
| 157 | /* |
| 158 | * This is setting for JFFS2 support in u-boot. |
| 159 | * Right now there is no gain for user, but later on booting kernel might be |
| 160 | * possible. Consider using XIP kernel running from flash to save RAM |
| 161 | * footprint. |
Jon Loeliger | 5c4ddae | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 162 | * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support. |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 163 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 164 | #define CONFIG_SYS_JFFS2_FIRST_BANK 0 |
| 165 | #define CONFIG_SYS_JFFS2_FIRST_SECTOR 5 |
| 166 | #define CONFIG_SYS_JFFS2_NUM_BANKS 1 |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 167 | |
| 168 | /* |
| 169 | * Environment setup. Definitions of monitor location and size with |
| 170 | * definition of environment setup ends up in 2 possibilities. |
| 171 | * 1. Embeded environment - in u-boot code is space for environment |
| 172 | * 2. Environment is read from predefined sector of flash |
| 173 | * Right now we support 2. possiblity, but expecting no env placed |
| 174 | * on mentioned address right now. This also needs to provide whole |
| 175 | * sector for it - for us 256Kb is really waste of memory. U-boot uses |
| 176 | * default env. and until kernel parameters could be sent to kernel |
| 177 | * env. has no sense to us. |
| 178 | */ |
| 179 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 180 | #define CONFIG_SYS_MONITOR_BASE PHYS_FLASH_1 |
| 181 | #define CONFIG_SYS_MONITOR_LEN 0x20000 /* 128kb ( 1 flash sector ) */ |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 182 | #define CONFIG_ENV_IS_IN_FLASH 1 |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 183 | #define CONFIG_ENV_ADDR 0x20000 /* absolute address for now */ |
| 184 | #define CONFIG_ENV_SIZE 0x2000 |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 185 | |
| 186 | #undef CONFIG_ENV_OVERWRITE /* env is not writable now */ |
| 187 | |
| 188 | /* |
| 189 | * Well this has to be defined, but on the other hand it is used differently |
| 190 | * one may expect. For instance loadb command do not cares :-) |
| 191 | * So advice is - do not relay on this... |
| 192 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 193 | #define CONFIG_SYS_LOAD_ADDR 0x40000 |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 194 | |
| 195 | #endif /* __CONFIG_H */ |