提交 53abf911 编写于 作者: L Luca Santini 提交者: Paul Mundt

sh: Enable IRLM mode for SH7760 IRQ_MODE_IRQ.

Follows the same setting as SH7750.
Signed-off-by: NLuca Santini <luca.santini@spesonline.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 205a3b43
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/serial_sci.h> #include <linux/serial_sci.h>
#include <linux/io.h>
enum { enum {
UNUSED = 0, UNUSED = 0,
...@@ -178,10 +179,14 @@ static int __init sh7760_devices_setup(void) ...@@ -178,10 +179,14 @@ static int __init sh7760_devices_setup(void)
} }
__initcall(sh7760_devices_setup); __initcall(sh7760_devices_setup);
#define INTC_ICR 0xffd00000UL
#define INTC_ICR_IRLM (1 << 7)
void __init plat_irq_setup_pins(int mode) void __init plat_irq_setup_pins(int mode)
{ {
switch (mode) { switch (mode) {
case IRQ_MODE_IRQ: case IRQ_MODE_IRQ:
ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR);
register_intc_controller(&intc_desc_irq); register_intc_controller(&intc_desc_irq);
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册