File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ config LASAT
133133 select DMA_NONCOHERENT
134134 select SYS_HAS_EARLY_PRINTK
135135 select HW_HAS_PCI
136+ select IRQ_CPU
136137 select PCI_GT64XXX_PCI0
137138 select MIPS_NILE4
138139 select R5000_CPU_SCACHE
Original file line number Diff line number Diff line change 2626#include <linux/kernel_stat.h>
2727
2828#include <asm/bootinfo.h>
29+ #include <asm/irq_cpu.h>
2930#include <asm/lasat/lasatint.h>
3031#include <asm/time.h>
3132#include <asm/gdb-stub.h>
@@ -88,15 +89,15 @@ asmlinkage void plat_irq_dispatch(void)
8889 int irq ;
8990
9091 if (cause & CAUSEF_IP7 ) { /* R4000 count / compare IRQ */
91- ll_timer_interrupt (7 );
92+ do_IRQ (7 );
9293 return ;
9394 }
9495
9596 int_status = get_int_status ();
9697
9798 /* if int_status == 0, then the interrupt has already been cleared */
9899 if (int_status ) {
99- irq = ls1bit32 (int_status );
100+ irq = LASATINT_BASE + ls1bit32 (int_status );
100101
101102 do_IRQ (irq );
102103 }
@@ -125,6 +126,7 @@ void __init arch_init_irq(void)
125126 panic ("arch_init_irq: mips_machtype incorrect" );
126127 }
127128
128- for (i = 0 ; i <= LASATINT_END ; i ++ )
129+ mips_cpu_irq_init ();
130+ for (i = LASATINT_BASE ; i <= LASATINT_END ; i ++ )
129131 set_irq_chip_and_handler (i , & lasat_irq_type , handle_level_irq );
130132}
Original file line number Diff line number Diff line change 1010#include <linux/pci.h>
1111#include <linux/types.h>
1212#include <asm/bootinfo.h>
13+ #include <asm/lasat/lasatint.h>
1314
1415extern struct pci_ops nile4_pci_ops ;
1516extern struct pci_ops gt64xxx_pci0_ops ;
@@ -54,15 +55,15 @@ static int __init lasat_pci_setup(void)
5455
5556arch_initcall (lasat_pci_setup );
5657
57- #define LASATINT_ETH1 0
58- #define LASATINT_ETH0 1
59- #define LASATINT_HDC 2
60- #define LASATINT_COMP 3
61- #define LASATINT_HDLC 4
62- #define LASATINT_PCIA 5
63- #define LASATINT_PCIB 6
64- #define LASATINT_PCIC 7
65- #define LASATINT_PCID 8
58+ #define LASATINT_ETH1 (LASATINT_BASE + 0)
59+ #define LASATINT_ETH0 (LASATINT_BASE + 1)
60+ #define LASATINT_HDC (LASATINT_BASE + 2)
61+ #define LASATINT_COMP (LASATINT_BASE + 3)
62+ #define LASATINT_HDLC (LASATINT_BASE + 4)
63+ #define LASATINT_PCIA (LASATINT_BASE + 5)
64+ #define LASATINT_PCIB (LASATINT_BASE + 6)
65+ #define LASATINT_PCIC (LASATINT_BASE + 7)
66+ #define LASATINT_PCID (LASATINT_BASE + 8)
6667
6768int __init pcibios_map_irq (const struct pci_dev * dev , u8 slot , u8 pin )
6869{
Original file line number Diff line number Diff line change 11#ifndef __ASM_LASAT_LASATINT_H
22#define __ASM_LASAT_LASATINT_H
33
4- #define LASATINT_END 16
4+ #include <linux/irq.h>
5+
6+ #define LASATINT_BASE MIPS_CPU_IRQ_BASE
7+ #define LASATINT_END (LASATINT_BASE + 16)
58
69/* lasat 100 */
710#define LASAT_INT_STATUS_REG_100 (KSEG1ADDR(0x1c880000))
You can’t perform that action at this time.
0 commit comments