]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/eNET.h
f3ef7d2f92af626a5aa0f8c3e4d5ee39eaff679c
[karo-tx-uboot.git] / include / configs / eNET.h
1 /*
2  * (C) Copyright 2008
3  * Graeme Russ, graeme.russ@gmail.com.
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23
24 #include <asm/ibmpc.h>
25 /*
26  * board/config.h - configuration options, board specific
27  */
28
29 #ifndef __CONFIG_H
30 #define __CONFIG_H
31
32 /*
33  * High Level Configuration Options
34  * (easy to change)
35  */
36 #define CONFIG_X86
37 #define CONFIG_SYS_SC520
38 #define CONFIG_SYS_SC520_SSI
39 #define CONFIG_SHOW_BOOT_PROGRESS
40 #define CONFIG_LAST_STAGE_INIT
41
42 /*-----------------------------------------------------------------------
43  * Watchdog Configuration
44  * NOTE: If CONFIG_HW_WATCHDOG is NOT defined, the watchdog jumper on the
45  * bottom (processor) board MUST be removed!
46  */
47 #undef CONFIG_WATCHDOG
48 #define CONFIG_HW_WATCHDOG
49
50 /*-----------------------------------------------------------------------
51  * Real Time Clock Configuration
52  */
53 #define CONFIG_RTC_MC146818
54 #define CONFIG_SYS_ISA_IO_BASE_ADDRESS          0
55
56 /*-----------------------------------------------------------------------
57  * Serial Configuration
58  */
59 #define CONFIG_SERIAL_MULTI
60 #define CONFIG_CONS_INDEX                       1
61 #define CONFIG_SYS_NS16550
62 #define CONFIG_SYS_NS16550_SERIAL
63 #define CONFIG_SYS_NS16550_REG_SIZE             1
64 #define CONFIG_SYS_NS16550_CLK                  1843200
65 #define CONFIG_BAUDRATE                         9600
66 #define CONFIG_SYS_BAUDRATE_TABLE               {300, 600, 1200, 2400, 4800, \
67                                                  9600, 19200, 38400, 115200}
68 #define CONFIG_SYS_NS16550_COM1                 UART0_BASE
69 #define CONFIG_SYS_NS16550_COM2                 UART1_BASE
70 #define CONFIG_SYS_NS16550_COM3                 (0x1000 + UART0_BASE)
71 #define CONFIG_SYS_NS16550_COM4                 (0x1000 + UART1_BASE)
72 #define CONFIG_SYS_NS16550_PORT_MAPPED
73
74 /*-----------------------------------------------------------------------
75  * Video Configuration
76  */
77 #undef CONFIG_VIDEO
78 #undef CONFIG_CFB_CONSOLE
79
80 /*-----------------------------------------------------------------------
81  * Command line configuration.
82  */
83 #include <config_cmd_default.h>
84
85 #define CONFIG_CMD_BDI
86 #define CONFIG_CMD_BOOTD
87 #define CONFIG_CMD_CONSOLE
88 #define CONFIG_CMD_DATE
89 #define CONFIG_CMD_ECHO
90 #define CONFIG_CMD_FLASH
91 #define CONFIG_CMD_FPGA
92 #define CONFIG_CMD_IMI
93 #define CONFIG_CMD_IMLS
94 #define CONFIG_CMD_IRQ
95 #define CONFIG_CMD_ITEST
96 #define CONFIG_CMD_LOADB
97 #define CONFIG_CMD_LOADS
98 #define CONFIG_CMD_MEMORY
99 #define CONFIG_CMD_MISC
100 #define CONFIG_CMD_NET
101 #undef CONFIG_CMD_NFS
102 #define CONFIG_CMD_PCI
103 #define CONFIG_CMD_PING
104 #define CONFIG_CMD_RUN
105 #define CONFIG_CMD_SAVEENV
106 #define CONFIG_CMD_SETGETDCR
107 #define CONFIG_CMD_SOURCE
108 #define CONFIG_CMD_XIMG
109
110 #define CONFIG_BOOTDELAY                        15
111 #define CONFIG_BOOTARGS                         "root=/dev/mtdblock0 console=ttyS0,9600"
112
113 #if defined(CONFIG_CMD_KGDB)
114 #define CONFIG_KGDB_BAUDRATE                    115200
115 #define CONFIG_KGDB_SER_INDEX                   2
116 #endif
117
118 /*
119  * Miscellaneous configurable options
120  */
121 #define CONFIG_SYS_LONGHELP
122 #define CONFIG_SYS_PROMPT                       "boot > "
123 #define CONFIG_SYS_CBSIZE                       256
124 #define CONFIG_SYS_PBSIZE                       (CONFIG_SYS_CBSIZE + \
125                                                  sizeof(CONFIG_SYS_PROMPT) + \
126                                                  16)
127 #define CONFIG_SYS_MAXARGS                      16
128 #define CONFIG_SYS_BARGSIZE                     CONFIG_SYS_CBSIZE
129
130 #define CONFIG_SYS_MEMTEST_START                0x00100000
131 #define CONFIG_SYS_MEMTEST_END                  0x01000000
132 #define CONFIG_SYS_LOAD_ADDR                    0x100000
133 #define CONFIG_SYS_HZ                           1000
134
135 /*-----------------------------------------------------------------------
136  * SDRAM Configuration
137  */
138 #define CONFIG_SYS_SDRAM_DRCTMCTL               0x18
139 #define CONFIG_SYS_SDRAM_REFRESH_RATE           156
140 #define CONFIG_NR_DRAM_BANKS                    4
141
142 /* CONFIG_SYS_SDRAM_DRCTMCTL Overrides the following*/
143 #undef CONFIG_SYS_SDRAM_PRECHARGE_DELAY
144 #undef CONFIG_SYS_SDRAM_RAS_CAS_DELAY
145 #undef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
146 #undef CONFIG_SYS_SDRAM_CAS_LATENCY_3T
147
148 /*-----------------------------------------------------------------------
149  * CPU Features
150  */
151 #define CONFIG_SYS_SC520_HIGH_SPEED             0
152 #define CONFIG_SYS_SC520_RESET
153 #define CONFIG_SYS_SC520_TIMER
154 #undef  CONFIG_SYS_GENERIC_TIMER
155 #define CONFIG_SYS_PCAT_INTERRUPTS
156 #define CONFIG_SYS_NUM_IRQS                     16
157
158 /*-----------------------------------------------------------------------
159  * Memory organization:
160  * 32kB Stack
161  * 16kB Cache-As-RAM @ 0x19200000
162  * 256kB Monitor
163  * (128kB + Environment Sector Size) malloc pool
164  */
165 #define CONFIG_SYS_STACK_SIZE                   (32 * 1024)
166 #define CONFIG_SYS_CAR_ADDR                     0x19200000
167 #define CONFIG_SYS_CAR_SIZE                     (16 * 1024)
168 #define CONFIG_SYS_INIT_SP_ADDR                 (CONFIG_SYS_CAR_ADDR + \
169                                                  CONFIG_SYS_CAR_SIZE)
170 #define CONFIG_SYS_MONITOR_BASE                 CONFIG_SYS_TEXT_BASE
171 #define CONFIG_SYS_MONITOR_LEN                  (256 * 1024)
172 #define CONFIG_SYS_MALLOC_LEN                   (CONFIG_ENV_SECT_SIZE + \
173                                                  128*1024)
174 /* Address of temporary Global Data */
175 #define CONFIG_SYS_INIT_GD_ADDR                 CONFIG_SYS_CAR_ADDR
176
177
178 /* allow to overwrite serial and ethaddr */
179 #define CONFIG_ENV_OVERWRITE
180
181 /*-----------------------------------------------------------------------
182  * FLASH configuration
183  * 512kB Boot Flash @ 0x38000000 (Monitor @ 38040000)
184  * 16MB StrataFlash #1 @ 0x10000000
185  * 16MB StrataFlash #2 @ 0x11000000
186  */
187 #define CONFIG_FLASH_CFI_DRIVER
188 #define CONFIG_FLASH_CFI_LEGACY
189 #define CONFIG_SYS_FLASH_CFI
190 #define CONFIG_SYS_MAX_FLASH_BANKS              3
191 #define CONFIG_SYS_FLASH_BASE                   0x38000000
192 #define CONFIG_SYS_FLASH_BASE_1                 0x10000000
193 #define CONFIG_SYS_FLASH_BASE_2                 0x11000000
194 #define CONFIG_SYS_FLASH_BANKS_LIST             {CONFIG_SYS_FLASH_BASE,   \
195                                                  CONFIG_SYS_FLASH_BASE_1, \
196                                                  CONFIG_SYS_FLASH_BASE_2}
197 #define CONFIG_SYS_FLASH_EMPTY_INFO
198 #undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
199 #define CONFIG_SYS_MAX_FLASH_SECT               128
200 #define CONFIG_SYS_FLASH_CFI_WIDTH              FLASH_CFI_8BIT
201 #define CONFIG_SYS_FLASH_LEGACY_512Kx8
202 #define CONFIG_SYS_FLASH_ERASE_TOUT             2000    /* ms */
203 #define CONFIG_SYS_FLASH_WRITE_TOUT             2000    /* ms */
204
205 /*-----------------------------------------------------------------------
206  * Environment configuration
207  * - Boot flash is 512kB with 64kB sectors
208  * - StrataFlash is 32MB with 128kB sectors
209  * - Redundant embedded environment is 25% of the Boot flash
210  * - Redundant StrataFlash environment is <1% of the StrataFlash
211  * - Environment is therefore located in StrataFlash
212  * - Primary copy is located in first sector of first flash
213  * - Redundant copy is located in second sector of first flash
214  * - Stack is only 32kB, so environment size is limited to 4kB
215  */
216 #define CONFIG_ENV_IS_IN_FLASH
217 #define CONFIG_ENV_SECT_SIZE                    0x20000
218 #define CONFIG_ENV_SIZE                         0x01000
219 #define CONFIG_ENV_ADDR                         CONFIG_SYS_FLASH_BASE_1
220 #define CONFIG_ENV_ADDR_REDUND                  (CONFIG_SYS_FLASH_BASE_1 + \
221                                                  CONFIG_ENV_SECT_SIZE)
222 #define CONFIG_ENV_SIZE_REDUND                  CONFIG_ENV_SIZE
223
224 /*-----------------------------------------------------------------------
225  * PCI configuration
226  */
227 #define CONFIG_PCI
228 #define CONFIG_PCI_PNP
229 #define CONFIG_SYS_FIRST_PCI_IRQ                10
230 #define CONFIG_SYS_SECOND_PCI_IRQ               9
231 #define CONFIG_SYS_THIRD_PCI_IRQ                11
232 #define CONFIG_SYS_FORTH_PCI_IRQ                15
233
234 /*-----------------------------------------------------------------------
235  * Network device (TRL8100B) support
236  */
237 #define CONFIG_NET_MULTI
238 #define CONFIG_RTL8139
239
240 /*-----------------------------------------------------------------------
241  * BOOTCS Control (for AM29LV040B-120JC)
242  *
243  * 000 0 00 0 000 11 0 011 }- 0x0033
244  * \ / | \| | \ / \| | \ /
245  *  |  |  | |  |   | |  |
246  *  |  |  | |  |   | |  +---- 3 Wait States (First Access)
247  *  |  |  | |  |   | +------- Reserved
248  *  |  |  | |  |   +--------- 3 Wait States (Subsequent Access)
249  *  |  |  | |  +------------- Reserved
250  *  |  |  | +---------------- Non-Paged Mode
251  *  |  |  +------------------ 8 Bit Wide
252  *  |  +--------------------- GP Bus
253  *  +------------------------ Reserved
254  */
255 #define CONFIG_SYS_SC520_BOOTCS_CTRL            0x0033
256
257 /*-----------------------------------------------------------------------
258  * ROMCS Control (for E28F128J3A-150 StrataFlash)
259  *
260  * 000 0 01 1 000 01 0 101 }- 0x0615
261  * \ / | \| | \ / \| | \ /
262  *  |  |  | |  |   | |  |
263  *  |  |  | |  |   | |  +---- 5 Wait States (First Access)
264  *  |  |  | |  |   | +------- Reserved
265  *  |  |  | |  |   +--------- 1 Wait State (Subsequent Access)
266  *  |  |  | |  +------------- Reserved
267  *  |  |  | +---------------- Paged Mode
268  *  |  |  +------------------ 16 Bit Wide
269  *  |  +--------------------- GP Bus
270  *  +------------------------ Reserved
271  */
272 #define CONFIG_SYS_SC520_ROMCS1_CTRL            0x0615
273 #define CONFIG_SYS_SC520_ROMCS2_CTRL            0x0615
274
275 /*-----------------------------------------------------------------------
276  * SC520 General Purpose Bus configuration
277  *
278  * Chip Select Offset           1 Clock Cycle
279  * Chip Select Pulse Width      8 Clock Cycles
280  * Chip Select Read Offset      2 Clock Cycles
281  * Chip Select Read Width       6 Clock Cycles
282  * Chip Select Write Offset     2 Clock Cycles
283  * Chip Select Write Width      6 Clock Cycles
284  * Chip Select Recovery Time    2 Clock Cycles
285  *
286  * Timing Diagram (from SC520 Register Set Manual - Order #22005B)
287  *
288  *   |<-------------General Purpose Bus Cycle---------------->|
289  *   |                                                        |
290  * ----------------------\__________________/------------------
291  *   |<--(GPCSOFF + 1)-->|<--(GPCSPW + 1)-->|<-(GPCSRT + 1)-> |
292  *
293  * ------------------------\_______________/-------------------
294  *   |<---(GPRDOFF + 1)--->|<-(GPRDW + 1)->|
295  *
296  * --------------------------\_______________/-----------------
297  *   |<----(GPWROFF + 1)---->|<-(GPWRW + 1)->|
298  *
299  * ________/-----------\_______________________________________
300  *   |<--->|<--------->|
301  *      ^         ^
302  * (GPALEOFF + 1) |
303  *                |
304  *         (GPALEW + 1)
305  */
306 #define CONFIG_SYS_SC520_GPCSOFF                0x00
307 #define CONFIG_SYS_SC520_GPCSPW                 0x07
308 #define CONFIG_SYS_SC520_GPRDOFF                0x01
309 #define CONFIG_SYS_SC520_GPRDW                  0x05
310 #define CONFIG_SYS_SC520_GPWROFF                0x01
311 #define CONFIG_SYS_SC520_GPWRW                  0x05
312 #define CONFIG_SYS_SC520_GPCSRT                 0x01
313
314 /*-----------------------------------------------------------------------
315  * SC520 Programmable I/O configuration
316  *
317  * Pin    Mode          Dir.    Description
318  * ----------------------------------------------------------------------
319  * PIO0   PIO           Output  Unused
320  * PIO1   GPBHE#        Output  GP Bus Byte High Enable (active low)
321  * PIO2   PIO           Output  Auxiliary power output enable
322  * PIO3   GPAEN         Output  GP Bus Address Enable
323  * PIO4   PIO           Output  Top Board Enable (active low)
324  * PIO5   PIO           Output  StrataFlash 16 bit mode (low = 8 bit mode)
325  * PIO6   PIO           Input   Data output of Power Supply ADC
326  * PIO7   PIO           Output  Clock input to Power Supply ADC
327  * PIO8   PIO           Output  Chip Select input of Power Supply ADC
328  * PIO9   PIO           Output  StrataFlash 1 Reset / Power Down (active low)
329  * PIO10  PIO           Output  StrataFlash 2 Reset / Power Down (active low)
330  * PIO11  PIO           Input   StrataFlash 1 Status
331  * PIO12  PIO           Input   StrataFlash 2 Status
332  * PIO13  GPIRQ10#      Input   Can Bus / I2C IRQ (active low)
333  * PIO14  PIO           Input   Low Input Voltage Warning (active low)
334  * PIO15  PIO           Output  Watchdog (must toggle at least every 1.6s)
335  * PIO16  PIO           Input   Power Fail
336  * PIO17  GPIRQ6        Input   Compact Flash 1 IRQ (active low)
337  * PIO18  GPIRQ5        Input   Compact Flash 2 IRQ (active low)
338  * PIO19  GPIRQ4#       Input   Dual-Port RAM IRQ (active low)
339  * PIO20  GPIRQ3        Input   UART D IRQ
340  * PIO21  GPIRQ2        Input   UART C IRQ
341  * PIO22  GPIRQ1        Input   UART B IRQ
342  * PIO23  GPIRQ0        Input   UART A IRQ
343  * PIO24  GPDBUFOE#     Output  GP Bus Data Bus Buffer Output Enable
344  * PIO25  PIO           Input   Battery OK Indication
345  * PIO26  GPMEMCS16#    Input   GP Bus Memory Chip-Select 16-bit access
346  * PIO27  GPCS0#        Output  SRAM 1 Chip Select
347  * PIO28  PIO           Input   Top Board UART CTS
348  * PIO29  PIO           Output  FPGA Program Mode (active low)
349  * PIO30  PIO           Input   FPGA Initialised (active low)
350  * PIO31  PIO           Input   FPGA Done (active low)
351  */
352 #define CONFIG_SYS_SC520_PIOPFS15_0             0x200a
353 #define CONFIG_SYS_SC520_PIOPFS31_16            0x0dfe
354 #define CONFIG_SYS_SC520_PIODIR15_0             0x87bf
355 #define CONFIG_SYS_SC520_PIODIR31_16            0x2900
356
357 /*-----------------------------------------------------------------------
358  * PIO Pin defines
359  */
360 #define CONFIG_SYS_ENET_AUX_PWR                 0x0004
361 #define CONFIG_SYS_ENET_TOP_BRD_PWR             0x0010
362 #define CONFIG_SYS_ENET_SF_WIDTH                0x0020
363 #define CONFIG_SYS_ENET_PWR_ADC_DATA            0x0040
364 #define CONFIG_SYS_ENET_PWR_ADC_CLK             0x0080
365 #define CONFIG_SYS_ENET_PWR_ADC_CS              0x0100
366 #define CONFIG_SYS_ENET_SF1_MODE                0x0200
367 #define CONFIG_SYS_ENET_SF2_MODE                0x0400
368 #define CONFIG_SYS_ENET_SF1_STATUS              0x0800
369 #define CONFIG_SYS_ENET_SF2_STATUS              0x1000
370 #define CONFIG_SYS_ENET_PWR_STATUS              0x4000
371 #define CONFIG_SYS_ENET_WATCHDOG                0x8000
372
373 #define CONFIG_SYS_ENET_PWR_FAIL                0x0001
374 #define CONFIG_SYS_ENET_BAT_OK                  0x0200
375 #define CONFIG_SYS_ENET_TOP_BRD_CTS             0x1000
376 #define CONFIG_SYS_ENET_FPGA_PROG               0x2000
377 #define CONFIG_SYS_ENET_FPGA_INIT               0x4000
378 #define CONFIG_SYS_ENET_FPGA_DONE               0x8000
379
380 /*-----------------------------------------------------------------------
381  * Chip Select Pin Function Select
382  *
383  * 1 1 1 1 1 0 0 0 }- 0xf8
384  * | | | | | | | |
385  * | | | | | | | +--- Reserved
386  * | | | | | | +----- GPCS1_SEL = ROMCS1#
387  * | | | | | +------- GPCS2_SEL = ROMCS2#
388  * | | | | +--------- GPCS3_SEL = GPCS3
389  * | | | +----------- GPCS4_SEL = GPCS4
390  * | | +------------- GPCS5_SEL = GPCS5
391  * | +--------------- GPCS6_SEL = GPCS6
392  * +----------------- GPCS7_SEL = GPCS7
393  */
394 #define CONFIG_SYS_SC520_CSPFS                  0xf8
395
396 /*-----------------------------------------------------------------------
397  * Clock Select (CLKTIMER[CLKTEST] pin)
398  *
399  * 0 111 00 1 0 }- 0x72
400  * | \ / \| | |
401  * |  |   | | +--- Pin Disabled
402  * |  |   | +----- Pin is an output
403  * |  |   +------- Reserved
404  * |  +----------- Disabled (pin stays Low)
405  * +-------------- Reserved
406  */
407 #define CONFIG_SYS_SC520_CLKSEL                 0x72
408
409 /*-----------------------------------------------------------------------
410  * Address Decode Control
411  *
412  * 0 00 0 0 0 0 0 }- 0x00
413  * | \| | | | | |
414  * |  | | | | | +--- Integrated UART 1 is enabled
415  * |  | | | | +----- Integrated UART 2 is enabled
416  * |  | | | +------- Integrated RTC is enabled
417  * |  | | +--------- Reserved
418  * |  | +----------- I/O Hole accesses are forwarded to the external GP bus
419  * |  +------------- Reserved
420  * +---------------- Write-protect violations do not generate an IRQ
421  */
422 #define CONFIG_SYS_SC520_ADDDECCTL              0x00
423
424 /*-----------------------------------------------------------------------
425  * UART Control
426  *
427  * 00000 1 1 1 }- 0x07
428  * \___/ | | |
429  *   |   | | +--- Transmit TC interrupt enable
430  *   |   | +----- Receive TC interrupt enable
431  *   |   +------- 1.8432 MHz
432  *   +----------- Reserved
433  */
434 #define CONFIG_SYS_SC520_UART1CTL               0x07
435 #define CONFIG_SYS_SC520_UART2CTL               0x07
436
437 /*-----------------------------------------------------------------------
438  * System Arbiter Control
439  *
440  * 00000 1 1 0 }- 0x06
441  * \___/ | | |
442  *   |   | | +--- Disable PCI Bus Arbiter Grant Time-Out Interrupt
443  *   |   | +----- The system arbiter operates in concurrent mode
444  *   |   +------- Park the PCI bus on the last master that acquired the bus
445  *   +----------- Reserved
446  */
447 #define CONFIG_SYS_SC520_SYSARBCTL              0x06
448
449 /*-----------------------------------------------------------------------
450  * System Arbiter Master Enable
451  *
452  * 00000000000 0 0 0 1 1 }- 0x06
453  * \_________/ | | | | |
454  *      |      | | | | +--- PCI master REQ0 enabled (Ethernet 1)
455  *      |      | | | +----- PCI master REQ1 enabled (Ethernet 2)
456  *      |      | | +------- PCI master REQ2 disabled
457  *      |      | +--------- PCI master REQ3 disabled
458  *      |      +----------- PCI master REQ4 disabled
459  *      +------------------ Reserved
460  */
461 #define CONFIG_SYS_SC520_SYSARBMENB             0x0003
462
463 /*-----------------------------------------------------------------------
464  * System Arbiter Master Enable
465  *
466  * 0 0000 0 00 0000 1 000 }- 0x06
467  * | \__/ | \| \__/ | \_/
468  * |   |  |  |   |  |  +---- Reserved
469  * |   |  |  |   |  +------- Enable CPU-to-PCI bus write posting
470  * |   |  |  |   +---------- Reserved
471  * |   |  |  +-------------- PCI bus reads to SDRAM are not automatically
472  * |   |  |                  retried
473  * |   |  +----------------- Target read FIFOs are not snooped during write
474  * |   |                     transactions
475  * |   +-------------------- Reserved
476  * +------------------------ Deassert the PCI bus reset signal
477  */
478 #define CONFIG_SYS_SC520_HBCTL                  0x08
479
480 /*-----------------------------------------------------------------------
481  * PAR for Boot Flash - 512kB @ 0x38000000, BOOTCS
482  * 100 0 1 0 1 00000000111 11100000000000 }- 0x8a01f800
483  * \ / | | | | \----+----/ \-----+------/
484  *  |  | | | |      |            +---------- Start at 0x38000000
485  *  |  | | | |      +----------------------- 512kB Region Size
486  *  |  | | | |                               ((7 + 1) * 64kB)
487  *  |  | | | +------------------------------ 64kB Page Size
488  *  |  | | +-------------------------------- Writes Enabled (So it can be
489  *  |  | |                                   reprogrammed!)
490  *  |  | +---------------------------------- Caching Disabled
491  *  |  +------------------------------------ Execution Enabled
492  *  +--------------------------------------- BOOTCS
493  */
494 #define CONFIG_SYS_SC520_BOOTCS_PAR             0x8a01f800
495
496 /*-----------------------------------------------------------------------
497  * Cache-As-RAM (Targets Boot Flash)
498  *
499  * 100 1 0 0 0 0001111 011001001000000000 }- 0x903d9200
500  * \ / | | | | \--+--/ \-------+--------/
501  *  |  | | | |    |            +------------ Start at 0x19200000
502  *  |  | | | |    +------------------------- 64k Region Size
503  *  |  | | | |                               ((15 + 1) * 4kB)
504  *  |  | | | +------------------------------ 4kB Page Size
505  *  |  | | +-------------------------------- Writes Enabled
506  *  |  | +---------------------------------- Caching Enabled
507  *  |  +------------------------------------ Execution Prevented
508  *  +--------------------------------------- BOOTCS
509  */
510 #define CONFIG_SYS_SC520_CAR_PAR                0x903d9200
511
512 /*-----------------------------------------------------------------------
513  * PAR for Low Level I/O (LEDs, Hex Switches etc) - 33 Bytes @ 0x1000, GPCS6
514  *
515  * 001 110 0 000100000 0001000000000000 }- 0x38201000
516  * \ / \ / | \---+---/ \------+-------/
517  *  |   |  |     |            +----------- Start at 0x00001000
518  *  |   |  |     +------------------------ 33 Bytes (0x20 + 1)
519  *  |   |  +------------------------------ Ignored
520  *  |   +--------------------------------- GPCS6
521  *  +------------------------------------- GP Bus I/O
522  */
523 #define CONFIG_SYS_SC520_LLIO_PAR               0x38201000
524
525 /*-----------------------------------------------------------------------
526  * PAR for Compact Flash Port #1 - 4kB @ 0x200000000, CS5
527  * PAR for Compact Flash Port #2 - 4kB @ 0x200010000, CS7
528  *
529  * 010 101 0 0000000 100000000000000000 }- 0x54020000
530  * 010 111 0 0000000 100000000000000001 }- 0x5c020001
531  * \ / \ / | \--+--/ \-------+--------/
532  *  |   |  |    |            +------------ Start at 0x200000000
533  *  |   |  |    |                                   0x200010000
534  *  |   |  |    +------------------------- 4kB Region Size
535  *  |   |  |                               ((0 + 1) * 4kB)
536  *  |   |  +------------------------------ 4k Page Size
537  *  |   +--------------------------------- GPCS5
538  *  |                                      GPCS7
539  *  +------------------------------------- GP Bus Memory
540  */
541 #define CONFIG_SYS_SC520_CF1_PAR                0x54020000
542 #define CONFIG_SYS_SC520_CF2_PAR                0x5c020001
543
544 /*-----------------------------------------------------------------------
545  * PAR for Extra 16550 UART A - 8 bytes @ 0x013f8, GPCS0
546  * PAR for Extra 16550 UART B - 8 bytes @ 0x012f8, GPCS3
547  * PAR for Extra 16550 UART C - 8 bytes @ 0x011f8, GPCS4
548  * PAR for Extra 16550 UART D - 8 bytes @ 0x010f8, GPCS5
549  *
550  * 001 000 0 000000111 0001001111111000 }- 0x200713f8
551  * 001 011 0 000000111 0001001011111000 }- 0x2c0712f8
552  * 001 011 0 000000111 0001001011111000 }- 0x300711f8
553  * 001 011 0 000000111 0001001011111000 }- 0x340710f8
554  * \ / \ / | \---+---/ \------+-------/
555  *  |   |  |     |            +----------- Start at 0x013f8
556  *  |   |  |     |                                  0x012f8
557  *  |   |  |     |                                  0x011f8
558  *  |   |  |     |                                  0x010f8
559  *  |   |  |     +------------------------ 33 Bytes (32 + 1)
560  *  |   |  +------------------------------ Ignored
561  *  |   +--------------------------------- GPCS6
562  *  +------------------------------------- GP Bus I/O
563  */
564 #define CONFIG_SYS_SC520_UARTA_PAR              0x200713f8
565 #define CONFIG_SYS_SC520_UARTB_PAR              0x2c0712f8
566 #define CONFIG_SYS_SC520_UARTC_PAR              0x300711f8
567 #define CONFIG_SYS_SC520_UARTD_PAR              0x340710f8
568
569 /*-----------------------------------------------------------------------
570  * PAR for StrataFlash #1 - 16MB @ 0x10000000, ROMCS1
571  * PAR for StrataFlash #2 - 16MB @ 0x11000000, ROMCS2
572  *
573  * 101 0 1 0 1 00011111111 01000000000000 }- 0xaa3fd000
574  * 110 0 1 0 1 00011111111 01000100000000 }- 0xca3fd100
575  * \ / | | | | \----+----/ \-----+------/
576  *  |  | | | |      |            +---------- Start at 0x10000000
577  *  |  | | | |      |                                 0x11000000
578  *  |  | | | |      +----------------------- 16MB Region Size
579  *  |  | | | |                               ((255 + 1) * 64kB)
580  *  |  | | | +------------------------------ 64kB Page Size
581  *  |  | | +-------------------------------- Writes Enabled
582  *  |  | +---------------------------------- Caching Disabled
583  *  |  +------------------------------------ Execution Enabled
584  *  +--------------------------------------- ROMCS1
585  *                                           ROMCS2
586  */
587 #define CONFIG_SYS_SC520_SF1_PAR                0xaa3fd000
588 #define CONFIG_SYS_SC520_SF2_PAR                0xca3fd100
589
590 /*-----------------------------------------------------------------------
591  * PAR for SRAM #1 - 1MB @ 0x19000000, GPCS0
592  * PAR for SRAM #2 - 1MB @ 0x19100000, GPCS3
593  *
594  * 010 000 1 00000001111 01100100000000 }- 0x4203d900
595  * 010 011 1 00000001111 01100100010000 }- 0x4e03d910
596  * \ / \ / | \----+----/ \-----+------/
597  *  |   |  |      |            +---------- Start at 0x19000000
598  *  |   |  |      |                                 0x19100000
599  *  |   |  |      +----------------------- 1MB Region Size
600  *  |   |  |                               ((15 + 1) * 64kB)
601  *  |   |  +------------------------------ 64kB Page Size
602  *  |   +--------------------------------- GPCS0
603  *  |                                      GPCS3
604  *  +------------------------------------- GP Bus Memory
605  */
606 #define CONFIG_SYS_SC520_SRAM1_PAR              0x4203d900
607 #define CONFIG_SYS_SC520_SRAM2_PAR              0x4e03d910
608
609 /*-----------------------------------------------------------------------
610  * PAR for Dual-Port RAM - 4kB @ 0x18100000, GPCS4
611  *
612  * 010 100 0 00000000 11000000100000000 }- 0x50018100
613  * \ / \ / | \---+--/ \-------+-------/
614  *  |   |  |     |            +----------- Start at 0x18100000
615  *  |   |  |     +------------------------ 4kB Region Size
616  *  |   |  |                               ((0 + 1) * 4kB)
617  *  |   |  +------------------------------ 4kB Page Size
618  *  |   +--------------------------------- GPCS4
619  *  +------------------------------------- GP Bus Memory
620  */
621 #define CONFIG_SYS_SC520_DPRAM_PAR              0x50018100
622
623 #endif  /* __CONFIG_H */