Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162650
b: refs/heads/master
c: e47cc3d
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Sep 15, 2009
1 parent 5617c95 commit a84fe7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 34 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91b1b94f88219ea1b747264f4f6995a1202566cb
refs/heads/master: e47cc3d6acacffdc673779a44c21a4a12b20db23
33 changes: 0 additions & 33 deletions trunk/arch/m68k/include/asm/m532xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
#define MCFSIM_DMA3ICR MCFSIM_ICR9 /* DMA 3 ICR */


#define MCFSIM_IMR_MASKALL 0xFFFFFFFF /* All SIM intr sources */

#define MCFINTC0_SIMR 0xFC04801C
#define MCFINTC0_CIMR 0xFC04801D
#define MCFINTC0_ICR0 0xFC048040
Expand All @@ -69,37 +67,6 @@
#define MCFSIM_ICR_TIMER2 (0xFC048040+33)


/*
* Macro to set IMR register. It is 32 bits on the 5307.
*/
#define mcf_getimr() \
*((volatile unsigned long *) (MCF_MBAR + MCFSIM_IMR))

#define mcf_setimr(imr) \
*((volatile unsigned long *) (MCF_MBAR + MCFSIM_IMR)) = (imr);

#define mcf_getipr() \
*((volatile unsigned long *) (MCF_MBAR + MCFSIM_IPR))

#define mcf_getiprl() \
*((volatile unsigned long *) (MCF_MBAR + MCFSIM_IPRL))

#define mcf_getiprh() \
*((volatile unsigned long *) (MCF_MBAR + MCFSIM_IPRH))


#define mcf_enable_irq0(irq) \
*((volatile unsigned char *) (MCFINTC0_CIMR)) = (irq);

#define mcf_enable_irq1(irq) \
*((volatile unsigned char *) (MCFINTC1_CIMR)) = (irq);

#define mcf_disable_irq0(irq) \
*((volatile unsigned char *) (MCFINTC0_SIMR)) = (irq);

#define mcf_disable_irq1(irq) \
*((volatile unsigned char *) (MCFINTC1_SIMR)) = (irq);

/*
* Define the Cache register flags.
*/
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/m68knommu/platform/coldfire/intc-simr.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ void __init init_IRQ(void)

init_vectors();

/* Mask all interrupt sources */
__raw_writeb(0xff, MCFINTC0_SIMR);
if (MCFINTC1_SIMR)
__raw_writeb(0xff, MCFINTC1_SIMR);

for (irq = 0; (irq < NR_IRQS); irq++) {
irq_desc[irq].status = IRQ_DISABLED;
irq_desc[irq].action = NULL;
Expand Down

0 comments on commit a84fe7e

Please sign in to comment.