diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2008-01-15 02:55:55 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:19:03 -0500 |
| commit | 03bbc0e6ba23700aea7fec801ac7e6c5a80f78f9 (patch) | |
| tree | 8e57ecb5bdb1ba1bfdf581118967ab832e2920e8 | |
| parent | d1eea50b0c6c998b713d824024c25c5001a5a8a4 (diff) | |
sh: r7785rp: Hook up the rest of the HL7785 FPGA IRQ vectors.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | arch/sh/boards/renesas/r7780rp/irq-r7785rp.c | 45 | ||||
| -rw-r--r-- | include/asm-sh/r7780rp.h | 14 |
2 files changed, 45 insertions, 14 deletions
diff --git a/arch/sh/boards/renesas/r7780rp/irq-r7785rp.c b/arch/sh/boards/renesas/r7780rp/irq-r7785rp.c index bbf18afc29a7..af5ec74b2b1e 100644 --- a/arch/sh/boards/renesas/r7780rp/irq-r7785rp.c +++ b/arch/sh/boards/renesas/r7780rp/irq-r7785rp.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | * Renesas Solutions Highlander R7785RP Support. | 2 | * Renesas Solutions Highlander R7785RP Support. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002 Atom Create Engineering Co., Ltd. | 4 | * Copyright (C) 2002 Atom Create Engineering Co., Ltd. |
| 5 | * Copyright (C) 2006 Paul Mundt | 5 | * Copyright (C) 2006 - 2008 Paul Mundt |
| 6 | * Copyright (C) 2007 Magnus Damm | 6 | * Copyright (C) 2007 Magnus Damm |
| 7 | * | 7 | * |
| 8 | * This file is subject to the terms and conditions of the GNU General Public | 8 | * This file is subject to the terms and conditions of the GNU General Public |
| @@ -17,31 +17,52 @@ | |||
| 17 | enum { | 17 | enum { |
| 18 | UNUSED = 0, | 18 | UNUSED = 0, |
| 19 | 19 | ||
| 20 | /* board specific interrupt sources */ | 20 | /* FPGA specific interrupt sources */ |
| 21 | AX88796, /* Ethernet controller */ | 21 | CF, /* Compact Flash */ |
| 22 | CF, /* Compact Flash */ | 22 | SMBUS, /* SMBUS */ |
| 23 | TP, /* Touch panel */ | ||
| 24 | RTC, /* RTC Alarm */ | ||
| 25 | TH_ALERT, /* Temperature sensor */ | ||
| 26 | AX88796, /* Ethernet controller */ | ||
| 27 | |||
| 28 | /* external bus connector */ | ||
| 29 | EXT0, EXT1, EXT2, EXT3, EXT4, EXT5, EXT6, EXT7, | ||
| 23 | }; | 30 | }; |
| 24 | 31 | ||
| 25 | static struct intc_vect vectors[] __initdata = { | 32 | static struct intc_vect vectors[] __initdata = { |
| 26 | INTC_IRQ(CF, IRQ_CF), | 33 | INTC_IRQ(CF, IRQ_CF), |
| 34 | INTC_IRQ(SMBUS, IRQ_SMBUS), | ||
| 35 | INTC_IRQ(TP, IRQ_TP), | ||
| 36 | INTC_IRQ(RTC, IRQ_RTC), | ||
| 37 | INTC_IRQ(TH_ALERT, IRQ_TH_ALERT), | ||
| 38 | |||
| 39 | INTC_IRQ(EXT0, IRQ_EXT0), INTC_IRQ(EXT1, IRQ_EXT1), | ||
| 40 | INTC_IRQ(EXT2, IRQ_EXT2), INTC_IRQ(EXT3, IRQ_EXT3), | ||
| 41 | |||
| 42 | INTC_IRQ(EXT4, IRQ_EXT4), INTC_IRQ(EXT5, IRQ_EXT5), | ||
| 43 | INTC_IRQ(EXT6, IRQ_EXT6), INTC_IRQ(EXT7, IRQ_EXT7), | ||
| 44 | |||
| 27 | INTC_IRQ(AX88796, IRQ_AX88796), | 45 | INTC_IRQ(AX88796, IRQ_AX88796), |
| 28 | }; | 46 | }; |
| 29 | 47 | ||
| 30 | static struct intc_mask_reg mask_registers[] __initdata = { | 48 | static struct intc_mask_reg mask_registers[] __initdata = { |
| 31 | { 0xa4000010, 0, 16, /* IRLMCR1 */ | 49 | { 0xa4000010, 0, 16, /* IRLMCR1 */ |
| 32 | { 0, 0, 0, 0, CF, AX88796, 0, 0, | 50 | { 0, 0, 0, 0, CF, AX88796, SMBUS, TP, |
| 33 | 0, 0, 0, 0, 0, 0, 0, 0 } }, | 51 | RTC, 0, TH_ALERT, 0, 0, 0, 0, 0 } }, |
| 52 | { 0xa4000012, 0, 16, /* IRLMCR2 */ | ||
| 53 | { 0, 0, 0, 0, 0, 0, 0, 0, | ||
| 54 | EXT7, EXT6, EXT5, EXT4, EXT3, EXT2, EXT1, EXT0 } }, | ||
| 34 | }; | 55 | }; |
| 35 | 56 | ||
| 36 | static unsigned char irl2irq[HL_NR_IRL] __initdata = { | 57 | static unsigned char irl2irq[HL_NR_IRL] __initdata = { |
| 37 | 0, IRQ_CF, 0, 0, | 58 | 0, IRQ_CF, IRQ_EXT4, IRQ_EXT5, |
| 38 | 0, 0, 0, 0, | 59 | IRQ_EXT6, IRQ_EXT7, IRQ_SMBUS, IRQ_TP, |
| 39 | 0, 0, IRQ_AX88796, 0, | 60 | IRQ_RTC, IRQ_TH_ALERT, IRQ_AX88796, IRQ_EXT0, |
| 40 | 0, 0, 0, | 61 | IRQ_EXT1, IRQ_EXT2, IRQ_EXT3, |
| 41 | }; | 62 | }; |
| 42 | 63 | ||
| 43 | static DECLARE_INTC_DESC(intc_desc, "r7785rp", vectors, | 64 | static DECLARE_INTC_DESC(intc_desc, "r7785rp", vectors, |
| 44 | NULL, mask_registers, NULL, NULL); | 65 | NULL, NULL, mask_registers, NULL, NULL); |
| 45 | 66 | ||
| 46 | unsigned char * __init highlander_init_irq_r7785rp(void) | 67 | unsigned char * __init highlander_init_irq_r7785rp(void) |
| 47 | { | 68 | { |
| @@ -58,7 +79,7 @@ unsigned char * __init highlander_init_irq_r7785rp(void) | |||
| 58 | ctrl_outw(0x7060, PA_IRLPRC); /* FPGA IRLC */ | 79 | ctrl_outw(0x7060, PA_IRLPRC); /* FPGA IRLC */ |
| 59 | ctrl_outw(0x0000, PA_IRLPRD); /* FPGA IRLD */ | 80 | ctrl_outw(0x0000, PA_IRLPRD); /* FPGA IRLD */ |
| 60 | ctrl_outw(0x4321, PA_IRLPRE); /* FPGA IRLE */ | 81 | ctrl_outw(0x4321, PA_IRLPRE); /* FPGA IRLE */ |
| 61 | ctrl_outw(0x0000, PA_IRLPRF); /* FPGA IRLF */ | 82 | ctrl_outw(0xdcba, PA_IRLPRF); /* FPGA IRLF */ |
| 62 | 83 | ||
| 63 | register_intc_controller(&intc_desc); | 84 | register_intc_controller(&intc_desc); |
| 64 | return irl2irq; | 85 | return irl2irq; |
diff --git a/include/asm-sh/r7780rp.h b/include/asm-sh/r7780rp.h index de37f933aa42..1c2d4d18fab2 100644 --- a/include/asm-sh/r7780rp.h +++ b/include/asm-sh/r7780rp.h | |||
| @@ -195,8 +195,18 @@ | |||
| 195 | #ifndef IRQ_PSW | 195 | #ifndef IRQ_PSW |
| 196 | #define IRQ_PSW (HL_FPGA_IRQ_BASE + 2) | 196 | #define IRQ_PSW (HL_FPGA_IRQ_BASE + 2) |
| 197 | #endif | 197 | #endif |
| 198 | #define IRQ_EXT1 (HL_FPGA_IRQ_BASE + 3) | 198 | #define IRQ_EXT0 (HL_FPGA_IRQ_BASE + 3) |
| 199 | #define IRQ_EXT4 (HL_FPGA_IRQ_BASE + 4) | 199 | #define IRQ_EXT1 (HL_FPGA_IRQ_BASE + 4) |
| 200 | #define IRQ_EXT2 (HL_FPGA_IRQ_BASE + 5) | ||
| 201 | #define IRQ_EXT3 (HL_FPGA_IRQ_BASE + 6) | ||
| 202 | #define IRQ_EXT4 (HL_FPGA_IRQ_BASE + 7) | ||
| 203 | #define IRQ_EXT5 (HL_FPGA_IRQ_BASE + 8) | ||
| 204 | #define IRQ_EXT6 (HL_FPGA_IRQ_BASE + 9) | ||
| 205 | #define IRQ_EXT7 (HL_FPGA_IRQ_BASE + 10) | ||
| 206 | #define IRQ_SMBUS (HL_FPGA_IRQ_BASE + 11) | ||
| 207 | #define IRQ_TP (HL_FPGA_IRQ_BASE + 12) | ||
| 208 | #define IRQ_RTC (HL_FPGA_IRQ_BASE + 13) | ||
| 209 | #define IRQ_TH_ALERT (HL_FPGA_IRQ_BASE + 14) | ||
| 200 | 210 | ||
| 201 | void make_r7780rp_irq(unsigned int irq); | 211 | void make_r7780rp_irq(unsigned int irq); |
| 202 | 212 | ||
