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

Subversion Repositories or1k

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

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

powered by: WebSVN 2.1.0

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