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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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