2 * Configuration settings for the iDMR board
4 * Based on MC5272C3, r5200 and M5271EVB board configs
5 * (C) Copyright 2006 Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * (C) Copyright 2006 Lab X Technologies <zachary.landau@labxtechnologies.com>
7 * (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.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,
33 * High Level Configuration Options (easy to change)
36 #define CONFIG_MCF52x2 /* define processor family */
37 #define CONFIG_M5271 /* define processor type */
38 #define CONFIG_IDMR /* define board type */
40 #undef CONFIG_WATCHDOG /* disable watchdog */
43 * Default environment settings
45 #define CONFIG_BOOTCOMMAND "run net_nfs"
46 #define CONFIG_BOOTDELAY 5
47 #define CONFIG_MCFUART
48 #define CFG_UART_PORT (0)
49 #define CONFIG_BAUDRATE 19200
50 #define CFG_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
51 #define CONFIG_ETHADDR 00:06:3b:01:41:55
52 #define CONFIG_ETHPRIME
53 #define CONFIG_IPADDR 192.168.30.1
54 #define CONFIG_SERVERIP 192.168.1.1
55 #define CONFIG_ROOTPATH
56 #define CONFIG_GATEWAYIP 192.168.1.1
57 #define CONFIG_NETMASK 255.255.0.0
58 #define CONFIG_HOSTNAME idmr
59 #define CONFIG_BOOTFILE /tftpboot/idmr/uImage
60 #define CONFIG_PREBOOT "echo;echo Type \\\"run flash_nfs\\\" to mount root " \
61 "filesystem over NFS; echo"
65 #define CONFIG_EXTRA_ENV_SETTINGS \
67 "ramargs=setenv bootargs root=/dev/ram rw\0" \
68 "addip=setenv bootargs $(bootargs) " \
69 "ip=$(ipaddr):$(serverip):$(gatewayip):" \
70 "$(netmask):$(hostname):$(netdev):off panic=1\0" \
71 "flash_nfs=run nfsargs addip;bootm $(kernel_addr)\0" \
72 "flash_self=run ramargs addip;bootm $(kernel_addr) " \
74 "net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm\0" \
75 "nfsargs=setenv bootargs root=/dev/nfs rw " \
76 "nfsroot=$(serverip):$(rootpath)\0" \
77 "ethact=FEC ETHERNET\0" \
78 "update=prot off ff800000 ff81ffff; era ff800000 ff81ffff; " \
79 "cp.b 200000 ff800000 $(filesize);" \
80 "prot on ff800000 ff81ffff\0" \
81 "load=tftp 200000 $(u-boot)\0" \
82 "u-boot=/tftpboot/idmr/u-boot.bin\0" \
89 #define CONFIG_BOOTP_BOOTFILESIZE
90 #define CONFIG_BOOTP_BOOTPATH
91 #define CONFIG_BOOTP_GATEWAY
92 #define CONFIG_BOOTP_HOSTNAME
96 * Command line configuration.
98 #include <config_cmd_default.h>
100 #define CONFIG_CMD_PING
101 #define CONFIG_CMD_JFFS2
102 #define CONFIG_CMD_NET
104 #undef CONFIG_CMD_LOADS
105 #undef CONFIG_CMD_LOADB
109 * Low Level Configuration Settings
110 * (address mappings, register initial values, etc.)
111 * You should know what you are doing if you make changes here.
115 * Configuration for environment, which occupies third sector in flash.
117 #ifndef CONFIG_MONITOR_IS_IN_RAM
118 #define CFG_ENV_ADDR 0xff820000
119 #define CFG_ENV_SECT_SIZE 0x10000
120 #define CFG_ENV_SIZE 0x2000
121 #define CFG_ENV_IS_IN_FLASH
122 #else /* CONFIG_MONITOR_IS_IN_RAM */
123 #define CFG_ENV_OFFSET 0x4000
124 #define CFG_ENV_SECT_SIZE 0x2000
125 #define CFG_ENV_IS_IN_FLASH
126 #endif /* !CONFIG_MONITOR_IS_IN_RAM */
128 #define CFG_USE_PPCENV /* Environment embedded in sect .ppcenv */
130 #define CFG_PROMPT "=> "
131 #define CFG_LONGHELP /* undef to save memory */
133 #if defined(CONFIG_CMD_KGDB)
134 #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
136 #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
139 #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
140 #define CFG_MAXARGS 16 /* max number of command args */
141 #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
143 #define CFG_LOAD_ADDR 0x00100000
145 #define CFG_MEMTEST_START 0x400
146 #define CFG_MEMTEST_END 0x380000
148 #define CFG_HZ (50000000 / 64)
149 #define CFG_CLK 100000000
151 #define CFG_MBAR 0x40000000 /* Register Base Addrs */
156 #define CONFIG_MCFFEC
158 # define CONFIG_NET_MULTI 1
159 # define CONFIG_MII 1
160 # define CONFIG_MII_INIT 1
161 # define CFG_DISCOVER_PHY
162 # define CFG_RX_ETH_BUFFER 8
163 # define CFG_FAULT_ECHO_LINK_DOWN
165 # define CFG_FEC0_PINMUX 0
166 # define CFG_FEC0_MIIBASE CFG_FEC0_IOBASE
167 # define MCFFEC_TOUT_LOOP 50000
168 /* If CFG_DISCOVER_PHY is not defined - hardcoded */
169 # ifndef CFG_DISCOVER_PHY
170 # define FECDUPLEX FULL
171 # define FECSPEED _100BASET
173 # ifndef CFG_FAULT_ECHO_LINK_DOWN
174 # define CFG_FAULT_ECHO_LINK_DOWN
176 # endif /* CFG_DISCOVER_PHY */
180 * Definitions for initial stack pointer and data area (in DPRAM)
182 #define CFG_INIT_RAM_ADDR 0x20000000
183 #define CFG_INIT_RAM_END 0x1000 /* End of used area in internal SRAM */
184 #define CFG_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */
185 #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
186 #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
189 * Start addresses for the final memory configuration
190 * (Set up by the startup code)
191 * Please note that CFG_SDRAM_BASE _must_ start at 0
193 #define CFG_SDRAM_BASE 0x00000000
194 #define CFG_SDRAM_SIZE 16 /* SDRAM size in MB */
195 #define CFG_FLASH_BASE 0xff800000
197 #ifdef CONFIG_MONITOR_IS_IN_RAM
198 #define CFG_MONITOR_BASE 0x20000
199 #else /* !CONFIG_MONITOR_IS_IN_RAM */
200 #define CFG_MONITOR_BASE (CFG_FLASH_BASE + 0x400)
201 #endif /* CONFIG_MONITOR_IS_IN_RAM */
203 #define CFG_MONITOR_LEN 0x20000
204 #define CFG_MALLOC_LEN (256 << 10)
205 #define CFG_BOOTPARAMS_LEN (64*1024)
208 * For booting Linux, the board info and command line data
209 * have to be in the first 8 MB of memory, since this is
210 * the maximum mapped by the Linux kernel during initialization ??
212 #define CFG_BOOTMAPSZ (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
214 /* FLASH organization */
215 #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
216 #define CFG_MAX_FLASH_SECT 128 /* max number of sectors on one chip */
217 #define CFG_FLASH_ERASE_TOUT 1000
219 #define CFG_FLASH_SIZE 0x800000
221 * #define CFG_FLASH_USE_BUFFER_WRITE 1
224 /* Cache Configuration */
225 #define CFG_CACHELINE_SIZE 16
227 /* Port configuration */
228 #define CFG_FECI2C 0xF0
231 /* Dynamic MTD partition support */
232 #define CONFIG_JFFS2_CMDLINE
233 #define MTDIDS_DEFAULT "nor0=idmr-0"
235 #define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \
241 #if defined(CONFIG_CMD_MII)
242 #error "MII commands don't work on iDMR board and should not be enabled."