mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 23:46:46 +07:00
add5ca2c48
Update license to use SPDX-License-Identifier instead of verbose license text. Link: http://lkml.kernel.org/r/878t14csxy.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Simon Horman <horms+renesas@verge.net.au> Cc: Rich Felker <dalias@libc.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
32 lines
640 B
C
32 lines
640 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Shared support for SH-X3 interrupt controllers.
|
|
*
|
|
* Copyright (C) 2009 - 2010 Paul Mundt
|
|
*/
|
|
#include <linux/irq.h>
|
|
#include <linux/io.h>
|
|
#include <linux/init.h>
|
|
|
|
#define INTACK 0xfe4100b8
|
|
#define INTACKCLR 0xfe4100bc
|
|
#define INTC_USERIMASK 0xfe411000
|
|
|
|
#ifdef CONFIG_INTC_BALANCING
|
|
unsigned int irq_lookup(unsigned int irq)
|
|
{
|
|
return __raw_readl(INTACK) & 1 ? irq : NO_IRQ_IGNORE;
|
|
}
|
|
|
|
void irq_finish(unsigned int irq)
|
|
{
|
|
__raw_writel(irq2evt(irq), INTACKCLR);
|
|
}
|
|
#endif
|
|
|
|
static int __init shx3_irq_setup(void)
|
|
{
|
|
return register_intc_userimask(INTC_USERIMASK);
|
|
}
|
|
arch_initcall(shx3_irq_setup);
|