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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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