1
2 #ifndef __ASM_SH_SE7780_H
3 #define __ASM_SH_SE7780_H
4
5
6
7
8
9
10
11
12 #include <linux/sh_intc.h>
13 #include <asm/addrspace.h>
14
15
16 #define SE_AREA0_WIDTH 4
17 #define PA_ROM 0xa0000000
18 #define PA_ROM_SIZE 0x00400000
19 #define PA_FROM 0xa1000000
20 #define PA_FROM_SIZE 0x01000000
21 #define PA_EXT1 0xa4000000
22 #define PA_EXT1_SIZE 0x04000000
23 #define PA_SM501 PA_EXT1
24 #define PA_SM501_SIZE PA_EXT1_SIZE
25 #define PA_SDRAM 0xa8000000
26 #define PA_SDRAM_SIZE 0x08000000
27
28 #define PA_EXT4 0xb0000000
29 #define PA_EXT4_SIZE 0x04000000
30 #define PA_EXT_FLASH PA_EXT4
31
32 #define PA_PERIPHERAL PA_AREA6_IO
33
34 #define PA_LAN (PA_PERIPHERAL + 0)
35 #define PA_LED_DISP (PA_PERIPHERAL + 0x02000000)
36 #define DISP_CHAR_RAM (7 << 3)
37 #define DISP_SEL0_ADDR (DISP_CHAR_RAM + 0)
38 #define DISP_SEL1_ADDR (DISP_CHAR_RAM + 1)
39 #define DISP_SEL2_ADDR (DISP_CHAR_RAM + 2)
40 #define DISP_SEL3_ADDR (DISP_CHAR_RAM + 3)
41 #define DISP_SEL4_ADDR (DISP_CHAR_RAM + 4)
42 #define DISP_SEL5_ADDR (DISP_CHAR_RAM + 5)
43 #define DISP_SEL6_ADDR (DISP_CHAR_RAM + 6)
44 #define DISP_SEL7_ADDR (DISP_CHAR_RAM + 7)
45
46 #define DISP_UDC_RAM (5 << 3)
47 #define PA_FPGA (PA_PERIPHERAL + 0x03000000)
48
49
50 #define FPGA_SFTRST (PA_FPGA + 0)
51 #define FPGA_INTMSK1 (PA_FPGA + 2)
52 #define FPGA_INTMSK2 (PA_FPGA + 4)
53 #define FPGA_INTSEL1 (PA_FPGA + 6)
54 #define FPGA_INTSEL2 (PA_FPGA + 8)
55 #define FPGA_INTSEL3 (PA_FPGA + 10)
56 #define FPGA_PCI_INTSEL1 (PA_FPGA + 12)
57 #define FPGA_PCI_INTSEL2 (PA_FPGA + 14)
58 #define FPGA_INTSET (PA_FPGA + 16)
59 #define FPGA_INTSTS1 (PA_FPGA + 18)
60 #define FPGA_INTSTS2 (PA_FPGA + 20)
61 #define FPGA_REQSEL (PA_FPGA + 22)
62 #define FPGA_DBG_LED (PA_FPGA + 32)
63 #define PA_LED FPGA_DBG_LED
64 #define FPGA_IVDRID (PA_FPGA + 36)
65 #define FPGA_IVDRPW (PA_FPGA + 38)
66 #define FPGA_MMCID (PA_FPGA + 40)
67
68
69
70 #define IRQPOS_SMC91CX (0 * 4)
71 #define IRQPOS_SM501 (1 * 4)
72
73 #define IRQPOS_EXTINT1 (0 * 4)
74 #define IRQPOS_EXTINT2 (1 * 4)
75 #define IRQPOS_EXTINT3 (2 * 4)
76 #define IRQPOS_EXTINT4 (3 * 4)
77
78 #define IRQPOS_PCCPW (0 * 4)
79
80
81 #define IRQ_IDE0 evt2irq(0xa60)
82
83
84 #define SMC_IRQ evt2irq(0x300)
85
86
87 #define SM501_IRQ evt2irq(0x200)
88
89
90 #define IRQPIN_EXTINT1 0
91 #define IRQPIN_EXTINT2 1
92 #define IRQPIN_EXTINT3 2
93 #define IRQPIN_SMC91CX 3
94 #define IRQPIN_EXTINT4 4
95 #define IRQPIN_PCC0 5
96 #define IRQPIN_PCC2 6
97 #define IRQPIN_SM501 7
98 #define IRQPIN_PCCPW 7
99
100
101 void init_se7780_IRQ(void);
102
103 #define __IO_PREFIX se7780
104 #include <asm/io_generic.h>
105
106 #endif