OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [include/] [board.h] - Blame information for rev 464

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 marcus.erl
#ifndef _BOARD_H_
2
#define _BOARD_H_
3
 
4 140 julius
#define CFG_IN_FLASH            0
5 2 marcus.erl
 
6
//LAN controller 
7
//#define SMC91111_LAN          1
8
#define OC_LAN                  1
9
 
10
/* BOARD
11
 * 0 - bender
12
 * 1 - marvin
13 185 julius
 * 2 - ORSoC A3PE1500 board
14
 * 3 - ORSoC A3P1000 board
15 419 julius
 * 4 - ML501
16 2 marcus.erl
 */
17 246 julius
#define BOARD                   2
18 2 marcus.erl
 
19 140 julius
/* Ethernet IP and TFTP config
20
 * 0 - JB ORSoC board
21
 * 1 - AE ORSoC board
22
 * 2 - JB Southpole board
23 246 julius
 * 3 - JB ORSoC board 2
24
 * 4 - Unassigned
25 140 julius
 */
26 246 julius
#define IPCONFIG                 3
27 140 julius
 
28 2 marcus.erl
#if BOARD==0
29
// Nibbler on bender1
30
 
31
#  define FLASH_BASE_ADDR         0xf0000000
32
#  define FLASH_SIZE              0x02000000
33
#  define FLASH_BLOCK_SIZE        0x00020000
34
#  define START_ADD               0x0
35
#  define CONFIG_OR32_MC_VERSION  2
36
#  define IN_CLK                  25000000
37
#  define BOARD_DEF_NAME          "bender"
38
// Flash Organization on board
39
// FLASH_ORG_XX_Y
40
// where XX - flash bit size
41
//       Y  - number of parallel devices connected
42
#  define FLASH_ORG_16_1          1
43
#elif BOARD==1
44
//Marvin
45
#  define FLASH_BASE_ADDR         0xf0000000
46
#  define FLASH_SIZE              0x04000000
47
#  define FLASH_BLOCK_SIZE        0x00040000
48
#  define START_ADD               0x0
49
#  define CONFIG_OR32_MC_VERSION  1
50
#  define IN_CLK                  50000000
51
#  define FLASH_ORG_16_2          1
52
#  define BOARD_DEF_NAME          "marvin"
53 389 tac2
 
54 140 julius
#elif BOARD==2
55 405 julius
//ORSoC ordb1a3pe1500
56 246 julius
#  define SDRAM_SIZE              0x02000000
57
#  define SDRAM_ROW_SIZE          0x00000400
58
#  define SDRAM_BANK_SIZE         0x00800000
59 140 julius
#  define IN_CLK                  20000000
60
 
61
#  define FLASH_ORG_16_2          1
62
#  define BOARD_DEF_NAME          "ORSoC devboard"
63
#elif BOARD==3
64 419 julius
//ORSoC ordb1a3p1000
65 140 julius
 
66 246 julius
#  define SDRAM_SIZE              0x02000000
67
#  define SDRAM_ROW_SIZE          0x00000400
68
#  define SDRAM_BANK_SIZE         0x00800000
69
#  define IN_CLK                  25000000
70 140 julius
#  define BOARD_DEF_NAME          "ORSoC A3P1000 devboard"
71
 
72 419 julius
#elif BOARD==4
73
//Xilinx ML501
74
 
75
#  define SDRAM_SIZE              0x10000000
76
#  define SDRAM_ROW_SIZE          0x00000400
77
#  define SDRAM_BANK_SIZE         0x00800000
78
#  define IN_CLK                  50000000
79
#  define BOARD_DEF_NAME          "Xilinx ML501"
80
 
81 2 marcus.erl
#else
82
//Custom Board
83 246 julius
 
84 2 marcus.erl
#  define IN_CLK                  25000000
85
#  define BOARD_DEF_NAME          "custom"
86
 
87
#endif
88
 
89 140 julius
 
90
// IP tboot configs
91
#if IPCONFIG==0
92
 
93
#define BOARD_DEF_IP            0xc0a8649b // 192.168.100.155
94
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
95
#define BOARD_DEF_GW            0xc0a86401 // 192.168.100.1
96
#define BOARD_DEF_TBOOT_SRVR    0xc0a86469 //"192.168.100.105"
97
#define BOARD_DEF_IMAGE_NAME    "boot.img"
98
#define ETH_MDIOPHYADDR         0x00
99
#define ETH_MACADDR0            0x00
100
#define ETH_MACADDR1            0x12
101
#define ETH_MACADDR2            0x34
102
#define ETH_MACADDR3            0x56
103
#define ETH_MACADDR4            0x78
104
#define ETH_MACADDR5            0x9a
105
 
106
#elif IPCONFIG==1
107
 
108
#define BOARD_DEF_IP            0xc0a8649c // 192.168.100.156
109
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
110
#define BOARD_DEF_GW            0xc0a86401 // 192.168.100.1
111
#define BOARD_DEF_TBOOT_SRVR    0xc0a864e3 //"192.168.100.227"
112
#define BOARD_DEF_IMAGE_NAME    "boot.img"
113
#define ETH_MDIOPHYADDR         0x00
114 405 julius
#define ETH_MACADDR0            0x00
115
#define ETH_MACADDR1            0x12
116 140 julius
#define ETH_MACADDR2            0x34
117
#define ETH_MACADDR3            0x56
118
#define ETH_MACADDR4            0x78
119 185 julius
#define ETH_MACADDR5            0x9b
120 140 julius
 
121
#elif IPCONFIG==2
122
 
123
#define BOARD_DEF_IP            0xac1e0002 // 172.30.0.2
124 419 julius
#define BOARD_DEF_MASK          0xffff0000 // 255.255.0.0
125 140 julius
#define BOARD_DEF_GW            0xac1e0001 //"172.30.0.1"
126
#define BOARD_DEF_TBOOT_SRVR    0xac1e0001 //"172.30.0.1"
127
#define BOARD_DEF_IMAGE_NAME    "boot.img"
128
#define ETH_MDIOPHYADDR         0x00
129
#define ETH_MACADDR0            0x00
130
#define ETH_MACADDR1            0x12
131
#define ETH_MACADDR2            0x34
132
#define ETH_MACADDR3            0x56
133
#define ETH_MACADDR4            0x78
134 185 julius
#define ETH_MACADDR5            0x9c
135 140 julius
 
136 405 julius
#elif IPCONFIG==3 // JB ORSoC board 2
137 140 julius
 
138 463 julius
#define BOARD_DEF_IP            0xc0a8005a // 192.168.0.90
139 246 julius
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
140 463 julius
#define BOARD_DEF_GW            0xc0a80001 // 192.168.0.1
141
#define BOARD_DEF_TBOOT_SRVR    0xc0a8000f // 192.168.0.15
142 246 julius
#define BOARD_DEF_IMAGE_NAME    "boot.img"
143
#define ETH_MDIOPHYADDR         0x00
144 405 julius
#define ETH_MACADDR0            0x00
145
#define ETH_MACADDR1            0x12
146 246 julius
#define ETH_MACADDR2            0x34
147
#define ETH_MACADDR3            0x56
148
#define ETH_MACADDR4            0x78
149
#define ETH_MACADDR5            0x9d
150
 
151
#elif IPCONFIG==4 // Unassigned config...
152
 
153 140 julius
#define BOARD_DEF_IP            0x0a01010a // 10.1.1.10
154
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
155 185 julius
#define BOARD_DEF_GW            0x0a010101 // 10.1.1.1
156
#define BOARD_DEF_TBOOT_SRVR    0x0a010101 // 10.1.1.1
157 140 julius
#define BOARD_DEF_IMAGE_NAME    "boot.img"
158
#define ETH_MDIOPHYADDR         0x00
159 405 julius
#define ETH_MACADDR0            0x00
160
#define ETH_MACADDR1            0x01
161 140 julius
#define ETH_MACADDR2            0x34
162
#define ETH_MACADDR3            0x56
163
#define ETH_MACADDR4            0x78
164 405 julius
#define ETH_MACADDR5            0x9e
165 140 julius
 
166
#endif
167
 
168 2 marcus.erl
 
169 464 julius
 
170 2 marcus.erl
#define TICKS_PER_SEC           100
171
 
172 140 julius
#define MS_PER_SEC 1000
173
#define US_PER_SEC 1000000
174
#define US_PER_TICK (US_PER_SEC/TICKS_PER_SEC)
175
#define TICKS_PER_US (TICKS_PER_SEC*1000000)
176
 
177 2 marcus.erl
#define STACK_SIZE              0x10000
178
 
179 464 julius
/* UART core defines */
180 2 marcus.erl
#define UART_BASE               0x90000000
181
#define UART_IRQ                2
182 464 julius
#define UART_BAUD_RATE          115200
183
 
184
/* Ethernet core defines */
185 2 marcus.erl
#define ETH_BASE                0x92000000
186
#define ETH_IRQ                 4
187 464 julius
#define ETH_DATA_BASE  ((((unsigned long)&_src_addr) + 16) & ~0x3)
188 140 julius
#define SPI_BASE                0xb0000000
189 2 marcus.erl
#define CRT_BASE_ADDR           0x97000000
190
#define ATA_BASE_ADDR           0x9e000000
191
#define KBD_BASE_ADD            0x94000000
192
#define KBD_IRQ                 5
193
 
194 405 julius
#define SDC_CONTROLLER_BASE     0x9e000000
195
 
196 2 marcus.erl
#define SANCHO_BASE_ADD         0x98000000
197
 
198 140 julius
#define CRT_ENABLED             0
199 2 marcus.erl
#define FB_BASE_ADDR            0xa8000000
200
 
201
/* Whether online help is available -- saves space */
202
#define HELP_ENABLED            1
203
 
204
/* Whether self check is enabled */
205
#define SELF_CHECK              0
206
 
207
/* Whether we have keyboard suppport */
208 140 julius
#define KBD_ENABLED             0
209 2 marcus.erl
 
210
/* Keyboard buffer size */
211
#define KBDBUF_SIZE             256
212
 
213
/* Which console is used (CT_NONE, CT_SIM, CT_UART, CT_CRT) */
214
#define CONSOLE_TYPE            CT_UART
215
 
216
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.