]> Git Repo - J-u-boot.git/blame - include/configs/idmr.h
mpc83xx: cosmetic: vme8349.h checkpatch compliance
[J-u-boot.git] / include / configs / idmr.h
CommitLineData
daa6e418
BS
1/*
2 * Configuration settings for the iDMR board
3 *
4 * Based on MC5272C3, r5200 and M5271EVB board configs
5 * (C) Copyright 2006 Wolfgang Denk, DENX Software Engineering, [email protected].
6 * (C) Copyright 2006 Lab X Technologies <[email protected]>
7 * (C) Copyright 2003 Josef Baumgartner <[email protected]>
8 *
9 * See file CREDITS for list of people who contributed to this
10 * project.
11 *
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.
16 *
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.
21 *
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,
25 * MA 02111-1307 USA
26 */
27
28#ifndef _IDMR_H
29#define _IDMR_H
30
31
32/*
33 * High Level Configuration Options (easy to change)
34 */
35
36#define CONFIG_MCF52x2 /* define processor family */
37#define CONFIG_M5271 /* define processor type */
38#define CONFIG_IDMR /* define board type */
39
40#undef CONFIG_WATCHDOG /* disable watchdog */
41
42/*
43 * Default environment settings
44 */
45#define CONFIG_BOOTCOMMAND "run net_nfs"
46#define CONFIG_BOOTDELAY 5
6cfd3c7b 47#define CONFIG_MCFUART
6d0f6bcf 48#define CONFIG_SYS_UART_PORT (0)
daa6e418 49#define CONFIG_BAUDRATE 19200
6d0f6bcf 50#define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
daa6e418
BS
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
8b3637c6 55#define CONFIG_ROOTPATH ""
daa6e418
BS
56#define CONFIG_GATEWAYIP 192.168.1.1
57#define CONFIG_NETMASK 255.255.0.0
58#define CONFIG_HOSTNAME idmr
b3f44c21 59#define CONFIG_BOOTFILE "/tftpboot/idmr/uImage"
32bf3d14 60#define CONFIG_PREBOOT "echo;echo Type \\\"run flash_nfs\\\" to mount root " \
daa6e418
BS
61 "filesystem over NFS; echo"
62
6cfd3c7b
TL
63#define CONFIG_MCFTMR
64
daa6e418
BS
65#define CONFIG_EXTRA_ENV_SETTINGS \
66 "netdev=eth0\0" \
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) " \
73 "$(ramdisk_addr)\0" \
74 "net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm\0" \
75 "nfsargs=setenv bootargs root=/dev/nfs rw " \
76 "nfsroot=$(serverip):$(rootpath)\0" \
48690d80 77 "ethact=FEC\0 " \
daa6e418
BS
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" \
83 ""
84
1d2c6bc4 85
7f5c0157
JL
86/*
87 * BOOTP options
88 */
89#define CONFIG_BOOTP_BOOTFILESIZE
90#define CONFIG_BOOTP_BOOTPATH
91#define CONFIG_BOOTP_GATEWAY
92#define CONFIG_BOOTP_HOSTNAME
93
94
daa6e418 95/*
1d2c6bc4 96 * Command line configuration.
daa6e418 97 */
1d2c6bc4
JL
98#include <config_cmd_default.h>
99
100#define CONFIG_CMD_PING
101#define CONFIG_CMD_JFFS2
102#define CONFIG_CMD_NET
daa6e418 103
1d2c6bc4
JL
104#undef CONFIG_CMD_LOADS
105#undef CONFIG_CMD_LOADB
daa6e418
BS
106
107
108/*
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.
112 */
113
114/*
115 * Configuration for environment, which occupies third sector in flash.
116 */
117#ifndef CONFIG_MONITOR_IS_IN_RAM
0e8d1586
JCPV
118#define CONFIG_ENV_ADDR 0xff820000
119#define CONFIG_ENV_SECT_SIZE 0x10000
120#define CONFIG_ENV_SIZE 0x2000
5a1aceb0 121#define CONFIG_ENV_IS_IN_FLASH
daa6e418 122#else /* CONFIG_MONITOR_IS_IN_RAM */
0e8d1586
JCPV
123#define CONFIG_ENV_OFFSET 0x4000
124#define CONFIG_ENV_SECT_SIZE 0x2000
5a1aceb0 125#define CONFIG_ENV_IS_IN_FLASH
daa6e418
BS
126#endif /* !CONFIG_MONITOR_IS_IN_RAM */
127
6d0f6bcf 128#define CONFIG_SYS_USE_PPCENV /* Environment embedded in sect .ppcenv */
67c31036 129
6d0f6bcf
JCPV
130#define CONFIG_SYS_PROMPT "=> "
131#define CONFIG_SYS_LONGHELP /* undef to save memory */
daa6e418 132
1d2c6bc4 133#if defined(CONFIG_CMD_KGDB)
6d0f6bcf 134#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
1d2c6bc4 135#else
6d0f6bcf 136#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
1d2c6bc4 137#endif
daa6e418 138
6d0f6bcf
JCPV
139#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
140#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
141#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
daa6e418 142
6d0f6bcf 143#define CONFIG_SYS_LOAD_ADDR 0x00100000
daa6e418 144
6d0f6bcf
JCPV
145#define CONFIG_SYS_MEMTEST_START 0x400
146#define CONFIG_SYS_MEMTEST_END 0x380000
daa6e418 147
6d0f6bcf
JCPV
148#define CONFIG_SYS_HZ (50000000 / 64)
149#define CONFIG_SYS_CLK 100000000
daa6e418 150
6d0f6bcf 151#define CONFIG_SYS_MBAR 0x40000000 /* Register Base Addrs */
daa6e418
BS
152
153/*
154 * Ethernet
155 */
6cfd3c7b
TL
156#define CONFIG_MCFFEC
157#ifdef CONFIG_MCFFEC
0f3ba7e9
TL
158# define CONFIG_MII 1
159# define CONFIG_MII_INIT 1
6d0f6bcf
JCPV
160# define CONFIG_SYS_DISCOVER_PHY
161# define CONFIG_SYS_RX_ETH_BUFFER 8
162# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
6cfd3c7b 163
6d0f6bcf
JCPV
164# define CONFIG_SYS_FEC0_PINMUX 0
165# define CONFIG_SYS_FEC0_MIIBASE CONFIG_SYS_FEC0_IOBASE
53677ef1 166# define MCFFEC_TOUT_LOOP 50000
6d0f6bcf
JCPV
167/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
168# ifndef CONFIG_SYS_DISCOVER_PHY
6cfd3c7b
TL
169# define FECDUPLEX FULL
170# define FECSPEED _100BASET
171# else
6d0f6bcf
JCPV
172# ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
173# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
6cfd3c7b 174# endif
6d0f6bcf 175# endif /* CONFIG_SYS_DISCOVER_PHY */
6cfd3c7b 176#endif
daa6e418
BS
177
178/*
179 * Definitions for initial stack pointer and data area (in DPRAM)
180 */
6d0f6bcf 181#define CONFIG_SYS_INIT_RAM_ADDR 0x20000000
553f0982 182#define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in internal SRAM */
25ddd1fb 183#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
6d0f6bcf 184#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
daa6e418
BS
185
186/*
187 * Start addresses for the final memory configuration
188 * (Set up by the startup code)
6d0f6bcf 189 * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
daa6e418 190 */
6d0f6bcf
JCPV
191#define CONFIG_SYS_SDRAM_BASE 0x00000000
192#define CONFIG_SYS_SDRAM_SIZE 16 /* SDRAM size in MB */
193#define CONFIG_SYS_FLASH_BASE 0xff800000
daa6e418
BS
194
195#ifdef CONFIG_MONITOR_IS_IN_RAM
6d0f6bcf 196#define CONFIG_SYS_MONITOR_BASE 0x20000
daa6e418 197#else /* !CONFIG_MONITOR_IS_IN_RAM */
6d0f6bcf 198#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
daa6e418
BS
199#endif /* CONFIG_MONITOR_IS_IN_RAM */
200
6d0f6bcf
JCPV
201#define CONFIG_SYS_MONITOR_LEN 0x20000
202#define CONFIG_SYS_MALLOC_LEN (256 << 10)
203#define CONFIG_SYS_BOOTPARAMS_LEN (64*1024)
daa6e418
BS
204
205/*
206 * For booting Linux, the board info and command line data
207 * have to be in the first 8 MB of memory, since this is
208 * the maximum mapped by the Linux kernel during initialization ??
209 */
6d0f6bcf 210#define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
daa6e418
BS
211
212/* FLASH organization */
6d0f6bcf
JCPV
213#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
214#define CONFIG_SYS_MAX_FLASH_SECT 128 /* max number of sectors on one chip */
215#define CONFIG_SYS_FLASH_ERASE_TOUT 1000
daa6e418 216
6d0f6bcf 217#define CONFIG_SYS_FLASH_SIZE 0x800000
daa6e418 218/*
6d0f6bcf 219 * #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
daa6e418
BS
220 */
221
222/* Cache Configuration */
6d0f6bcf 223#define CONFIG_SYS_CACHELINE_SIZE 16
daa6e418 224
dd9f054e 225#define ICACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
553f0982 226 CONFIG_SYS_INIT_RAM_SIZE - 8)
dd9f054e 227#define DCACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
553f0982 228 CONFIG_SYS_INIT_RAM_SIZE - 4)
dd9f054e
TL
229#define CONFIG_SYS_ICACHE_INV (CF_CACR_CINV | CF_CACR_INVI)
230#define CONFIG_SYS_CACHE_ACR0 (CONFIG_SYS_SDRAM_BASE | \
231 CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
232 CF_ACR_EN | CF_ACR_SM_ALL)
233#define CONFIG_SYS_CACHE_ICACR (CF_CACR_CENB | CF_CACR_CINV | \
234 CF_CACR_DISD | CF_CACR_INVI | \
235 CF_CACR_CEIB | CF_CACR_DCM | \
236 CF_CACR_EUSP)
237
daa6e418 238/* Port configuration */
6d0f6bcf 239#define CONFIG_SYS_FECI2C 0xF0
0ed47bb1 240
2daf046b
BS
241
242/* Dynamic MTD partition support */
68d7d651 243#define CONFIG_CMD_MTDPARTS
942556a9
SR
244#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
245#define CONFIG_FLASH_CFI_MTD
2daf046b
BS
246#define MTDIDS_DEFAULT "nor0=idmr-0"
247
248#define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \
249 "64k(env)," \
250 "640k(kernel)," \
251 "2m(rootfs)," \
252 "-(user)";
253
26667b7f
SR
254#if defined(CONFIG_CMD_MII)
255#error "MII commands don't work on iDMR board and should not be enabled."
256#endif
0ed47bb1 257
daa6e418 258#endif /* _IDMR_H */
This page took 0.322305 seconds and 4 git commands to generate.