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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [actel/] [ordb1a3pe1500/] [sw/] [board/] [include/] [board.h] - Blame information for rev 486

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 408 julius
#ifndef _BOARD_H_
2
#define _BOARD_H_
3
 
4
//#define IN_CLK              50000000 // Hz
5
//#define IN_CLK              32000000 // Hz
6
//#define IN_CLK              30000000 // HZ
7
//#define IN_CLK              24000000 // HZ
8
#define IN_CLK                20000000 // HZ
9
//#define IN_CLK              18000000 // HZ
10
//#define IN_CLK              16000000 // HZ
11
 
12
//
13
// ROM bootloader
14
//
15
// Uncomment the appropriate bootloader define. This will effect the bootrom.S
16
// file, which is compiled and converted into Verilog for inclusion at 
17
// synthesis time. See bootloader/bootloader.S for details on each option.
18 485 julius
#ifndef PRELOAD_RAM
19 408 julius
#define BOOTROM_SPI_FLASH
20
//#define BOOTROM_GOTO_RESET
21
//#define BOOTROM_LOOP_AT_ZERO
22
//#define BOOTROM_LOOP_IN_ROM
23 485 julius
#else
24
#define BOOTROM_GOTO_RESET
25
#endif
26 408 julius
 
27
//
28
// Defines for each core (memory map base, OR1200 interrupt line number, etc.)
29
//
30
#define SDRAM_BASE                 0x0
31
//#define MT48LC32M16A2 // 64MB SDRAM part
32
#define MT48LC16M16A2 // 32MB SDRAM part
33
//#define MT48LC4M16A2 // 8MB SDRAM part
34
 
35
#define FLASHROM_BASE       0xcf000000
36
#define FLASHROM_SIZE            0x100
37
 
38
#define GPIO_0_BASE         0x91000000
39
 
40
#define UART0_BASE          0x90000000
41
#define UART0_IRQ                    2
42
#define UART0_BAUD_RATE         115200
43
 
44
#define UART1_BASE          0x93000000
45
#define UART1_IRQ                    3
46
#define UART1_BAUD_RATE         115200
47
 
48
#define UART2_BASE          0x94000000
49
#define UART2_IRQ                    5
50
#define UART2_BAUD_RATE         115200
51
 
52
#define SPI0_BASE           0xb0000000
53
#define SPI0_IRQ                     6
54
 
55
#define SPI1_BASE           0xb1000000
56
#define SPI1_IRQ                     7
57
 
58
#define SPI2_BASE           0xb2000000
59
#define SPI2_IRQ                     8
60
 
61
#define I2C_0_BASE          0xa0000000
62
#define I2C_0_IRQ                   10
63
 
64
#define I2C_1_BASE          0xa1000000
65
#define I2C_1_IRQ                   11
66
 
67
#define I2C_2_BASE          0xa2000000
68
#define I2C_2_IRQ                   12
69
 
70
#define I2C_3_BASE          0xa3000000
71
#define I2C_3_IRQ                   13
72
 
73
#define USB0_BASE            0x9c000000
74
#define USB0_HOST_IRQ                20
75
#define USB0_SLAVE_IRQ               21
76
 
77
#define USB1_BASE            0x9d000000
78
#define USB1_HOST_IRQ                22
79
#define USB1_SLAVE_IRQ               23
80
 
81
#define ETH0_BASE            0x92000000
82
#define ETH0_IRQ                      4
83
 
84
#define ETH_MACADDR0               0x00
85
#define ETH_MACADDR1               0x12
86
#define ETH_MACADDR2               0x34
87
#define ETH_MACADDR3               0x56
88
#define ETH_MACADDR4               0x78
89
#define ETH_MACADDR5               0x9a
90
 
91
 
92
//
93
// OR1200 tick timer period define
94
//
95
#define TICKS_PER_SEC   100
96
 
97 485 julius
//
98
// UART driver initialisation
99
// 
100
#define UART_NUM_CORES 3
101
 
102
#define UART_BASE_ADDRESSES_CSV                                         \
103
        UART0_BASE, UART2_BASE, UART2_BASE
104
 
105
#define UART_BAUD_RATES_CSV                                             \
106
        UART0_BAUD_RATE, UART1_BAUD_RATE, UART1_BAUD_RATE
107
 
108 486 julius
// 
109
// i2c_master_slave core driver configuration
110
//
111 485 julius
 
112 486 julius
#define I2C_MASTER_SLAVE_NUM_CORES 4
113 485 julius
 
114 486 julius
#define I2C_MASTER_SLAVE_BASE_ADDRESSES_CSV             \
115
        I2C_0_BASE, I2C_1_BASE, I2C_2_BASE,I2C_3_BASE
116 485 julius
 
117 486 julius
 
118
 
119 408 julius
#endif

powered by: WebSVN 2.1.0

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