Commit b6bab126 authored by Magnus Damm's avatar Magnus Damm Committed by Simon Horman

ARM: shmobile: Move most of irqs.h, keep some for pinctl

Move most of irqs.h so it can be used as #include "irqs.h"
instead of the old style #include <mach/irqs.h>.

Legacy code in drivers/pinctrl needs more work to get rid
of the "mach" portion of the include path, so some part
is left in the original location.
Signed-off-by: default avatarMagnus Damm <damm+renesas@opensource.se>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
[horms+renesas@verge.net.au: Do not add trailing blank line to irqs.h]
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent ad6ffa0b
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
#include <linux/sh_clk.h> #include <linux/sh_clk.h>
#include <linux/smsc911x.h> #include <linux/smsc911x.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a73a4.h> #include <mach/r8a73a4.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "irqs.h"
/* LEDS */ /* LEDS */
static struct gpio_led ape6evm_leds[] = { static struct gpio_led ape6evm_leds[] = {
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7740.h> #include <mach/r8a7740.h>
#include <media/mt9t112.h> #include <media/mt9t112.h>
#include <media/sh_mobile_ceu.h> #include <media/sh_mobile_ceu.h>
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
#include <video/sh_mobile_hdmi.h> #include <video/sh_mobile_hdmi.h>
#include <sound/sh_fsi.h> #include <sound/sh_fsi.h>
#include <sound/simple_card.h> #include <sound/simple_card.h>
#include "irqs.h"
#include "sh-gpio.h" #include "sh-gpio.h"
/* /*
......
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
#include <linux/usb/renesas_usbhs.h> #include <linux/usb/renesas_usbhs.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7778.h> #include <mach/r8a7778.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <sound/rcar_snd.h> #include <sound/rcar_snd.h>
#include <sound/simple_card.h> #include <sound/simple_card.h>
#include "irqs.h"
#define FPGA 0x18200000 #define FPGA 0x18200000
#define IRQ0MR 0x30 #define IRQ0MR 0x30
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
#include <linux/spi/rspi.h> #include <linux/spi/rspi.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r7s72100.h> #include <mach/r7s72100.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "irqs.h"
/* Ether */ /* Ether */
static const struct sh_eth_plat_data ether_pdata __initconst = { static const struct sh_eth_plat_data ether_pdata __initconst = {
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_data/rcar-du.h> #include <linux/platform_data/rcar-du.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/rcar-gen2.h> #include <mach/rcar-gen2.h>
#include <mach/r8a7791.h> #include <mach/r8a7791.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "clock.h" #include "clock.h"
#include "irqs.h"
/* DU */ /* DU */
static struct rcar_du_encoder_data koelsch_du_encoders[] = { static struct rcar_du_encoder_data koelsch_du_encoders[] = {
......
...@@ -46,11 +46,11 @@ ...@@ -46,11 +46,11 @@
#include <linux/spi/rspi.h> #include <linux/spi/rspi.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7791.h> #include <mach/r8a7791.h>
#include <mach/rcar-gen2.h> #include <mach/rcar-gen2.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "irqs.h"
/* DU */ /* DU */
static struct rcar_du_encoder_data koelsch_du_encoders[] = { static struct rcar_du_encoder_data koelsch_du_encoders[] = {
......
...@@ -43,13 +43,13 @@ ...@@ -43,13 +43,13 @@
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <sound/sh_fsi.h> #include <sound/sh_fsi.h>
#include <sound/simple_card.h> #include <sound/simple_card.h>
#include <mach/irqs.h>
#include <mach/sh73a0.h> #include <mach/sh73a0.h>
#include <mach/common.h> #include <mach/common.h>
#include <asm/hardware/cache-l2x0.h> #include <asm/hardware/cache-l2x0.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <video/sh_mobile_lcdc.h> #include <video/sh_mobile_lcdc.h>
#include "irqs.h"
/* /*
* external GPIO * external GPIO
......
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_data/rcar-du.h> #include <linux/platform_data/rcar-du.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/rcar-gen2.h> #include <mach/rcar-gen2.h>
#include <mach/r8a7790.h> #include <mach/r8a7790.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "clock.h" #include "clock.h"
#include "irqs.h"
/* DU */ /* DU */
static struct rcar_du_encoder_data lager_du_encoders[] = { static struct rcar_du_encoder_data lager_du_encoders[] = {
......
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
#include <linux/usb/phy.h> #include <linux/usb/phy.h>
#include <linux/usb/renesas_usbhs.h> #include <linux/usb/renesas_usbhs.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7790.h> #include <mach/r8a7790.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -58,6 +57,7 @@ ...@@ -58,6 +57,7 @@
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <sound/rcar_snd.h> #include <sound/rcar_snd.h>
#include <sound/simple_card.h> #include <sound/simple_card.h>
#include "irqs.h"
/* /*
* SSI-AK4643 * SSI-AK4643
......
...@@ -57,14 +57,11 @@ ...@@ -57,14 +57,11 @@
#include <media/soc_camera_platform.h> #include <media/soc_camera_platform.h>
#include <sound/sh_fsi.h> #include <sound/sh_fsi.h>
#include <sound/simple_card.h> #include <sound/simple_card.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/sh7372.h> #include <mach/sh7372.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include "irqs.h"
#include "sh-gpio.h" #include "sh-gpio.h"
/* /*
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <mach/r8a7779.h> #include <mach/r8a7779.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "irqs.h"
static void __init marzen_init(void) static void __init marzen_init(void)
{ {
......
...@@ -44,10 +44,10 @@ ...@@ -44,10 +44,10 @@
#include <media/soc_camera.h> #include <media/soc_camera.h>
#include <mach/r8a7779.h> #include <mach/r8a7779.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/traps.h> #include <asm/traps.h>
#include "irqs.h"
/* Fixed 3.3V regulator to be used by SDHI0 */ /* Fixed 3.3V regulator to be used by SDHI0 */
static struct regulator_consumer_supply fixed3v3_power_consumers[] = { static struct regulator_consumer_supply fixed3v3_power_consumers[] = {
......
#ifndef __ASM_MACH_IRQS_H #ifndef __ASM_MACH_IRQS_H
#define __ASM_MACH_IRQS_H #define __ASM_MACH_IRQS_H
#include <linux/sh_intc.h> /* Stuck here until drivers/pinctl/sh-pfc gets rid of legacy code */
/* GIC */
#define gic_spi(nr) ((nr) + 32)
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
/* INTCS */
#define INTCS_VECT_BASE 0x3400
#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
/* External IRQ pins */ /* External IRQ pins */
#define IRQPIN_BASE 2000 #define IRQPIN_BASE 2000
#define irq_pin(nr) ((nr) + IRQPIN_BASE) #define irq_pin(nr) ((nr) + IRQPIN_BASE)
/* GPIO IRQ */
#define _GPIO_IRQ_BASE 2500
#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
#define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
#endif /* __ASM_MACH_IRQS_H */ #endif /* __ASM_MACH_IRQS_H */
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/io.h> #include <linux/io.h>
#include <mach/irqs.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "intc.h" #include "intc.h"
#include "irqs.h"
enum { enum {
UNUSED_INTCA = 0, UNUSED_INTCA = 0,
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h> #include <linux/irqchip/arm-gic.h>
#include <mach/irqs.h>
#include <mach/sh73a0.h> #include <mach/sh73a0.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "intc.h" #include "intc.h"
#include "irqs.h"
enum { enum {
UNUSED = 0, UNUSED = 0,
......
#ifndef __SHMOBILE_IRQS_H
#define __SHMOBILE_IRQS_H
#include <linux/sh_intc.h>
#include <mach/irqs.h>
/* GIC */
#define gic_spi(nr) ((nr) + 32)
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
/* INTCS */
#define INTCS_VECT_BASE 0x3400
#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
/* GPIO IRQ */
#define _GPIO_IRQ_BASE 2500
#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
#define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
#endif /* __SHMOBILE_IRQS_H */
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r7s72100.h> #include <mach/r7s72100.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "irqs.h"
static struct resource mtu2_resources[] __initdata = { static struct resource mtu2_resources[] __initdata = {
DEFINE_RES_MEM(0xfcff0000, 0x400), DEFINE_RES_MEM(0xfcff0000, 0x400),
......
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
#include <linux/sh_dma.h> #include <linux/sh_dma.h>
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a73a4.h> #include <mach/r8a73a4.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "dma-register.h" #include "dma-register.h"
#include "irqs.h"
static const struct resource pfc_resources[] = { static const struct resource pfc_resources[] = {
DEFINE_RES_MEM(0xe6050000, 0x9000), DEFINE_RES_MEM(0xe6050000, 0x9000),
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
#include <mach/r8a7740.h> #include <mach/r8a7740.h>
#include <mach/pm-rmobile.h> #include <mach/pm-rmobile.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include "dma-register.h" #include "dma-register.h"
#include "irqs.h"
static struct map_desc r8a7740_io_desc[] __initdata = { static struct map_desc r8a7740_io_desc[] __initdata = {
/* /*
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
#include <linux/usb/ehci_pdriver.h> #include <linux/usb/ehci_pdriver.h>
#include <linux/usb/ohci_pdriver.h> #include <linux/usb/ohci_pdriver.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <mach/irqs.h>
#include <mach/r8a7778.h> #include <mach/r8a7778.h>
#include <mach/common.h> #include <mach/common.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/hardware/cache-l2x0.h> #include <asm/hardware/cache-l2x0.h>
#include "irqs.h"
/* SCIF */ /* SCIF */
#define R8A7778_SCIF(index, baseaddr, irq) \ #define R8A7778_SCIF(index, baseaddr, irq) \
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include <linux/usb/ehci_pdriver.h> #include <linux/usb/ehci_pdriver.h>
#include <linux/usb/ohci_pdriver.h> #include <linux/usb/ohci_pdriver.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <mach/irqs.h>
#include <mach/r8a7779.h> #include <mach/r8a7779.h>
#include <mach/common.h> #include <mach/common.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -48,6 +47,7 @@ ...@@ -48,6 +47,7 @@
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/hardware/cache-l2x0.h> #include <asm/hardware/cache-l2x0.h>
#include "irqs.h"
static struct map_desc r8a7779_io_desc[] __initdata = { static struct map_desc r8a7779_io_desc[] __initdata = {
/* 2M entity map for 0xf0000000 (MPCORE) */ /* 2M entity map for 0xf0000000 (MPCORE) */
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
#include <linux/sh_dma.h> #include <linux/sh_dma.h>
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7790.h> #include <mach/r8a7790.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "dma-register.h" #include "dma-register.h"
#include "irqs.h"
/* Audio-DMAC */ /* Audio-DMAC */
#define AUDIO_DMAC_SLAVE(_id, _addr, t, r) \ #define AUDIO_DMAC_SLAVE(_id, _addr, t, r) \
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
#include <linux/serial_sci.h> #include <linux/serial_sci.h>
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7791.h> #include <mach/r8a7791.h>
#include <mach/rcar-gen2.h> #include <mach/rcar-gen2.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "irqs.h"
static const struct resource pfc_resources[] __initconst = { static const struct resource pfc_resources[] __initconst = {
DEFINE_RES_MEM(0xe6060000, 0x250), DEFINE_RES_MEM(0xe6060000, 0x250),
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <linux/pm_domain.h> #include <linux/pm_domain.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/platform_data/sh_ipmmu.h> #include <linux/platform_data/sh_ipmmu.h>
#include <mach/irqs.h>
#include <mach/sh7372.h> #include <mach/sh7372.h>
#include <mach/common.h> #include <mach/common.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
...@@ -41,6 +40,7 @@ ...@@ -41,6 +40,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include "dma-register.h" #include "dma-register.h"
#include "irqs.h"
static struct map_desc sh7372_io_desc[] __initdata = { static struct map_desc sh7372_io_desc[] __initdata = {
/* create a 1:1 entity map for 0xe6xxxxxx /* create a 1:1 entity map for 0xe6xxxxxx
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <linux/platform_data/sh_ipmmu.h> #include <linux/platform_data/sh_ipmmu.h>
#include <linux/platform_data/irq-renesas-intc-irqpin.h> #include <linux/platform_data/irq-renesas-intc-irqpin.h>
#include <mach/irqs.h>
#include <mach/sh73a0.h> #include <mach/sh73a0.h>
#include <mach/common.h> #include <mach/common.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -40,6 +39,7 @@ ...@@ -40,6 +39,7 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include "dma-register.h" #include "dma-register.h"
#include "irqs.h"
static struct map_desc sh73a0_io_desc[] __initdata = { static struct map_desc sh73a0_io_desc[] __initdata = {
/* create a 1:1 entity map for 0xe6xxxxxx /* create a 1:1 entity map for 0xe6xxxxxx
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment