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 655

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 67 julius
#ifndef _BOARD_H_
2
#define _BOARD_H_
3
 
4 496 julius
//#define IN_CLK              50000000 // Hz
5
#define IN_CLK                66666667 // Hz
6 67 julius
 
7 412 julius
//
8
// ROM bootloader
9
//
10
// Uncomment the appropriate bootloader define. This will effect the bootrom.S
11
// file, which is compiled and converted into Verilog for inclusion at 
12
// synthesis time. See bootloader/bootloader.S for details on each option.
13 479 julius
#ifndef PRELOAD_RAM
14 655 julius
//#define BOOTROM_SPI_FLASH
15
#define BOOTROM_GOTO_RESET
16 412 julius
//#define BOOTROM_LOOP_AT_ZERO
17
//#define BOOTROM_LOOP_IN_ROM
18 479 julius
#else
19
#define BOOTROM_GOTO_RESET
20
#endif
21 67 julius
 
22 415 julius
// Address bootloader should start from in FLASH
23 426 julius
// Last 256KB of 2MB flash - offset 0x1c0000 (2MB-256KB)
24 415 julius
#define BOOTROM_ADDR_BYTE2 0x1c
25
#define BOOTROM_ADDR_BYTE1 0x00
26
#define BOOTROM_ADDR_BYTE0 0x00
27
// Causes SPI bootloader to loop if SPI didn't give correct size of image
28
#define SPI_RETRY_IF_INSANE_SIZEWORD
29
 
30 412 julius
//
31
// Defines for each core (memory map base, OR1200 interrupt line number, etc.)
32
//
33
#define SDRAM_BASE                 0x0
34 67 julius
 
35 412 julius
#define GPIO_0_BASE         0x91000000
36 67 julius
 
37 412 julius
#define UART0_BASE          0x90000000
38
#define UART0_IRQ                    2
39
#define UART0_BAUD_RATE         115200
40 67 julius
 
41
 
42 412 julius
#define SPI0_BASE           0xb0000000
43
#define SPI0_IRQ                     6
44 67 julius
 
45 412 julius
#define I2C_0_BASE          0xa0000000
46
#define I2C_0_IRQ                   10
47 67 julius
 
48 412 julius
#define I2C_1_BASE          0xa1000000
49
#define I2C_1_IRQ                   11
50 67 julius
 
51 412 julius
#define ETH0_BASE            0x92000000
52
#define ETH0_IRQ                      4
53 67 julius
 
54 412 julius
#define ETH_MACADDR0               0x00
55
#define ETH_MACADDR1               0x12
56
#define ETH_MACADDR2               0x34
57
#define ETH_MACADDR3               0x56
58
#define ETH_MACADDR4               0x78
59
#define ETH_MACADDR5               0x9a
60 67 julius
 
61 412 julius
//
62
// OR1200 tick timer period define
63
//
64
#define TICKS_PER_SEC   100
65 67 julius
 
66 655 julius
//
67
// CFI flash controller base
68
//
69
#define CFI_CTRL_BASE 0xf0000000
70 485 julius
 
71
//
72
// UART driver configuration
73
// 
74
#define UART_NUM_CORES 1
75
#define UART_BASE_ADDRESSES_CSV UART0_BASE
76
#define UART_BAUD_RATES_CSV UART0_BAUD_RATE
77
 
78
 
79 486 julius
// 
80
// i2c_master_slave core driver configuration
81
//
82
 
83
#define I2C_MASTER_SLAVE_NUM_CORES 2
84
 
85
#define I2C_MASTER_SLAVE_BASE_ADDRESSES_CSV             \
86
        I2C_0_BASE, I2C_1_BASE
87
 
88
 
89 67 julius
#endif

powered by: WebSVN 2.1.0

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