1
2
3
4
5
6
7
8
9
10
11
12
13
14 #ifndef __ASM_ARCH_OMAP_FPGA_H
15 #define __ASM_ARCH_OMAP_FPGA_H
16
17
18
19
20
21
22
23 #define H2P2_DBG_FPGA_BASE 0xE8000000
24 #define H2P2_DBG_FPGA_SIZE SZ_4K
25 #define H2P2_DBG_FPGA_START 0x04000000
26
27 #define H2P2_DBG_FPGA_ETHR_START (H2P2_DBG_FPGA_START + 0x300)
28 #define H2P2_DBG_FPGA_FPGA_REV IOMEM(H2P2_DBG_FPGA_BASE + 0x10)
29 #define H2P2_DBG_FPGA_BOARD_REV IOMEM(H2P2_DBG_FPGA_BASE + 0x12)
30 #define H2P2_DBG_FPGA_GPIO IOMEM(H2P2_DBG_FPGA_BASE + 0x14)
31 #define H2P2_DBG_FPGA_LEDS IOMEM(H2P2_DBG_FPGA_BASE + 0x16)
32 #define H2P2_DBG_FPGA_MISC_INPUTS IOMEM(H2P2_DBG_FPGA_BASE + 0x18)
33 #define H2P2_DBG_FPGA_LAN_STATUS IOMEM(H2P2_DBG_FPGA_BASE + 0x1A)
34 #define H2P2_DBG_FPGA_LAN_RESET IOMEM(H2P2_DBG_FPGA_BASE + 0x1C)
35
36
37 #define H2P2_DBG_FPGA_LED_GREEN (1 << 15)
38 #define H2P2_DBG_FPGA_LED_AMBER (1 << 14)
39 #define H2P2_DBG_FPGA_LED_RED (1 << 13)
40 #define H2P2_DBG_FPGA_LED_BLUE (1 << 12)
41
42 #define H2P2_DBG_FPGA_LOAD_METER (1 << 0)
43 #define H2P2_DBG_FPGA_LOAD_METER_SIZE 11
44 #define H2P2_DBG_FPGA_LOAD_METER_MASK ((1 << H2P2_DBG_FPGA_LOAD_METER_SIZE) - 1)
45
46 #define H2P2_DBG_FPGA_P2_LED_TIMER (1 << 0)
47 #define H2P2_DBG_FPGA_P2_LED_IDLE (1 << 1)
48
49 #endif