summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLuca Santini <luca.santini@spesonline.com>2008-09-08 11:54:56 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-09-08 11:54:56 +0900
commit53abf911fa6753dfbd6775ae541fb2f8b9f5b825 (patch)
treeed975db695df623ade938e134e4e6ac8d46fac56 /arch
parent205a3b4328de1c8ddd99ddd5092bed1344068213 (diff)
downloadtalos-obmc-linux-53abf911fa6753dfbd6775ae541fb2f8b9f5b825.tar.gz
talos-obmc-linux-53abf911fa6753dfbd6775ae541fb2f8b9f5b825.zip
sh: Enable IRLM mode for SH7760 IRQ_MODE_IRQ.
Follows the same setting as SH7750. Signed-off-by: Luca Santini <luca.santini@spesonline.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/cpu/sh4/setup-sh7760.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c
index 254c5c55ab91..d9bdc931ac09 100644
--- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c
+++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c
@@ -11,6 +11,7 @@
#include <linux/init.h>
#include <linux/serial.h>
#include <linux/serial_sci.h>
+#include <linux/io.h>
enum {
UNUSED = 0,
@@ -178,10 +179,14 @@ static int __init sh7760_devices_setup(void)
}
__initcall(sh7760_devices_setup);
+#define INTC_ICR 0xffd00000UL
+#define INTC_ICR_IRLM (1 << 7)
+
void __init plat_irq_setup_pins(int mode)
{
switch (mode) {
case IRQ_MODE_IRQ:
+ ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR);
register_intc_controller(&intc_desc_irq);
break;
default:
OpenPOWER on IntegriCloud