diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-09-20 22:51:50 +0200 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-09-21 22:15:49 +0200 |
commit | 7895d662bab8827176d44326d0a7423221287ca9 (patch) | |
tree | 91c1d51dd0ee453e96338d57ec95f0591e683cf2 /arch/mips/sgi-ip30/ip30-common.h | |
parent | bc1c969f1158485f64e360659f755d19136bb5b0 (diff) | |
download | lwn-7895d662bab8827176d44326d0a7423221287ca9.tar.gz lwn-7895d662bab8827176d44326d0a7423221287ca9.zip |
MIPS: SGI-IP30: Move irq bits to better header files
Move HEART specific parts of mach-ip30/irq.h to asm/sgi/heart.h and IP30
specific parts to sgi-ip30/ip30-common.h.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/sgi-ip30/ip30-common.h')
-rw-r--r-- | arch/mips/sgi-ip30/ip30-common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip30/ip30-common.h b/arch/mips/sgi-ip30/ip30-common.h index d2bcaee712f3..7b5db24b6279 100644 --- a/arch/mips/sgi-ip30/ip30-common.h +++ b/arch/mips/sgi-ip30/ip30-common.h @@ -3,6 +3,20 @@ #ifndef __IP30_COMMON_H #define __IP30_COMMON_H +/* + * Power Switch is wired via BaseIO BRIDGE slot #6. + * + * ACFail is wired via BaseIO BRIDGE slot #7. + */ +#define IP30_POWER_IRQ HEART_L2_INT_POWER_BTN + +#define IP30_HEART_L0_IRQ (MIPS_CPU_IRQ_BASE + 2) +#define IP30_HEART_L1_IRQ (MIPS_CPU_IRQ_BASE + 3) +#define IP30_HEART_L2_IRQ (MIPS_CPU_IRQ_BASE + 4) +#define IP30_HEART_TIMER_IRQ (MIPS_CPU_IRQ_BASE + 5) +#define IP30_HEART_ERR_IRQ (MIPS_CPU_IRQ_BASE + 6) + +extern void __init ip30_install_ipi(void); extern struct plat_smp_ops ip30_smp_ops; extern void __init ip30_per_cpu_init(void); |