blob: f144f84320183cbd55ae27deacaa4ca51436d8d4 [file] [log] [blame]
wdenke2211742002-11-02 23:30:20 +00001/*
2 * (C) Copyright 2000
3 * Murray Jensen <Murray.Jensen@cmst.csiro.au>
4 *
5 * (C) Copyright 2000
6 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
7 * Marius Groeger <mgroeger@sysgo.de>
8 *
9 * Configuation settings for the R&S Protocol Board board.
10 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
wdenke2211742002-11-02 23:30:20 +000012 */
13
14#ifndef __CONFIG_H
15#define __CONFIG_H
16
17/*
18 * High Level Configuration Options
19 * (easy to change)
20 */
21
22#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
23#define CONFIG_RSD_PROTO 1 /* on a R&S Protocol Board */
Jon Loeliger9c4c5ae2005-07-23 10:37:35 -050024#define CONFIG_CPM2 1 /* Has a CPM2 */
wdenke2211742002-11-02 23:30:20 +000025
Wolfgang Denk2ae18242010-10-06 09:05:45 +020026#define CONFIG_SYS_TEXT_BASE 0xff000000
Wolfgang Denk2ced53e2010-11-28 21:18:58 +010027#define CONFIG_SYS_LDSCRIPT "board/rsdproto/u-boot.lds"
Wolfgang Denk2ae18242010-10-06 09:05:45 +020028
wdenkc837dcb2004-01-20 23:12:12 +000029#define CONFIG_MISC_INIT_F 1 /* Use misc_init_f() */
30
wdenke2211742002-11-02 23:30:20 +000031/*
32 * select serial console configuration
33 *
34 * if either CONFIG_CONS_ON_SMC or CONFIG_CONS_ON_SCC is selected, then
35 * CONFIG_CONS_INDEX must be set to the channel number (1-2 for SMC, 1-4
36 * for SCC).
37 *
38 * if CONFIG_CONS_NONE is defined, then the serial console routines must
39 * defined elsewhere.
40 */
41#undef CONFIG_CONS_ON_SMC /* define if console on SMC */
42#define CONFIG_CONS_ON_SCC /* define if console on SCC */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020043#undef CONFIG_CONS_NONE /* define if console on neither */
wdenke2211742002-11-02 23:30:20 +000044#define CONFIG_CONS_INDEX 1 /* which SMC/SCC channel for console */
45
46/*
47 * select ethernet configuration
48 *
49 * if either CONFIG_ETHER_ON_SCC or CONFIG_ETHER_ON_FCC is selected, then
50 * CONFIG_ETHER_INDEX must be set to the channel number (1-4 for SCC, 1-3
51 * for FCC)
52 *
53 * if CONFIG_ETHER_NONE is defined, then either the ethernet routines must be
Jon Loeliger639221c2007-07-09 17:15:49 -050054 * defined elsewhere (as for the console), or CONFIG_CMD_NET must be unset.
wdenke2211742002-11-02 23:30:20 +000055 */
56#undef CONFIG_ETHER_ON_SCC /* define if ethernet on SCC */
57#define CONFIG_ETHER_ON_FCC /* define if ethernet on FCC */
58#undef CONFIG_ETHER_NONE /* define if ethernet on neither */
59#define CONFIG_ETHER_INDEX 2 /* which SCC/FCC channel for ethernet */
60
61#if (CONFIG_ETHER_INDEX == 2)
62
63/*
64 * - Rx-CLK is CLK13
65 * - Tx-CLK is CLK14
66 * - Select bus for bd/buffers (see 28-13)
67 * - Enable Full Duplex in FSMR
68 */
Mike Frysingerd4590da2011-10-17 05:38:58 +000069# define CONFIG_SYS_CMXFCR_MASK2 (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
70# define CONFIG_SYS_CMXFCR_VALUE2 (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020071# define CONFIG_SYS_CPMFCR_RAMTYPE (0)
72# define CONFIG_SYS_FCC_PSMR (FCC_PSMR_FDE | FCC_PSMR_LPB)
wdenke2211742002-11-02 23:30:20 +000073
74#endif /* CONFIG_ETHER_INDEX */
75
76
77/* allow to overwrite serial and ethaddr */
78#define CONFIG_ENV_OVERWRITE
79
80/* enable I2C */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020081#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020082#define CONFIG_SYS_I2C_SPEED 50000 /* I2C speed and slave address */
83#define CONFIG_SYS_I2C_SLAVE 0x30
wdenke2211742002-11-02 23:30:20 +000084
85
86/* system clock rate (CLKIN) - equal to the 60x and local bus speed */
87#define CONFIG_8260_CLKIN 50000000 /* in Hz */
88
89#define CONFIG_BAUDRATE 115200
90
Jon Loeliger90cc3eb2007-07-04 22:33:23 -050091
92/*
Jon Loeliger079a1362007-07-10 10:12:10 -050093 * BOOTP options
94 */
95#define CONFIG_BOOTP_BOOTFILESIZE
96#define CONFIG_BOOTP_BOOTPATH
97#define CONFIG_BOOTP_GATEWAY
98#define CONFIG_BOOTP_HOSTNAME
99
100
101/*
Jon Loeliger90cc3eb2007-07-04 22:33:23 -0500102 * Command line configuration.
103 */
104#include <config_cmd_default.h>
105
106#undef CONFIG_CMD_KGDB
107
wdenke2211742002-11-02 23:30:20 +0000108
109/* Define this if you want to boot from 0x00000100. If you don't define
110 * this, you will need to program the bootloader to 0xfff00000, and
111 * get the hardware reset config words at 0xfe000000. The simplest
112 * way to do that is to program the bootloader at both addresses.
113 * It is suggested that you just let U-Boot live at 0x00000000.
114 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200115#define CONFIG_SYS_RSD_BOOT_LOW 1
wdenke2211742002-11-02 23:30:20 +0000116
wdenke2211742002-11-02 23:30:20 +0000117#define CONFIG_BOOTDELAY 5
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200118#define CONFIG_BOOTARGS "devfs=mount root=ramfs"
wdenke2211742002-11-02 23:30:20 +0000119#define CONFIG_ETHADDR 08:00:3e:26:0a:5a
120#define CONFIG_NETMASK 255.255.0.0
121
Jon Loeliger90cc3eb2007-07-04 22:33:23 -0500122#if defined(CONFIG_CMD_KGDB)
wdenke2211742002-11-02 23:30:20 +0000123#define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
124#define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
125#endif
126
127/*
128 * Miscellaneous configurable options
129 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200130#define CONFIG_SYS_LONGHELP /* undef to save memory */
Jon Loeliger90cc3eb2007-07-04 22:33:23 -0500131#if defined(CONFIG_CMD_KGDB)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200132#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
wdenke2211742002-11-02 23:30:20 +0000133#else
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200134#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
wdenke2211742002-11-02 23:30:20 +0000135#endif
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200136#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
137#define CONFIG_SYS_MAXARGS 16 /* max number of command args */
138#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
wdenke2211742002-11-02 23:30:20 +0000139
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200140#define CONFIG_SYS_MEMTEST_START 0x00400000 /* memtest works on */
141#define CONFIG_SYS_MEMTEST_END 0x01c00000 /* 4 ... 28 MB in DRAM */
wdenke2211742002-11-02 23:30:20 +0000142
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200143#define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
wdenke2211742002-11-02 23:30:20 +0000144
wdenke2211742002-11-02 23:30:20 +0000145/*
146 * Low Level Configuration Settings
147 * (address mappings, register initial values, etc.)
148 * You should know what you are doing if you make changes here.
149 */
150
151/*-----------------------------------------------------------------------
152 * Physical Memory Map
153 */
154#define PHYS_SDRAM_60X 0x00000000 /* SDRAM (60x Bus) */
155#define PHYS_SDRAM_60X_SIZE 0x08000000 /* 128 MB */
156
157#define PHYS_SDRAM_LOCAL 0x40000000 /* SDRAM (Local Bus) */
158#define PHYS_SDRAM_LOCAL_SIZE 0x04000000 /* 64 MB */
159
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200160#define PHYS_DPRAM_PCI 0xE8000000 /* DPRAM PPC/PCI */
161#define PHYS_DPRAM_PCI_SIZE 0x00020000 /* 128 KB */
wdenke2211742002-11-02 23:30:20 +0000162
163/*#define PHYS_DPRAM_PCI_SEM 0x04020000 / * DPRAM PPC/PCI Semaphore */
164/*#define PHYS_DPRAM_PCI_SEM_SIZE 0x00000001 / * 1 Byte */
165
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200166#define PHYS_DPRAM_SHARC 0xE8100000 /* DPRAM PPC/Sharc */
167#define PHYS_DPRAM_SHARC_SIZE 0x00040000 /* 256 KB */
wdenke2211742002-11-02 23:30:20 +0000168
169/*#define PHYS_DPRAM_SHARC_SEM 0x04140000 / * DPRAM PPC/Sharc Semaphore */
170/*#define PHYS_DPRAM_SHARC_SEM_SIZE 0x00000001 / * 1 Byte */
171
172#define PHYS_VIRTEX_REGISTER 0xE8300000 /* FPGA implemented register */
173#define PHYS_VIRTEX_REGISTER_SIZE 0x00000100
174
175#define PHYS_USB 0x04200000 /* USB Controller (60x Bus) */
176#define PHYS_USB_SIZE 0x00000002 /* 2 Bytes */
177
178#define PHYS_IMMR 0xF0000000 /* Internal Memory Mapped Reg. */
179
180#define PHYS_FLASH 0xFF000000 /* Flash (60x Bus) */
181#define PHYS_FLASH_SIZE 0x01000000 /* 16 MB */
182
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200183#define CONFIG_SYS_IMMR PHYS_IMMR
wdenke2211742002-11-02 23:30:20 +0000184
185/*-----------------------------------------------------------------------
186 * Reset Address
187 *
188 * In order to reset the CPU, U-Boot jumps to a special address which
189 * causes a machine check exception. The default address for this is
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200190 * CONFIG_SYS_MONITOR_BASE - sizeof (ulong), which might not always work, eg. when
wdenke2211742002-11-02 23:30:20 +0000191 * testing the monitor in RAM using a JTAG debugger.
192 *
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200193 * Just set CONFIG_SYS_RESET_ADDRESS to an address that you know is sure to
wdenke2211742002-11-02 23:30:20 +0000194 * cause a bus error on your hardware.
195 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200196#define CONFIG_SYS_RESET_ADDRESS 0x20000000
wdenke2211742002-11-02 23:30:20 +0000197
198/*-----------------------------------------------------------------------
199 * Hard Reset Configuration Words
200 */
201
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200202#if defined(CONFIG_SYS_RSD_BOOT_LOW)
203# define CONFIG_SYS_RSD_HRCW_BOOT_FLAGS (HRCW_CIP | HRCW_BMS)
wdenke2211742002-11-02 23:30:20 +0000204#else
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200205# define CONFIG_SYS_RSD_HRCW_BOOT_FLAGS (0)
206#endif /* defined(CONFIG_SYS_RSD_BOOT_LOW) */
wdenke2211742002-11-02 23:30:20 +0000207
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200208/* get the HRCW ISB field from CONFIG_SYS_IMMR */
209#define CONFIG_SYS_RSD_HRCW_IMMR ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) |\
210 ((CONFIG_SYS_IMMR & 0x01000000) >> 7) |\
211 ((CONFIG_SYS_IMMR & 0x00100000) >> 4) )
wdenke2211742002-11-02 23:30:20 +0000212
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200213#define CONFIG_SYS_HRCW_MASTER (HRCW_L2CPC10 | \
wdenke2211742002-11-02 23:30:20 +0000214 HRCW_DPPC11 | \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200215 CONFIG_SYS_RSD_HRCW_IMMR |\
wdenk8bde7f72003-06-27 21:31:46 +0000216 HRCW_MMR00 | \
217 HRCW_APPC10 | \
218 HRCW_CS10PC00 | \
219 HRCW_MODCK_H0000 |\
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200220 CONFIG_SYS_RSD_HRCW_BOOT_FLAGS)
wdenke2211742002-11-02 23:30:20 +0000221
222/* no slaves */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200223#define CONFIG_SYS_HRCW_SLAVE1 0
224#define CONFIG_SYS_HRCW_SLAVE2 0
225#define CONFIG_SYS_HRCW_SLAVE3 0
226#define CONFIG_SYS_HRCW_SLAVE4 0
227#define CONFIG_SYS_HRCW_SLAVE5 0
228#define CONFIG_SYS_HRCW_SLAVE6 0
229#define CONFIG_SYS_HRCW_SLAVE7 0
wdenke2211742002-11-02 23:30:20 +0000230
231/*-----------------------------------------------------------------------
232 * Definitions for initial stack pointer and data area (in DPRAM)
233 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200234#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR
Wolfgang Denk553f0982010-10-26 13:32:32 +0200235#define CONFIG_SYS_INIT_RAM_SIZE 0x4000 /* Size of used area in DPRAM */
Wolfgang Denk25ddd1f2010-10-26 14:34:52 +0200236#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200237#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
wdenke2211742002-11-02 23:30:20 +0000238
239/*-----------------------------------------------------------------------
240 * Start addresses for the final memory configuration
241 * (Set up by the startup code)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200242 * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
243 * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependend.
wdenke2211742002-11-02 23:30:20 +0000244 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200245#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_60X
246#define CONFIG_SYS_FLASH_BASE PHYS_FLASH
247/*#define CONFIG_SYS_MONITOR_BASE 0x200000 */
248#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
249#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
250#define CONFIG_SYS_RAMBOOT
wdenke2211742002-11-02 23:30:20 +0000251#endif
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200252#define CONFIG_SYS_MONITOR_LEN (160 << 10) /* Reserve 160 kB for Monitor */
253#define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
wdenke2211742002-11-02 23:30:20 +0000254
255/*
256 * For booting Linux, the board info and command line data
257 * have to be in the first 8 MB of memory, since this is
258 * the maximum mapped by the Linux kernel during initialization.
259 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200260#define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
wdenke2211742002-11-02 23:30:20 +0000261
262/*-----------------------------------------------------------------------
263 * FLASH and environment organization
264 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200265#define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of memory banks */
266#define CONFIG_SYS_MAX_FLASH_SECT 63 /* max number of sectors on one chip */
wdenke2211742002-11-02 23:30:20 +0000267
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200268#define CONFIG_SYS_FLASH_ERASE_TOUT 12000 /* Timeout for Flash Erase (in ms) */
269#define CONFIG_SYS_FLASH_WRITE_TOUT 3000 /* Timeout for Flash Write (in ms) */
wdenke2211742002-11-02 23:30:20 +0000270
271/* turn off NVRAM env feature */
272#undef CONFIG_NVRAM_ENV
273
Jean-Christophe PLAGNIOL-VILLARD5a1aceb2008-09-10 22:48:04 +0200274#define CONFIG_ENV_IS_IN_FLASH 1
Jean-Christophe PLAGNIOL-VILLARD0e8d1582008-09-10 22:48:06 +0200275#define CONFIG_ENV_ADDR (PHYS_FLASH + 0x28000) /* Addr of Environment Sector */
276#define CONFIG_ENV_SECT_SIZE 0x8000 /* Total Size of Environment Sector */
wdenke2211742002-11-02 23:30:20 +0000277
278/*-----------------------------------------------------------------------
279 * Cache Configuration
280 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200281#define CONFIG_SYS_CACHELINE_SIZE 32 /* For MPC8260 CPU */
Jon Loeliger90cc3eb2007-07-04 22:33:23 -0500282#if defined(CONFIG_CMD_KGDB)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200283#define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */
wdenke2211742002-11-02 23:30:20 +0000284#endif
285
286/*-----------------------------------------------------------------------
287 * HIDx - Hardware Implementation-dependent Registers 2-11
288 *-----------------------------------------------------------------------
289 * HID0 also contains cache control - initially enable both caches and
290 * invalidate contents, then the final state leaves only the instruction
291 * cache enabled. Note that Power-On and Hard reset invalidate the caches,
292 * but Soft reset does not.
293 *
294 * HID1 has only read-only information - nothing to set.
295 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200296#define CONFIG_SYS_HID0_INIT (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|HID0_IFEM|HID0_ABE)
297#define CONFIG_SYS_HID0_FINAL (HID0_ICE|HID0_IFEM|HID0_ABE|HID0_EMCP)
298#define CONFIG_SYS_HID2 0
wdenke2211742002-11-02 23:30:20 +0000299
300/*-----------------------------------------------------------------------
301 * RMR - Reset Mode Register
302 *-----------------------------------------------------------------------
303 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200304#define CONFIG_SYS_RMR 0
wdenke2211742002-11-02 23:30:20 +0000305
306/*-----------------------------------------------------------------------
307 * BCR - Bus Configuration 4-25
308 *-----------------------------------------------------------------------
309 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200310#define CONFIG_SYS_BCR 0x100c0000
wdenke2211742002-11-02 23:30:20 +0000311
312/*-----------------------------------------------------------------------
313 * SIUMCR - SIU Module Configuration 4-31
314 *-----------------------------------------------------------------------
315 */
316
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200317#define CONFIG_SYS_SIUMCR (SIUMCR_DPPC11 | SIUMCR_L2CPC10 | SIUMCR_APPC10 | \
wdenke2211742002-11-02 23:30:20 +0000318 SIUMCR_CS10PC01 | SIUMCR_BCTLC01)
319
320/*-----------------------------------------------------------------------
321 * SYPCR - System Protection Control 11-9
322 * SYPCR can only be written once after reset!
323 *-----------------------------------------------------------------------
324 * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
325 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200326#define CONFIG_SYS_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_PBME | SYPCR_LBME | \
wdenke2211742002-11-02 23:30:20 +0000327 SYPCR_SWRI | SYPCR_SWP)
328
329/*-----------------------------------------------------------------------
330 * TMCNTSC - Time Counter Status and Control 4-40
331 *-----------------------------------------------------------------------
332 * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
333 * and enable Time Counter
334 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200335#define CONFIG_SYS_TMCNTSC (TMCNTSC_SEC | TMCNTSC_ALR | TMCNTSC_TCF | TMCNTSC_TCE)
wdenke2211742002-11-02 23:30:20 +0000336
337/*-----------------------------------------------------------------------
338 * PISCR - Periodic Interrupt Status and Control 4-42
339 *-----------------------------------------------------------------------
340 * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
341 * Periodic timer
342 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200343#define CONFIG_SYS_PISCR (PISCR_PS|PISCR_PTF|PISCR_PTE)
wdenke2211742002-11-02 23:30:20 +0000344
345/*-----------------------------------------------------------------------
346 * SCCR - System Clock Control 9-8
347 *-----------------------------------------------------------------------
348 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200349#define CONFIG_SYS_SCCR 0x00000000
wdenke2211742002-11-02 23:30:20 +0000350
351/*-----------------------------------------------------------------------
352 * RCCR - RISC Controller Configuration 13-7
353 *-----------------------------------------------------------------------
354 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200355#define CONFIG_SYS_RCCR 0
wdenke2211742002-11-02 23:30:20 +0000356
357/*
358 * Init Memory Controller:
359 */
360
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200361#define CONFIG_SYS_PSDMR 0x494D2452
362#define CONFIG_SYS_LSDMR 0x49492552
wdenke2211742002-11-02 23:30:20 +0000363
364/* Flash */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200365#define CONFIG_SYS_BR0_PRELIM (PHYS_FLASH | BRx_V)
366#define CONFIG_SYS_OR0_PRELIM (P2SZ_TO_AM(PHYS_FLASH_SIZE) | \
wdenke2211742002-11-02 23:30:20 +0000367 ORxG_BCTLD | \
368 ORxG_SCY_5_CLK)
369
370/* DPRAM to the PCI BUS on the protocol board */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200371#define CONFIG_SYS_BR1_PRELIM (PHYS_DPRAM_PCI | BRx_V)
372#define CONFIG_SYS_OR1_PRELIM (P2SZ_TO_AM(PHYS_DPRAM_PCI_SIZE) | \
wdenke2211742002-11-02 23:30:20 +0000373 ORxG_ACS_DIV4)
374
375/* 60x Bus SDRAM */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200376#define CONFIG_SYS_BR2_PRELIM (PHYS_SDRAM_60X | BRx_MS_SDRAM_P | BRx_V)
377#define CONFIG_SYS_OR2_PRELIM (ORxS_SIZE_TO_AM(PHYS_SDRAM_60X_SIZE) | \
wdenke2211742002-11-02 23:30:20 +0000378 ORxS_BPD_4 | \
379 ORxS_ROWST_PBI1_A2 | \
380 ORxS_NUMR_13 | \
381 ORxS_IBID)
382
383/* Virtex-FPGA - Register */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200384#define CONFIG_SYS_BR3_PRELIM (PHYS_VIRTEX_REGISTER | BRx_V)
385#define CONFIG_SYS_OR3_PRELIM (ORxS_SIZE_TO_AM(PHYS_VIRTEX_REGISTER_SIZE) | \
wdenk8bde7f72003-06-27 21:31:46 +0000386 ORxG_SCY_1_CLK | \
387 ORxG_ACS_DIV2 | \
388 ORxG_CSNT )
wdenke2211742002-11-02 23:30:20 +0000389
390/* local bus SDRAM */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200391#define CONFIG_SYS_BR4_PRELIM (PHYS_SDRAM_LOCAL | BRx_PS_32 | BRx_MS_SDRAM_L | BRx_V)
392#define CONFIG_SYS_OR4_PRELIM (ORxS_SIZE_TO_AM(PHYS_SDRAM_LOCAL_SIZE) | \
wdenke2211742002-11-02 23:30:20 +0000393 ORxS_BPD_4 | \
394 ORxS_ROWST_PBI1_A4 | \
395 ORxS_NUMR_13)
396
397/* DPRAM to the Sharc-Bus on the protocol board */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200398#define CONFIG_SYS_BR5_PRELIM (PHYS_DPRAM_SHARC | BRx_V)
399#define CONFIG_SYS_OR5_PRELIM (P2SZ_TO_AM(PHYS_DPRAM_SHARC_SIZE) | \
wdenke2211742002-11-02 23:30:20 +0000400 ORxG_ACS_DIV4)
401
wdenke2211742002-11-02 23:30:20 +0000402#endif /* __CONFIG_H */