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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [include/] [board.h] - Blame information for rev 1775

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 809 simons
#ifndef _BOARD_H_
2
#define _BOARD_H_
3
 
4 1312 jurem
#define CFG_IN_FLASH            1
5
#define MC_ENABLED              1
6 809 simons
 
7 1495 jcastillo
//LAN controller 
8
//#define SMC91111_LAN          1
9
#define OC_LAN                  1
10
 
11 1312 jurem
/* BOARD
12
 * 0 - bender
13
 * 1 - marvin
14
 */
15
#define BOARD                   1
16 809 simons
 
17 1312 jurem
#if BOARD==0
18
// Nibbler on bender1
19 809 simons
 
20 1312 jurem
#  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 987 simons
 
39 1312 jurem
#  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 1495 jcastillo
 
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 1312 jurem
#endif
69 809 simons
 
70 1312 jurem
#define UART_BAUD_RATE          115200
71 987 simons
 
72 1312 jurem
#define TICKS_PER_SEC           100
73 833 simons
 
74 1312 jurem
#define STACK_SIZE              0x10000
75 809 simons
 
76 1312 jurem
#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 809 simons
 
86 1312 jurem
#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 809 simons
 
97 1312 jurem
#define SANCHO_BASE_ADD         0x98000000
98
#define ETH_DATA_BASE           0xa8000000 /*  Address for ETH_DATA */
99 817 simons
 
100 1312 jurem
#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 809 simons
 
112
 
113 1312 jurem
#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 809 simons
/* Whether online help is available -- saves space */
124 1312 jurem
#define HELP_ENABLED            1
125 809 simons
 
126 829 markom
/* Whether self check is enabled */
127 1312 jurem
#define SELF_CHECK              0
128 829 markom
 
129 855 markom
/* Whether we have keyboard suppport */
130 1312 jurem
#define KBD_ENABLED             1
131 855 markom
 
132
/* Keyboard buffer size */
133 1312 jurem
#define KBDBUF_SIZE             256
134 855 markom
 
135 858 markom
/* Which console is used (CT_NONE, CT_SIM, CT_UART, CT_CRT) */
136 1312 jurem
#define CONSOLE_TYPE            CT_UART
137 858 markom
 
138 809 simons
#endif

powered by: WebSVN 2.1.0

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