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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [xilinx/] [ml501/] [sw/] [board/] [include/] [board.h] - Blame information for rev 412

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

Line No. Rev Author Line
1 67 julius
#ifndef _BOARD_H_
2
#define _BOARD_H_
3
 
4 412 julius
#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 67 julius
 
12 412 julius
//
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 67 julius
 
19 412 julius
//#define BOOTROM_SPI_FLASH
20
#define BOOTROM_GOTO_RESET
21
//#define BOOTROM_LOOP_AT_ZERO
22
//#define BOOTROM_LOOP_IN_ROM
23 67 julius
 
24 412 julius
//
25
// Defines for each core (memory map base, OR1200 interrupt line number, etc.)
26
//
27
#define SDRAM_BASE                 0x0
28 67 julius
 
29 412 julius
#define GPIO_0_BASE         0x91000000
30 67 julius
 
31 412 julius
#define UART0_BASE          0x90000000
32
#define UART0_IRQ                    2
33
#define UART0_BAUD_RATE         115200
34 67 julius
 
35
 
36 412 julius
#define SPI0_BASE           0xb0000000
37
#define SPI0_IRQ                     6
38 67 julius
 
39 412 julius
#define I2C_0_BASE          0xa0000000
40
#define I2C_0_IRQ                   10
41 67 julius
 
42 412 julius
#define I2C_1_BASE          0xa1000000
43
#define I2C_1_IRQ                   11
44 67 julius
 
45 412 julius
#define ETH0_BASE            0x92000000
46
#define ETH0_IRQ                      4
47 67 julius
 
48 412 julius
#define ETH_MACADDR0               0x00
49
#define ETH_MACADDR1               0x12
50
#define ETH_MACADDR2               0x34
51
#define ETH_MACADDR3               0x56
52
#define ETH_MACADDR4               0x78
53
#define ETH_MACADDR5               0x9a
54 67 julius
 
55 412 julius
//
56
// OR1200 tick timer period define
57
//
58
#define TICKS_PER_SEC   100
59 67 julius
 
60
#endif

powered by: WebSVN 2.1.0

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