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

Subversion Repositories openrisc

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

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

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

powered by: WebSVN 2.1.0

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