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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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