blob: e74303da854bf10c4519461c254b124a506b98b4 [file] [log] [blame]
wdenk8bde7f72003-06-27 21:31:46 +00001/*
wdenk3e386912003-04-05 00:53:31 +00002 * 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
30
31/*
32 * Select serial console configuration
33 */
34#define CONFIG_BTUART 1 /* BTUART is default on WEP dev board */
35#define CONFIG_BAUDRATE 115200
36
37
38/*
Jon Loeliger079a1362007-07-10 10:12:10 -050039 * BOOTP options
40 */
41#define CONFIG_BOOTP_BOOTFILESIZE
42#define CONFIG_BOOTP_BOOTPATH
43#define CONFIG_BOOTP_GATEWAY
44#define CONFIG_BOOTP_HOSTNAME
45
46
47/*
Jon Loeligerdca3b3d2007-07-04 22:33:46 -050048 * Command line configuration.
wdenk3e386912003-04-05 00:53:31 +000049 */
Jon Loeligerdca3b3d2007-07-04 22:33:46 -050050#include <config_cmd_default.h>
51
Jon Loeligerdca3b3d2007-07-04 22:33:46 -050052#undef CONFIG_CMD_CONSOLE
Wolfgang Denk74de7ae2009-04-01 23:34:12 +020053#undef CONFIG_CMD_LOADS
54#undef CONFIG_CMD_NET
55#undef CONFIG_CMD_SOURCE
Jon Loeligerdca3b3d2007-07-04 22:33:46 -050056
wdenk3e386912003-04-05 00:53:31 +000057
58/*
59 * Boot options. Setting delay to -1 stops autostart count down.
60 * NOTE: Sending parameters to kernel depends on kernel version and
wdenk8bde7f72003-06-27 21:31:46 +000061 * 2.4.19-rmk6-pxa1 patch used while my u-boot coding didn't accept
wdenk3e386912003-04-05 00:53:31 +000062 * parameters at all! Do not get confused by them so.
63 */
64#define CONFIG_BOOTDELAY -1
65#define CONFIG_BOOTARGS "root=/dev/mtdblock2 mem=32m console=ttyS01,115200n8"
66#define CONFIG_BOOTCOMMAND "bootm 40000"
67
68
69/*
70 * General options for u-boot. Modify to save memory foot print
71 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020072#define CONFIG_SYS_LONGHELP /* undef saves memory */
73#define CONFIG_SYS_PROMPT "WEP> " /* prompt string */
74#define CONFIG_SYS_CBSIZE 256 /* console I/O buffer */
75#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* print buffer size */
76#define CONFIG_SYS_MAXARGS 16 /* max command args */
77#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* boot args buf size */
wdenk3e386912003-04-05 00:53:31 +000078
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020079#define CONFIG_SYS_MEMTEST_START 0xa0400000 /* memtest test area */
80#define CONFIG_SYS_MEMTEST_END 0xa0800000
wdenk3e386912003-04-05 00:53:31 +000081
Micha Kalfon94a33122009-02-11 19:50:11 +020082#define CONFIG_SYS_HZ 1000
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020083#define CONFIG_SYS_CPUSPEED 0x141 /* core clock - register value */
wdenk3e386912003-04-05 00:53:31 +000084
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020085#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
wdenk3e386912003-04-05 00:53:31 +000086
87/*
88 * Definitions related to passing arguments to kernel.
89 */
90#define CONFIG_CMDLINE_TAG 1 /* send commandline to Kernel */
91#define CONFIG_SETUP_MEMORY_TAGS 1 /* send memory definition to kernel */
92#undef CONFIG_INITRD_TAG /* do not send initrd params */
93#undef CONFIG_VFD /* do not send framebuffer setup */
94
95
96/*
97 * Malloc pool need to host env + 128 Kb reserve for other allocations.
98 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020099#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (128<<10) )
100#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
wdenk3e386912003-04-05 00:53:31 +0000101
102#define CONFIG_STACKSIZE (120<<10) /* stack size */
103
104#ifdef CONFIG_USE_IRQ
105#define CONFIG_STACKSIZE_IRQ (4<<10) /* IRQ stack */
106#define CONFIG_STACKSIZE_FIQ (4<<10) /* FIQ stack */
107#endif
108
109/*
110 * SDRAM Memory Map
111 */
112#define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of SDRAM */
113#define WEP_SDRAM_1 0xa0000000 /* SDRAM bank #1 */
114#define WEP_SDRAM_1_SIZE 0x02000000 /* 32 MB ( 2 chip ) */
115#define WEP_SDRAM_2 0xa2000000 /* SDRAM bank #2 */
116#define WEP_SDRAM_2_SIZE 0x00000000 /* 0 MB */
117#define WEP_SDRAM_3 0xa8000000 /* SDRAM bank #3 */
118#define WEP_SDRAM_3_SIZE 0x00000000 /* 0 MB */
119#define WEP_SDRAM_4 0xac000000 /* SDRAM bank #4 */
120#define WEP_SDRAM_4_SIZE 0x00000000 /* 0 MB */
121
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200122#define CONFIG_SYS_DRAM_BASE 0xa0000000
123#define CONFIG_SYS_DRAM_SIZE 0x02000000
wdenk3e386912003-04-05 00:53:31 +0000124
125/* Uncomment used SDRAM chip */
126#define WEP_SDRAM_K4S281633
127/*#define WEP_SDRAM_K4S561633*/
128
129
130/*
131 * Configuration for FLASH memory
132 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200133#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* FLASH banks count (not chip count)*/
134#define CONFIG_SYS_MAX_FLASH_SECT 128 /* number of sector in FLASH bank */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200135#define WEP_FLASH_BUS_WIDTH 4 /* we use 32 bit FLASH memory... */
wdenk8bde7f72003-06-27 21:31:46 +0000136#define WEP_FLASH_INTERLEAVE 2 /* ... made of 2 chips */
wdenk3e386912003-04-05 00:53:31 +0000137#define WEP_FLASH_BANK_SIZE 0x2000000 /* size of one flash bank*/
138#define WEP_FLASH_SECT_SIZE 0x0040000 /* size of erase sector */
139#define WEP_FLASH_BASE 0x0000000 /* location of flash memory */
140#define WEP_FLASH_UNLOCK 1 /* perform hw unlock first */
141
142
143/* This should be defined if CFI FLASH device is present. Actually benefit
144 is not so clear to me. In other words we can provide more informations
wdenk8bde7f72003-06-27 21:31:46 +0000145 to user, but this expects more complex flash handling we do not provide
wdenk3e386912003-04-05 00:53:31 +0000146 now.*/
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200147#undef CONFIG_SYS_FLASH_CFI
wdenk3e386912003-04-05 00:53:31 +0000148
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200149#define CONFIG_SYS_FLASH_ERASE_TOUT (2*CONFIG_SYS_HZ) /* timeout for Erase operation */
150#define CONFIG_SYS_FLASH_WRITE_TOUT (2*CONFIG_SYS_HZ) /* timeout for Write operation */
wdenk3e386912003-04-05 00:53:31 +0000151
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200152#define CONFIG_SYS_FLASH_BASE WEP_FLASH_BASE
wdenk3e386912003-04-05 00:53:31 +0000153
154/*
155 * This is setting for JFFS2 support in u-boot.
156 * Right now there is no gain for user, but later on booting kernel might be
157 * possible. Consider using XIP kernel running from flash to save RAM
158 * footprint.
Jon Loeliger079a1362007-07-10 10:12:10 -0500159 * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.
wdenk3e386912003-04-05 00:53:31 +0000160 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200161#define CONFIG_SYS_JFFS2_FIRST_BANK 0
162#define CONFIG_SYS_JFFS2_FIRST_SECTOR 5
163#define CONFIG_SYS_JFFS2_NUM_BANKS 1
wdenk3e386912003-04-05 00:53:31 +0000164
165/*
166 * Environment setup. Definitions of monitor location and size with
167 * definition of environment setup ends up in 2 possibilities.
168 * 1. Embeded environment - in u-boot code is space for environment
169 * 2. Environment is read from predefined sector of flash
170 * Right now we support 2. possiblity, but expecting no env placed
171 * on mentioned address right now. This also needs to provide whole
172 * sector for it - for us 256Kb is really waste of memory. U-boot uses
173 * default env. and until kernel parameters could be sent to kernel
174 * env. has no sense to us.
175 */
176
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200177#define CONFIG_SYS_MONITOR_BASE PHYS_FLASH_1
178#define CONFIG_SYS_MONITOR_LEN 0x20000 /* 128kb ( 1 flash sector ) */
Jean-Christophe PLAGNIOL-VILLARD5a1aceb2008-09-10 22:48:04 +0200179#define CONFIG_ENV_IS_IN_FLASH 1
Jean-Christophe PLAGNIOL-VILLARD0e8d1582008-09-10 22:48:06 +0200180#define CONFIG_ENV_ADDR 0x20000 /* absolute address for now */
181#define CONFIG_ENV_SIZE 0x2000
wdenk3e386912003-04-05 00:53:31 +0000182
183#undef CONFIG_ENV_OVERWRITE /* env is not writable now */
184
185/*
186 * Well this has to be defined, but on the other hand it is used differently
187 * one may expect. For instance loadb command do not cares :-)
188 * So advice is - do not relay on this...
189 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200190#define CONFIG_SYS_LOAD_ADDR 0x40000
wdenk3e386912003-04-05 00:53:31 +0000191
192#endif /* __CONFIG_H */