Commit 9d360ab4 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Alchemy: Renumber interrupts so irq_cpu can work.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 820b2d85
This diff is collapsed.
...@@ -181,29 +181,34 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR; ...@@ -181,29 +181,34 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
#define NAND_PHYS_ADDR 0x20000000 #define NAND_PHYS_ADDR 0x20000000
/* /*
* External Interrupts for Pb1200 as of 8/6/2004. * External Interrupts for Pb1200 as of 8/6/2004.
* Bit positions in the CPLD registers can be calculated by taking * Bit positions in the CPLD registers can be calculated by taking
* the interrupt define and subtracting the DB1200_INT_BEGIN value. * the interrupt define and subtracting the DB1200_INT_BEGIN value.
* *example: IDE bis pos is = 64 - 64 *
ETH bit pos is = 65 - 64 * Example: IDE bis pos is = 64 - 64
* ETH bit pos is = 65 - 64
*/ */
#define DB1200_INT_BEGIN (AU1000_LAST_INTC1_INT + 1) enum external_pb1200_ints {
#define DB1200_IDE_INT (DB1200_INT_BEGIN + 0) DB1200_INT_BEGIN = AU1000_MAX_INTR + 1,
#define DB1200_ETH_INT (DB1200_INT_BEGIN + 1)
#define DB1200_PC0_INT (DB1200_INT_BEGIN + 2) DB1200_IDE_INT = DB1200_INT_BEGIN,
#define DB1200_PC0_STSCHG_INT (DB1200_INT_BEGIN + 3) DB1200_ETH_INT,
#define DB1200_PC1_INT (DB1200_INT_BEGIN + 4) DB1200_PC0_INT,
#define DB1200_PC1_STSCHG_INT (DB1200_INT_BEGIN + 5) DB1200_PC0_STSCHG_INT,
#define DB1200_DC_INT (DB1200_INT_BEGIN + 6) DB1200_PC1_INT,
#define DB1200_FLASHBUSY_INT (DB1200_INT_BEGIN + 7) DB1200_PC1_STSCHG_INT,
#define DB1200_PC0_INSERT_INT (DB1200_INT_BEGIN + 8) DB1200_DC_INT,
#define DB1200_PC0_EJECT_INT (DB1200_INT_BEGIN + 9) DB1200_FLASHBUSY_INT,
#define DB1200_PC1_INSERT_INT (DB1200_INT_BEGIN + 10) DB1200_PC0_INSERT_INT,
#define DB1200_PC1_EJECT_INT (DB1200_INT_BEGIN + 11) DB1200_PC0_EJECT_INT,
#define DB1200_SD0_INSERT_INT (DB1200_INT_BEGIN + 12) DB1200_PC1_INSERT_INT,
#define DB1200_SD0_EJECT_INT (DB1200_INT_BEGIN + 13) DB1200_PC1_EJECT_INT,
DB1200_SD0_INSERT_INT,
#define DB1200_INT_END (DB1200_INT_BEGIN + 15) DB1200_SD0_EJECT_INT,
DB1200_INT_END = DB1200_INT_BEGIN + 15,
};
/* For drivers/pcmcia/au1000_db1x00.c */ /* For drivers/pcmcia/au1000_db1x00.c */
......
...@@ -217,31 +217,35 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR; ...@@ -217,31 +217,35 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
/* /*
* External Interrupts for Pb1200 as of 8/6/2004. * External Interrupts for Pb1200 as of 8/6/2004.
* Bit positions in the CPLD registers can be calculated by taking * Bit positions in the CPLD registers can be calculated by taking
* the interrupt define and subtracting the PB1200_INT_BEGIN value. * the interrupt define and subtracting the PB1200_INT_BEGIN value.
* *example: IDE bis pos is = 64 - 64 *
ETH bit pos is = 65 - 64 * Example: IDE bis pos is = 64 - 64
* ETH bit pos is = 65 - 64
*/ */
#define PB1200_INT_BEGIN (AU1000_LAST_INTC1_INT + 1) enum external_pb1200_ints {
#define PB1200_IDE_INT (PB1200_INT_BEGIN + 0) PB1200_INT_BEGIN = AU1000_MAX_INTR + 1,
#define PB1200_ETH_INT (PB1200_INT_BEGIN + 1)
#define PB1200_PC0_INT (PB1200_INT_BEGIN + 2) PB1200_IDE_INT = PB1200_INT_BEGIN,
#define PB1200_PC0_STSCHG_INT (PB1200_INT_BEGIN + 3) PB1200_ETH_INT,
#define PB1200_PC1_INT (PB1200_INT_BEGIN + 4) PB1200_PC0_INT,
#define PB1200_PC1_STSCHG_INT (PB1200_INT_BEGIN + 5) PB1200_PC0_STSCHG_INT,
#define PB1200_DC_INT (PB1200_INT_BEGIN + 6) PB1200_PC1_INT,
#define PB1200_FLASHBUSY_INT (PB1200_INT_BEGIN + 7) PB1200_PC1_STSCHG_INT,
#define PB1200_PC0_INSERT_INT (PB1200_INT_BEGIN + 8) PB1200_DC_INT,
#define PB1200_PC0_EJECT_INT (PB1200_INT_BEGIN + 9) PB1200_FLASHBUSY_INT,
#define PB1200_PC1_INSERT_INT (PB1200_INT_BEGIN + 10) PB1200_PC0_INSERT_INT,
#define PB1200_PC1_EJECT_INT (PB1200_INT_BEGIN + 11) PB1200_PC0_EJECT_INT,
#define PB1200_SD0_INSERT_INT (PB1200_INT_BEGIN + 12) PB1200_PC1_INSERT_INT,
#define PB1200_SD0_EJECT_INT (PB1200_INT_BEGIN + 13) PB1200_PC1_EJECT_INT,
#define PB1200_SD1_INSERT_INT (PB1200_INT_BEGIN + 14) PB1200_SD0_INSERT_INT,
#define PB1200_SD1_EJECT_INT (PB1200_INT_BEGIN + 15) PB1200_SD0_EJECT_INT,
PB1200_SD1_INSERT_INT,
#define PB1200_INT_END (PB1200_INT_BEGIN + 15) PB1200_SD1_EJECT_INT,
PB1200_INT_END (PB1200_INT_BEGIN + 15)
};
/* For drivers/pcmcia/au1000_db1x00.c */ /* For drivers/pcmcia/au1000_db1x00.c */
#define BOARD_PC0_INT PB1200_PC0_INT #define BOARD_PC0_INT PB1200_PC0_INT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment