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

Subversion Repositories or1k

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

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
#ifdef XESS
5
#define MC_ENABLED          0
6
#else
7
#define MC_ENABLED          1
8
#endif
9
 
10
#define IC_ENABLE           0
11 855 markom
#define IC_SIZE         8192
12 809 simons
#define DC_ENABLE           0
13 855 markom
#define DC_SIZE         8192
14 809 simons
 
15
#define MC_CSR_VAL      0x0B000300
16
#define MC_MASK_VAL     0x000000e0
17 816 markom
#define FLASH_BASE_ADDR 0x04000000
18
#define FLASH_SIZE      0x02000000
19
#define FLASH_BLOCK_SIZE 0x20000
20 809 simons
#define FLASH_TMS_VAL   0x00102102
21 816 markom
#define SDRAM_BASE_ADDR 0x00000000
22 809 simons
#define SDRAM_TMS_VAL   0x07248230
23
 
24
#ifdef XESS
25
#define IN_CLK                10000000
26
#else
27
#define IN_CLK                25000000
28
#endif
29
 
30 855 markom
#define TICKS_PER_SEC   100
31 833 simons
 
32 855 markom
#define STACK_SIZE          0x10000
33 809 simons
 
34
#ifdef XESS
35
#define UART_BAUD_RATE  19200
36
#else
37
#define UART_BAUD_RATE  9600 /* 115200 */
38
#endif
39
 
40
#define UART_BASE           0x90000000
41 855 markom
#define UART_IRQ        19
42 809 simons
#ifdef XESS
43 855 markom
#define ETH_BASE        0x92000000
44 809 simons
#else
45
#define ETH_BASE        0xD0000000
46
#endif
47 855 markom
#define ETH_IRQ         15
48
#define MC_BASE_ADDR    0x60000000
49 872 simons
#define SPI_BASE        0xa0000000
50 809 simons
 
51
#ifdef XESS
52 855 markom
 #define ETH_DATA_BASE  0x00100000 /*  Address for ETH_DATA */
53 809 simons
#else
54 855 markom
 #define ETH_DATA_BASE  0xa8000000 /*  Address for ETH_DATA */
55 809 simons
#endif
56
 
57 833 simons
#define BOARD_DEF_IP      0x0a010185
58
#define BOARD_DEF_MASK  0xff000000
59
#define BOARD_DEF_GW    0x0a010101
60 817 simons
 
61 855 markom
#define ETH_MACADDR0      0x00
62
#define ETH_MACADDR1      0x12
63
#define ETH_MACADDR2    0x34
64
#define ETH_MACADDR3      0x56
65
#define ETH_MACADDR4    0x78
66
#define ETH_MACADDR5      0x9a
67 809 simons
 
68 855 markom
#define CRT_ENABLED         1
69
#define CRT_BASE_ADDR   0xc0000000
70
#define FB_BASE_ADDR      0xa8000000
71 809 simons
 
72
/* Whether online help is available -- saves space */
73 855 markom
#define HELP_ENABLED     1
74 809 simons
 
75 829 markom
/* Whether self check is enabled */
76 855 markom
#define SELF_CHECK     1
77 829 markom
 
78 855 markom
/* Whether we have keyboard suppport */
79
#define KBD_ENABLED    1
80
 
81
/* Keyboard base address */
82
#define KBD_BASE_ADD   0x98000000
83
 
84
#define KBD_IRQ        12
85
 
86
/* Keyboard buffer size */
87
#define KBDBUF_SIZE    256
88
 
89 858 markom
/* Which console is used (CT_NONE, CT_SIM, CT_UART, CT_CRT) */
90
#define CONSOLE_TYPE   CT_UART
91
 
92 809 simons
#endif

powered by: WebSVN 2.1.0

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