blob: 97958342bbba7738f42abe0732552d04b0469cfa [file] [log] [blame]
wdenk5b1d7132002-11-03 00:07:02 +00001 /*
2 * A collection of structures, addresses, and values associated with
3 * the Motorola 860T FADS board. Copied from the MBX stuff.
4 * Magnus Damm added defines for 8xxrom and extended bd_info.
5 * Helmut Buchsbaum added bitvalues for BCSRx
6 *
7 * Copyright (c) 1998 Dan Malek (dmalek@jlc.net)
8 */
9
10/*
11 * 1999-nov-26: The FADS is using the following physical memorymap:
12 *
13 * ff020000 -> ff02ffff : pcmcia io remapping
14 * ff010000 -> ff01ffff : BCSR connected to CS1, setup by U-Boot
15 * ff000000 -> ff00ffff : IMAP internal in the cpu
16 * e0000000 -> f3ffffff : pcmcia memory remapping by m8xx_pcmcia
17 * fe000000 -> fe1fffff : flash connected to CS0, setup by U-Boot
18 * 00000000 -> nnnnnnnn : sdram/dram setup by U-Boot
19*/
20
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020021#define CONFIG_SYS_PCMCIA_IO_ADDR 0xff020000
22#define CONFIG_SYS_PCMCIA_IO_SIZE 0x10000
23#define CONFIG_SYS_PCMCIA_MEM_ADDR 0xe0000000
24#define CONFIG_SYS_PCMCIA_MEM_SIZE 0x10000
25#define CONFIG_SYS_IMMR 0xFF000000
26#define CONFIG_SYS_SDRAM_SIZE (4<<20) /* standard FADS has 4M */
27#define CONFIG_SYS_SDRAM_BASE 0x00000000
28#define CONFIG_SYS_FLASH_BASE 0x02800000
wdenk5b1d7132002-11-03 00:07:02 +000029#define BCSR_ADDR ((uint) 0xff010000)
30#define FLASH_BASE0_PRELIM 0x02800000 /* FLASH bank #0 */
31
32/* ------------------------------------------------------------------------- */
33
34/*
35 * board/config.h - configuration options, board specific
36 */
37
38#ifndef __CONFIG_H
39#define __CONFIG_H
40
Wolfgang Denk291ba1b2010-10-06 09:05:45 +020041#define CONFIG_SYS_TEXT_BASE 0xFE000000
42
wdenk5b1d7132002-11-03 00:07:02 +000043#define CONFIG_ETHADDR 08:00:22:50:70:63 /* Ethernet address */
44#define CONFIG_ENV_OVERWRITE 1 /* Overwrite the environment */
45
46#define CONFIG_VIDEO 1 /* To enable video controller support */
47#define CONFIG_HARD_I2C 1 /* To I2C with hardware support */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020048#define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */
49#define CONFIG_SYS_I2C_SLAVE 0x7F
wdenk5b1d7132002-11-03 00:07:02 +000050
wdenk5b1d7132002-11-03 00:07:02 +000051/*#define CONFIG_PCMCIA 1 / * To enable PCMCIA support */
52
53/* Video related */
54
55#define CONFIG_VIDEO_LOGO 1 /* Show the logo */
56#define CONFIG_VIDEO_ENCODER_AD7176 1 /* Enable this encoder */
57#define CONFIG_VIDEO_ENCODER_AD7176_ADDR 0x54 /* Default on fads */
58#define CONFIG_VIDEO_SIZE (2*1024*1024)
59/* #define CONFIG_VIDEO_ADDR (gd->bd->bi_memsize - CONFIG_VIDEO_SIZE) Frame buffer address */
60
61/* Wireless 56Khz 4PPM keyboard on SMCx */
62
wdenk4e112c12003-06-03 23:54:09 +000063/*#define CONFIG_KEYBOARD 1 */
wdenk5b1d7132002-11-03 00:07:02 +000064#define CONFIG_WL_4PPM_KEYBOARD_SMC 0 /* SMC to use (0 indexed) */
65
66/*
67 * High Level Configuration Options
68 * (easy to change)
69 */
wdenk5b1d7132002-11-03 00:07:02 +000070#define CONFIG_MPC823 1
71#define CONFIG_MPC823FADS 1
72#define CONFIG_FADS 1
73
74#define CONFIG_8xx_CONS_SMC1 1 /* Console is on SMC1 */
75#undef CONFIG_8xx_CONS_SMC2
76#undef CONFIG_8xx_CONS_NONE
77#define CONFIG_BAUDRATE 115200
78
79/* Set the CPU speed to 50Mhz on the FADS */
80
81#if 0
82#define MPC8XX_FACT 10 /* Multiply by 10 */
83#define MPC8XX_XIN 5000000 /* 5 MHz in */
84#else
85#define MPC8XX_FACT 10 /* Multiply by 10 */
86#define MPC8XX_XIN 5000000 /* 5 MHz in */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020087#define CONFIG_SYS_PLPRCR_MF (MPC8XX_FACT-1) << 20 /* From 0 to 4095 */
wdenk5b1d7132002-11-03 00:07:02 +000088#endif
89#define MPC8XX_HZ ((MPC8XX_XIN) * (MPC8XX_FACT))
90
91#define CONFIG_CLOCKS_IN_MHZ 1 /* clocks passsed to Linux in MHz */
92
93#if 1
94#define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */
95#define CONFIG_LOADS_ECHO 0 /* Dont echoes received characters */
96#define CONFIG_BOOTARGS ""
97#define CONFIG_BOOTCOMMAND \
Wolfgang Denka1be4762008-05-20 16:00:29 +020098"bootp ;" \
99"setenv bootargs console=tty0 console=ttyS0 " \
100"root=/dev/nfs nfsroot=${serverip}:${rootpath} " \
101"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:eth0:off ;" \
wdenk5b1d7132002-11-03 00:07:02 +0000102"bootm"
103#else
104#define CONFIG_BOOTDELAY 0 /* autoboot disabled */
105#endif
106
107#undef CONFIG_WATCHDOG /* watchdog disabled */
108
Jon Loeliger1cb2cb62007-07-09 21:16:53 -0500109
110/*
111 * BOOTP options
112 */
113#define CONFIG_BOOTP_SUBNETMASK
114#define CONFIG_BOOTP_GATEWAY
115#define CONFIG_BOOTP_HOSTNAME
116#define CONFIG_BOOTP_BOOTPATH
117#define CONFIG_BOOTP_BOOTFILESIZE
118#define CONFIG_BOOTP_SUBNETMASK
119#define CONFIG_BOOTP_GATEWAY
120#define CONFIG_BOOTP_HOSTNAME
121#define CONFIG_BOOTP_NISDOMAIN
122#define CONFIG_BOOTP_BOOTPATH
123#define CONFIG_BOOTP_DNS
124#define CONFIG_BOOTP_DNS2
125#define CONFIG_BOOTP_SEND_HOSTNAME
126#define CONFIG_BOOTP_NTPSERVER
127#define CONFIG_BOOTP_TIMEOFFSET
128
wdenk5b1d7132002-11-03 00:07:02 +0000129
Jon Loeliger257c3c72007-07-07 21:04:26 -0500130/*
131 * Command line configuration.
132 */
133#include <config_cmd_default.h>
134
wdenk5b1d7132002-11-03 00:07:02 +0000135
136/*
137 * Miscellaneous configurable options
138 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200139#define CONFIG_SYS_LONGHELP /* undef to save memory */
140#define CONFIG_SYS_PROMPT ":>" /* Monitor Command Prompt */
Jon Loeliger257c3c72007-07-07 21:04:26 -0500141#if defined(CONFIG_CMD_KGDB)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200142#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
wdenk5b1d7132002-11-03 00:07:02 +0000143#else
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200144#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
wdenk5b1d7132002-11-03 00:07:02 +0000145#endif
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200146#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
147#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
148#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
wdenk5b1d7132002-11-03 00:07:02 +0000149
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200150#define CONFIG_SYS_MEMTEST_START 0x00004000 /* memtest works on */
151#define CONFIG_SYS_MEMTEST_END 0x01000000 /* 0 ... 16 MB in DRAM */
wdenk5b1d7132002-11-03 00:07:02 +0000152
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200153#define CONFIG_SYS_LOAD_ADDR 0x00100000 /* default load address */
wdenk5b1d7132002-11-03 00:07:02 +0000154
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200155#define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
wdenk5b1d7132002-11-03 00:07:02 +0000156
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200157#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
wdenk5b1d7132002-11-03 00:07:02 +0000158
159/*
160 * Low Level Configuration Settings
161 * (address mappings, register initial values, etc.)
162 * You should know what you are doing if you make changes here.
163 */
164/*-----------------------------------------------------------------------
165 * Internal Memory Mapped Register
166 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200167#define CONFIG_SYS_IMMR_SIZE ((uint)(64 * 1024))
wdenk5b1d7132002-11-03 00:07:02 +0000168
169/*-----------------------------------------------------------------------
170 * Definitions for initial stack pointer and data area (in DPRAM)
171 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200172#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR
173#define CONFIG_SYS_INIT_RAM_END 0x2F00 /* End of used area in DPRAM */
174#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */
175#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
176#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
wdenk5b1d7132002-11-03 00:07:02 +0000177
178/*-----------------------------------------------------------------------
179 * Start addresses for the final memory configuration
180 * (Set up by the startup code)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200181 * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
wdenk5b1d7132002-11-03 00:07:02 +0000182 * Also NOTE that it doesn't mean SDRAM - it means MEMORY.
183 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200184#define CONFIG_SYS_FLASH_SIZE ((uint)(8 * 1024 * 1024)) /* max 8Mbyte */
wdenk5b1d7132002-11-03 00:07:02 +0000185#if 0
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200186#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
wdenk5b1d7132002-11-03 00:07:02 +0000187#else
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200188#define CONFIG_SYS_MONITOR_LEN (512 << 10) /* Reserve 512 kB for Monitor */
wdenk5b1d7132002-11-03 00:07:02 +0000189#endif
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200190#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
191#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
wdenk5b1d7132002-11-03 00:07:02 +0000192
193/*
194 * For booting Linux, the board info and command line data
195 * have to be in the first 8 MB of memory, since this is
196 * the maximum mapped by the Linux kernel during initialization.
197 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200198#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
wdenk5b1d7132002-11-03 00:07:02 +0000199/*-----------------------------------------------------------------------
200 * FLASH organization
201 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200202#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
203#define CONFIG_SYS_MAX_FLASH_SECT 8 /* max number of sectors on one chip */
wdenk5b1d7132002-11-03 00:07:02 +0000204
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200205#define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
206#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
wdenk5b1d7132002-11-03 00:07:02 +0000207
Jean-Christophe PLAGNIOL-VILLARD53db4cd2008-09-10 22:48:04 +0200208#define CONFIG_ENV_IS_IN_FLASH 1
Jean-Christophe PLAGNIOL-VILLARD7e1cda62008-09-10 22:48:06 +0200209#define CONFIG_ENV_OFFSET 0x00040000 /* Offset of Environment Sector */
210#define CONFIG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200211#define CONFIG_SYS_USE_PPCENV /* Environment embedded in sect .ppcenv */
wdenk5b1d7132002-11-03 00:07:02 +0000212
213/*-----------------------------------------------------------------------
214 * Cache Configuration
215 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200216#define CONFIG_SYS_CACHELINE_SIZE 16 /* For all MPC8xx CPUs */
Jon Loeliger257c3c72007-07-07 21:04:26 -0500217#if defined(CONFIG_CMD_KGDB)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200218#define CONFIG_SYS_CACHELINE_SHIFT 4 /* log base 2 of the above value */
wdenk5b1d7132002-11-03 00:07:02 +0000219#endif
220
221/*-----------------------------------------------------------------------
222 * SYPCR - System Protection Control 11-9
223 * SYPCR can only be written once after reset!
224 *-----------------------------------------------------------------------
225 * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
226 */
227#if defined(CONFIG_WATCHDOG)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200228#define CONFIG_SYS_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
wdenk5b1d7132002-11-03 00:07:02 +0000229 SYPCR_SWE | SYPCR_SWRI| SYPCR_SWP)
230#else
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200231#define CONFIG_SYS_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
wdenk5b1d7132002-11-03 00:07:02 +0000232#endif
233
234/*-----------------------------------------------------------------------
235 * SIUMCR - SIU Module Configuration 11-6
236 *-----------------------------------------------------------------------
237 * PCMCIA config., multi-function pin tri-state
238 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200239#define CONFIG_SYS_SIUMCR (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
wdenk5b1d7132002-11-03 00:07:02 +0000240
241/*-----------------------------------------------------------------------
242 * TBSCR - Time Base Status and Control 11-26
243 *-----------------------------------------------------------------------
244 * Clear Reference Interrupt Status, Timebase freezing enabled
245 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200246#define CONFIG_SYS_TBSCR (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
wdenk5b1d7132002-11-03 00:07:02 +0000247
248/*-----------------------------------------------------------------------
249 * PISCR - Periodic Interrupt Status and Control 11-31
250 *-----------------------------------------------------------------------
251 * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
252 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200253#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF)
wdenk5b1d7132002-11-03 00:07:02 +0000254
255/*-----------------------------------------------------------------------
256 * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
257 *-----------------------------------------------------------------------
258 * Reset PLL lock status sticky bit, timer expired status bit and timer *
259 * interrupt status bit - leave PLL multiplication factor unchanged !
260 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200261#define CONFIG_SYS_PLPRCR (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | CONFIG_SYS_PLPRCR_MF)
wdenk5b1d7132002-11-03 00:07:02 +0000262
263/*-----------------------------------------------------------------------
264 * SCCR - System Clock and reset Control Register 15-27
265 *-----------------------------------------------------------------------
266 * Set clock output, timebase and RTC source and divider,
267 * power management and some other internal clocks
268 */
269#define SCCR_MASK SCCR_EBDF11
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200270#define CONFIG_SYS_SCCR (SCCR_TBS | \
wdenk5b1d7132002-11-03 00:07:02 +0000271 SCCR_COM00 | SCCR_DFSYNC00 | SCCR_DFBRG00 | \
272 SCCR_DFNL000 | SCCR_DFNH000 | SCCR_DFLCD000 | \
273 SCCR_DFALCD00)
274
275 /*-----------------------------------------------------------------------
276 *
277 *-----------------------------------------------------------------------
278 *
279 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200280#define CONFIG_SYS_DER 0
wdenk5b1d7132002-11-03 00:07:02 +0000281
282/* Because of the way the 860 starts up and assigns CS0 the
283* entire address space, we have to set the memory controller
284* differently. Normally, you write the option register
285* first, and then enable the chip select by writing the
286* base register. For CS0, you must write the base register
287* first, followed by the option register.
288*/
289
290/*
291 * Init Memory Controller:
292 *
293 * BR0/1 and OR0/1 (FLASH)
294 */
295/* the other CS:s are determined by looking at parameters in BCSRx */
296
297#define BCSR_SIZE ((uint)(64 * 1024))
298
299#define FLASH_BASE1_PRELIM 0x00000000 /* FLASH bank #1 */
300
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200301#define CONFIG_SYS_REMAP_OR_AM 0x80000000 /* OR addr mask */
302#define CONFIG_SYS_PRELIM_OR_AM 0xFFE00000 /* OR addr mask */
wdenk5b1d7132002-11-03 00:07:02 +0000303
304/* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200305#define CONFIG_SYS_OR_TIMING_FLASH (OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
wdenk5b1d7132002-11-03 00:07:02 +0000306
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200307#define CONFIG_SYS_OR0_REMAP (CONFIG_SYS_REMAP_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
308#define CONFIG_SYS_OR0_PRELIM (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH) /* 1 Mbyte until detected and only 1 Mbyte is needed*/
309#define CONFIG_SYS_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
wdenk5b1d7132002-11-03 00:07:02 +0000310
311/* BCSRx - Board Control and Status Registers */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200312#define CONFIG_SYS_OR1_REMAP CONFIG_SYS_OR0_REMAP
313#define CONFIG_SYS_OR1_PRELIM 0xffff8110 /* 64Kbyte address space */
314#define CONFIG_SYS_BR1_PRELIM ((BCSR_ADDR) | BR_V )
wdenk5b1d7132002-11-03 00:07:02 +0000315
316
317/*
318 * Memory Periodic Timer Prescaler
319 */
320
321/* periodic timer for refresh */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200322#define CONFIG_SYS_MAMR_PTA 97 /* start with divider for 100 MHz */
wdenk5b1d7132002-11-03 00:07:02 +0000323
324/* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200325#define CONFIG_SYS_MPTPR_2BK_4K MPTPR_PTP_DIV16 /* setting for 2 banks */
326#define CONFIG_SYS_MPTPR_1BK_4K MPTPR_PTP_DIV32 /* setting for 1 bank */
wdenk5b1d7132002-11-03 00:07:02 +0000327
328/* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200329#define CONFIG_SYS_MPTPR_2BK_8K MPTPR_PTP_DIV8 /* setting for 2 banks */
330#define CONFIG_SYS_MPTPR_1BK_8K MPTPR_PTP_DIV16 /* setting for 1 bank */
wdenk5b1d7132002-11-03 00:07:02 +0000331
332/*
333 * MAMR settings for SDRAM
334 */
335
336/* 8 column SDRAM */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200337#define CONFIG_SYS_MAMR_8COL ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | \
wdenk5b1d7132002-11-03 00:07:02 +0000338 MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 | \
339 MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
340/* 9 column SDRAM */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200341#define CONFIG_SYS_MAMR_9COL ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | \
wdenk5b1d7132002-11-03 00:07:02 +0000342 MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 | \
343 MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
344
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200345#define CONFIG_SYS_MAMR 0x13a01114
wdenk5b1d7132002-11-03 00:07:02 +0000346
347/* values according to the manual */
348
349#define BCSR0 ((uint) (BCSR_ADDR + 00))
350#define BCSR1 ((uint) (BCSR_ADDR + 0x04))
351#define BCSR2 ((uint) (BCSR_ADDR + 0x08))
352#define BCSR3 ((uint) (BCSR_ADDR + 0x0c))
353#define BCSR4 ((uint) (BCSR_ADDR + 0x10))
354
355/* FADS bitvalues by Helmut Buchsbaum
356 * see MPC8xxADS User's Manual for a proper description
357 * of the following structures
358 */
359
360#define BCSR0_ERB ((uint)0x80000000)
361#define BCSR0_IP ((uint)0x40000000)
362#define BCSR0_BDIS ((uint)0x10000000)
363#define BCSR0_BPS_MASK ((uint)0x0C000000)
364#define BCSR0_ISB_MASK ((uint)0x01800000)
365#define BCSR0_DBGC_MASK ((uint)0x00600000)
366#define BCSR0_DBPC_MASK ((uint)0x00180000)
367#define BCSR0_EBDF_MASK ((uint)0x00060000)
368
369#define BCSR1_FLASH_EN ((uint)0x80000000)
370#define BCSR1_DRAM_EN ((uint)0x40000000)
371#define BCSR1_ETHEN ((uint)0x20000000)
372#define BCSR1_IRDEN ((uint)0x10000000)
373#define BCSR1_FLASH_CFG_EN ((uint)0x08000000)
374#define BCSR1_CNT_REG_EN_PROTECT ((uint)0x04000000)
375#define BCSR1_BCSR_EN ((uint)0x02000000)
376#define BCSR1_RS232EN_1 ((uint)0x01000000)
377#define BCSR1_PCCEN ((uint)0x00800000)
378#define BCSR1_PCCVCC0 ((uint)0x00400000)
379#define BCSR1_PCCVPP_MASK ((uint)0x00300000)
380#define BCSR1_DRAM_HALF_WORD ((uint)0x00080000)
381#define BCSR1_RS232EN_2 ((uint)0x00040000)
382#define BCSR1_SDRAM_EN ((uint)0x00020000)
383#define BCSR1_PCCVCC1 ((uint)0x00010000)
384
385#define BCSR2_FLASH_PD_MASK ((uint)0xF0000000)
wdenkefc6f362004-06-10 21:34:36 +0000386#define BCSR2_FLASH_PD_SHIFT 28
wdenk5b1d7132002-11-03 00:07:02 +0000387#define BCSR2_DRAM_PD_MASK ((uint)0x07800000)
wdenkefc6f362004-06-10 21:34:36 +0000388#define BCSR2_DRAM_PD_SHIFT 23
wdenk5b1d7132002-11-03 00:07:02 +0000389#define BCSR2_EXTTOLI_MASK ((uint)0x00780000)
390#define BCSR2_DBREVNR_MASK ((uint)0x00030000)
391
392#define BCSR3_DBID_MASK ((ushort)0x3800)
393#define BCSR3_CNT_REG_EN_PROTECT ((ushort)0x0400)
394#define BCSR3_BREVNR0 ((ushort)0x0080)
395#define BCSR3_FLASH_PD_MASK ((ushort)0x0070)
396#define BCSR3_BREVN1 ((ushort)0x0008)
397#define BCSR3_BREVN2_MASK ((ushort)0x0003)
398
399#define BCSR4_ETHLOOP ((uint)0x80000000)
400#define BCSR4_TFPLDL ((uint)0x40000000)
401#define BCSR4_TPSQEL ((uint)0x20000000)
402#define BCSR4_SIGNAL_LAMP ((uint)0x10000000)
403#ifdef CONFIG_MPC823
404#define BCSR4_USB_EN ((uint)0x08000000)
405#endif /* CONFIG_MPC823 */
406#ifdef CONFIG_MPC860SAR
407#define BCSR4_UTOPIA_EN ((uint)0x08000000)
408#endif /* CONFIG_MPC860SAR */
409#ifdef CONFIG_MPC860T
410#define BCSR4_FETH_EN ((uint)0x08000000)
411#endif /* CONFIG_MPC860T */
412#ifdef CONFIG_MPC823
413#define BCSR4_USB_SPEED ((uint)0x04000000)
414#endif /* CONFIG_MPC823 */
415#ifdef CONFIG_MPC860T
416#define BCSR4_FETHCFG0 ((uint)0x04000000)
417#endif /* CONFIG_MPC860T */
418#ifdef CONFIG_MPC823
419#define BCSR4_VCCO ((uint)0x02000000)
420#endif /* CONFIG_MPC823 */
421#ifdef CONFIG_MPC860T
422#define BCSR4_FETHFDE ((uint)0x02000000)
423#endif /* CONFIG_MPC860T */
424#ifdef CONFIG_MPC823
425#define BCSR4_VIDEO_ON ((uint)0x00800000)
426#endif /* CONFIG_MPC823 */
427#ifdef CONFIG_MPC823
428#define BCSR4_VDO_EKT_CLK_EN ((uint)0x00400000)
429#endif /* CONFIG_MPC823 */
430#ifdef CONFIG_MPC860T
431#define BCSR4_FETHCFG1 ((uint)0x00400000)
432#endif /* CONFIG_MPC860T */
433#ifdef CONFIG_MPC823
434#define BCSR4_VIDEO_RST ((uint)0x00200000)
435#endif /* CONFIG_MPC823 */
436#ifdef CONFIG_MPC860T
437#define BCSR4_FETHRST ((uint)0x00200000)
438#endif /* CONFIG_MPC860T */
439#ifdef CONFIG_MPC823
440#define BCSR4_MODEM_EN ((uint)0x00100000)
441#endif /* CONFIG_MPC823 */
442#ifdef CONFIG_MPC823
443#define BCSR4_DATA_VOICE ((uint)0x00080000)
444#endif /* CONFIG_MPC823 */
445#ifdef CONFIG_MPC850
446#define BCSR4_DATA_VOICE ((uint)0x00080000)
447#endif /* CONFIG_MPC850 */
448
449#define CONFIG_DRAM_50MHZ 1
450#define CONFIG_SDRAM_50MHZ
451
wdenk5b1d7132002-11-03 00:07:02 +0000452/* We don't use the 8259.
453*/
454#define NR_8259_INTS 0
455
wdenk5b1d7132002-11-03 00:07:02 +0000456/*
457 * MPC8xx CPM Options
458 */
459#define CONFIG_SCC_ENET 1
460#define CONFIG_SCC2_ENET 1
461#undef CONFIG_FEC_ENET
462#undef CONFIG_CPM_IIC
463#undef CONFIG_UCODE_PATCH
464
465#define CONFIG_DISK_SPINUP_TIME 1000000
466
467/* PCMCIA configuration */
468
469#define PCMCIA_MAX_SLOTS 1
470
471#ifdef CONFIG_MPC860
472#define PCMCIA_SLOT_A 1
473#endif
474
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200475#define CONFIG_SYS_DAUGHTERBOARD
wdenkad276f22004-01-04 16:28:35 +0000476
wdenk5b1d7132002-11-03 00:07:02 +0000477#endif /* __CONFIG_H */