3 * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.net
6 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
7 * Marius Groeger <mgroeger@sysgo.de>
9 * See file CREDITS for list of people who contributed to this
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of
15 * the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * High Level Configuration Options
35 #define CONFIG_PXA250 1 /* This is an PXA250 CPU */
36 #define CONFIG_XM250 1 /* on a MicroSys XM250 Board */
37 #undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
40 * Size of malloc() pool; this lives below the uppermost 128 KiB which are
41 * used for the RAM copy of the uboot code
44 #define CONFIG_SYS_MALLOC_LEN (256*1024)
45 #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
50 #define CONFIG_DRIVER_SMC91111
51 #define CONFIG_SMC91111_BASE 0x04000300
52 #undef CONFIG_SMC91111_EXT_PHY
53 #define CONFIG_SMC_USE_32_BIT
54 #undef CONFIG_SHOW_ACTIVITY
55 #define CONFIG_NET_RETRY_COUNT 10 /* # of retries */
60 #define CONFIG_HARD_I2C 1
61 #define CONFIG_SYS_I2C_SPEED 50000
62 #define CONFIG_SYS_I2C_SLAVE 0xfe
64 #define CONFIG_RTC_PCF8563 1
65 #define CONFIG_SYS_I2C_RTC_ADDR 0x51
67 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x58 /* A0 = 0 (hardwired) */
68 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 /* 4 bits = 16 octets */
69 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* between stop and start */
70 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* length of address */
71 #define CONFIG_SYS_EEPROM_SIZE 2048 /* size in bytes */
72 #undef CONFIG_SYS_I2C_INIT_BOARD /* board has no own init */
75 * select serial console configuration
77 #define CONFIG_FFUART 1 /* we use FFUART */
79 /* allow to overwrite serial and ethaddr */
80 #define CONFIG_ENV_OVERWRITE
82 #define CONFIG_BAUDRATE 115200
88 #define CONFIG_BOOTP_BOOTFILESIZE
89 #define CONFIG_BOOTP_BOOTPATH
90 #define CONFIG_BOOTP_GATEWAY
91 #define CONFIG_BOOTP_HOSTNAME
95 * Command line configuration.
97 #include <config_cmd_default.h>
99 #define CONFIG_CMD_ELF
100 #define CONFIG_CMD_EEPROM
101 #define CONFIG_CMD_DATE
102 #define CONFIG_CMD_I2C
105 #define CONFIG_BOOTDELAY 3
108 * Miscellaneous configurable options
110 #define CONFIG_SYS_LONGHELP /* undef to save memory */
111 #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
112 #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
113 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
114 #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
115 #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
117 #define CONFIG_SYS_MEMTEST_START 0xa0400000 /* memtest works on */
118 #define CONFIG_SYS_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */
120 #define CONFIG_SYS_LOAD_ADDR 0xa3000000 /* default load address */
122 #define CONFIG_SYS_HZ 1000
123 #define CONFIG_SYS_CPUSPEED 0x161 /* set core clock to 400/400/100 MHz */
125 /* valid baudrates */
127 #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
130 * Definitions related to passing arguments to kernel.
132 #define CONFIG_CMDLINE_TAG 1 /* send commandline to Kernel */
133 #define CONFIG_SETUP_MEMORY_TAGS 1 /* send memory definition to kernel */
134 #define CONFIG_INITRD_TAG 1 /* do not send initrd params */
135 #undef CONFIG_VFD /* do not send framebuffer setup */
140 * The stack sizes are set up in start.S using the settings below
142 #define CONFIG_STACKSIZE (128*1024) /* regular stack */
143 #ifdef CONFIG_USE_IRQ
144 #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
145 #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
149 * Physical Memory Map
151 #define CONFIG_NR_DRAM_BANKS 4
152 #define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */
153 #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
154 #define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */
155 #define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */
156 #define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */
157 #define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */
158 #define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */
159 #define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */
161 #define PHYS_FLASH_1 0x00000000 /* Flash Bank #1 */
162 #define PHYS_FLASH_2 0x04000000 /* Flash Bank #1 */
163 #define PHYS_FLASH_SIZE 0x01000000 /* 16 MB */
164 #define PHYS_FLASH_BANK_SIZE 0x01000000 /* 16 MB Banks */
165 #define PHYS_FLASH_SECT_SIZE 0x00040000 /* 256 KB sectors (x2) */
167 #define CONFIG_SYS_DRAM_BASE 0xa0000000
168 #define CONFIG_SYS_DRAM_SIZE 0x04000000
170 #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1
173 * FLASH and environment organization
175 #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
176 #define CONFIG_SYS_MAX_FLASH_SECT 128 /* max number of sectors on one chip */
178 /* timeout values are in ticks */
179 #define CONFIG_SYS_FLASH_ERASE_TOUT (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
180 #define CONFIG_SYS_FLASH_WRITE_TOUT (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
181 #define CONFIG_SYS_FLASH_LOCK_TOUT (2*CONFIG_SYS_HZ) /* Timeout for Flash Set Lock Bit */
182 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (2*CONFIG_SYS_HZ) /* Timeout for Flash Clear Lock Bits */
183 #define CONFIG_SYS_FLASH_PROTECTION /* "Real" (hardware) sectors protection */
185 #define CONFIG_ENV_IS_IN_FLASH 1
186 #define CONFIG_ENV_ADDR (PHYS_FLASH_1 + 0x40000) /* Addr of Environment Sector */
187 #define CONFIG_ENV_SIZE 0x4000
188 #define CONFIG_ENV_SECT_SIZE 0x40000 /* Size of the Environment Sector */
189 #define CONFIG_SYS_MONITOR_LEN 0x20000 /* 128 KiB */
191 /******************************************************************************
193 * CPU specific defines
195 ******************************************************************************/
200 * GPIO pin assignments
201 * GPIO Name Dir Out AF
224 * 22 PGMEN O 1 FIXME for debug only enable flash
244 * 42 RS232FOFF O 0 00
284 * NOTE: All NC's are defined to be outputs
287 /* Pin direction control */
288 #define CONFIG_SYS_GPDR0_VAL 0xd3808000
289 #define CONFIG_SYS_GPDR1_VAL 0xfcffab83
290 #define CONFIG_SYS_GPDR2_VAL 0x0001ffff
291 /* Set and Clear registers */
292 #define CONFIG_SYS_GPSR0_VAL 0x00008000
293 #define CONFIG_SYS_GPSR1_VAL 0x00ff0002
294 #define CONFIG_SYS_GPSR2_VAL 0x0001c000
295 #define CONFIG_SYS_GPCR0_VAL 0x00000000
296 #define CONFIG_SYS_GPCR1_VAL 0x00000000
297 #define CONFIG_SYS_GPCR2_VAL 0x00000000
298 /* Edge detect registers (these are set by the kernel) */
299 #define CONFIG_SYS_GRER0_VAL 0x00002180
300 #define CONFIG_SYS_GRER1_VAL 0x00000000
301 #define CONFIG_SYS_GRER2_VAL 0x00000000
302 #define CONFIG_SYS_GFER0_VAL 0x000043e0
303 #define CONFIG_SYS_GFER1_VAL 0x00000000
304 #define CONFIG_SYS_GFER2_VAL 0x00000000
305 /* Alternate function registers */
306 #define CONFIG_SYS_GAFR0_L_VAL 0x80000004
307 #define CONFIG_SYS_GAFR0_U_VAL 0x595a8010
308 #define CONFIG_SYS_GAFR1_L_VAL 0x699a9559
309 #define CONFIG_SYS_GAFR1_U_VAL 0xaaa5aaaa
310 #define CONFIG_SYS_GAFR2_L_VAL 0xaaaaaaaa
311 #define CONFIG_SYS_GAFR2_U_VAL 0x00000002
314 * Clocks, power control and interrupts
316 #define CONFIG_SYS_PSSR_VAL 0x00000030
317 #define CONFIG_SYS_CCCR_VAL 0x00000161 /* 100 MHz memory, 400 MHz CPU, 400 Turbo */
318 #define CONFIG_SYS_CKEN_VAL 0x000141ec /* FFUART and STUART enabled */
319 #define CONFIG_SYS_ICMR_VAL 0x00000000 /* No interrupts enabled */
332 #define CONFIG_SYS_MSC0_VAL 0x122423f0 /* FLASH / LAN (cs0)/(cS1) */
333 #define CONFIG_SYS_MSC1_VAL 0x35f4aa4c /* USB / ST3+ST5 (cs2)/(cS3) */
334 #define CONFIG_SYS_MSC2_VAL 0x35f435fc /* IDE / BCR + WatchDog (cs4)/(cS5) */
335 #define CONFIG_SYS_MDCNFG_VAL 0x000009c9
336 #define CONFIG_SYS_MDMRS_VAL 0x00220022
337 #define CONFIG_SYS_MDREFR_VAL 0x000da018 /* Initial setting, individual bits set in lowlevel_init.S */
340 * PCMCIA and CF Interfaces (NOT USED, these values from lubbock init)
342 #define CONFIG_SYS_MECR_VAL 0x00000000
343 #define CONFIG_SYS_MCMEM0_VAL 0x00010504
344 #define CONFIG_SYS_MCMEM1_VAL 0x00010504
345 #define CONFIG_SYS_MCATT0_VAL 0x00010504
346 #define CONFIG_SYS_MCATT1_VAL 0x00010504
347 #define CONFIG_SYS_MCIO0_VAL 0x00004715
348 #define CONFIG_SYS_MCIO1_VAL 0x00004715
350 /* Board specific defines */
354 /* global prototypes */
355 void led_code(int code, int color);
359 #endif /* __CONFIG_H */