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

Subversion Repositories openrisc

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

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
#define CFG_IN_FLASH            1
5
#define MC_ENABLED              1
6
 
7
//LAN controller 
8
//#define SMC91111_LAN          1
9
#define OC_LAN                  1
10
 
11
/* BOARD
12
 * 0 - bender
13
 * 1 - marvin
14
 */
15
#define BOARD                   1
16
 
17
#if BOARD==0
18
// Nibbler on bender1
19
 
20
#  define IC_ENABLE             1
21
#  define IC_SIZE               4096
22
#  define DC_ENABLE             1
23
#  define DC_SIZE               2048
24
#  define FLASH_BASE_ADDR         0xf0000000
25
#  define FLASH_SIZE              0x02000000
26
#  define FLASH_BLOCK_SIZE        0x00020000
27
#  define START_ADD               0x0
28
#  define CONFIG_OR32_MC_VERSION  2
29
#  define IN_CLK                  25000000
30
#  define BOARD_DEF_NAME          "bender"
31
// Flash Organization on board
32
// FLASH_ORG_XX_Y
33
// where XX - flash bit size
34
//       Y  - number of parallel devices connected
35
#  define FLASH_ORG_16_1          1
36
#elif BOARD==1
37
//Marvin
38
 
39
#  define IC_ENABLE             0
40
#  define IC_SIZE               8192
41
#  define DC_ENABLE             0
42
#  define DC_SIZE               8192
43
#  define FLASH_BASE_ADDR         0xf0000000
44
#  define FLASH_SIZE              0x04000000
45
#  define FLASH_BLOCK_SIZE        0x00040000
46
#  define START_ADD               0x0
47
#  define CONFIG_OR32_MC_VERSION  1
48
/*#  define IN_CLK                100000000*/
49
#  define IN_CLK                  50000000
50
#  define FLASH_ORG_16_2          1
51
#  define BOARD_DEF_NAME          "marvin"
52
#else
53
 
54
//Custom Board
55
#  define IC_ENABLE             0
56
#  define IC_SIZE               8192
57
#  define DC_ENABLE             0
58
#  define DC_SIZE               8192
59
#  define FLASH_BASE_ADDR         0xf0000000
60
#  define FLASH_SIZE              0x04000000
61
#  define FLASH_BLOCK_SIZE        0x00040000
62
#  define START_ADD               0x0
63
#  define CONFIG_OR32_MC_VERSION  1
64
#  define IN_CLK                  25000000
65
#  define FLASH_ORG_16_2          1
66
#  define BOARD_DEF_NAME          "custom"
67
 
68
#endif
69
 
70
#define UART_BAUD_RATE          115200
71
 
72
#define TICKS_PER_SEC           100
73
 
74
#define STACK_SIZE              0x10000
75
 
76
#if     CONFIG_OR32_MC_VERSION==1
77
// Marvin, Bender MC
78
#  include "mc-init-1.h"
79
#elif   CONFIG_OR32_MC_VERSION==2
80
// Highland MC
81
#  include "mc-init-2.h"
82
#else
83
#  error "no memory controler chosen"
84
#endif
85
 
86
#define UART_BASE               0x90000000
87
#define UART_IRQ                2
88
#define ETH_BASE                0x92000000
89
#define ETH_IRQ                 4
90
#define MC_BASE_ADDR            0x93000000
91
#define SPI_BASE                0xb9000000
92
#define CRT_BASE_ADDR           0x97000000
93
#define ATA_BASE_ADDR           0x9e000000
94
#define KBD_BASE_ADD            0x94000000
95
#define KBD_IRQ                 5
96
 
97
#define SANCHO_BASE_ADD         0x98000000
98
#define ETH_DATA_BASE           0xa8000000 /*  Address for ETH_DATA */
99
 
100
#if 1
101
#define BOARD_DEF_IP            0x0100002a /* 1.0.0.42 */
102
#define BOARD_DEF_MASK          0xffffff00 /* 255.255.255.0 */
103
#define BOARD_DEF_GW            0x01000001 /* 1.0.0.1 */
104
#define BOARD_DEF_TBOOT_SRVR    "1.0.0.66"
105
#else
106
#define BOARD_DEF_IP            0x0aed012a /* 10.237.1.42 */
107
#define BOARD_DEF_MASK          0xffffff00 /* 255.255.255.0 */
108
#define BOARD_DEF_GW            0x0aed0101 /* 10.0.0.1 */
109
#define BOARD_DEF_TBOOT_SRVR    "10.237.1.27"
110
#endif
111
 
112
 
113
#define ETH_MACADDR0            0x00
114
#define ETH_MACADDR1            0x12
115
#define ETH_MACADDR2            0x34
116
#define ETH_MACADDR3            0x56
117
#define ETH_MACADDR4            0x78
118
#define ETH_MACADDR5            0x9a
119
 
120
#define CRT_ENABLED             1
121
#define FB_BASE_ADDR            0xa8000000
122
 
123
/* Whether online help is available -- saves space */
124
#define HELP_ENABLED            1
125
 
126
/* Whether self check is enabled */
127
#define SELF_CHECK              0
128
 
129
/* Whether we have keyboard suppport */
130
#define KBD_ENABLED             1
131
 
132
/* Keyboard buffer size */
133
#define KBDBUF_SIZE             256
134
 
135
/* Which console is used (CT_NONE, CT_SIM, CT_UART, CT_CRT) */
136
#define CONSOLE_TYPE            CT_UART
137
 
138
#endif

powered by: WebSVN 2.1.0

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