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

Subversion Repositories openrisc

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

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

powered by: WebSVN 2.1.0

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