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

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [soc/] [sw/] [orpmon/] [include/] [board.h] - Blame information for rev 21

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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