diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-10-18 05:08:05 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-05 03:55:34 -0500 |
commit | c3b9d1db23c4ebd4d8a0964ebcf5f27d4eb8fa3f (patch) | |
tree | ff62a867cecc49fd3e47a87e105c5af83956fc36 | |
parent | a7238e432539d25726883ed3ee48cd46b5a8fa56 (diff) |
ARM: plat-nomadik: convert platforms to SPARSE_IRQ
This converts the Nomadik and Ux500 platforms to use SPARSE_IRQ.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/include/mach/irqs.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/devices-common.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/devices-db8500.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/devices-db8500.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/irqs.h | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-nomadik.c | 3 |
9 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8dae1e016ac8..200acecc3607 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -885,6 +885,7 @@ config ARCH_U8500 | |||
885 | select GENERIC_CLOCKEVENTS | 885 | select GENERIC_CLOCKEVENTS |
886 | select HAVE_SMP | 886 | select HAVE_SMP |
887 | select MIGHT_HAVE_CACHE_L2X0 | 887 | select MIGHT_HAVE_CACHE_L2X0 |
888 | select SPARSE_IRQ | ||
888 | help | 889 | help |
889 | Support for ST-Ericsson's Ux500 architecture | 890 | Support for ST-Ericsson's Ux500 architecture |
890 | 891 | ||
@@ -899,6 +900,7 @@ config ARCH_NOMADIK | |||
899 | select MIGHT_HAVE_CACHE_L2X0 | 900 | select MIGHT_HAVE_CACHE_L2X0 |
900 | select PINCTRL | 901 | select PINCTRL |
901 | select PINCTRL_STN8815 | 902 | select PINCTRL_STN8815 |
903 | select SPARSE_IRQ | ||
902 | help | 904 | help |
903 | Support for the Nomadik platform by ST-Ericsson | 905 | Support for the Nomadik platform by ST-Ericsson |
904 | 906 | ||
diff --git a/arch/arm/mach-nomadik/include/mach/irqs.h b/arch/arm/mach-nomadik/include/mach/irqs.h index a118e615f865..b549d0571548 100644 --- a/arch/arm/mach-nomadik/include/mach/irqs.h +++ b/arch/arm/mach-nomadik/include/mach/irqs.h | |||
@@ -72,7 +72,7 @@ | |||
72 | #define NOMADIK_NR_GPIO 128 /* last 4 not wired to pins */ | 72 | #define NOMADIK_NR_GPIO 128 /* last 4 not wired to pins */ |
73 | #define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + NOMADIK_GPIO_OFFSET) | 73 | #define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + NOMADIK_GPIO_OFFSET) |
74 | #define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - NOMADIK_GPIO_OFFSET) | 74 | #define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - NOMADIK_GPIO_OFFSET) |
75 | #define NR_IRQS NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO) | 75 | #define NOMADIK_NR_IRQS NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO) |
76 | 76 | ||
77 | /* Following two are used by entry_macro.S, to access our dual-vic */ | 77 | /* Following two are used by entry_macro.S, to access our dual-vic */ |
78 | #define VIC_REG_IRQSR0 0 | 78 | #define VIC_REG_IRQSR0 0 |
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 0213e896fbfd..92680569bfc6 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | * Copyright (C) 2008-2009 ST-Ericsson | 2 | * Copyright (C) 2008-2009 ST-Ericsson |
4 | * | 3 | * |
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 87a8f9fbb100..8bff078c617c 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <mach/setup.h> | 26 | #include <mach/setup.h> |
27 | #include <mach/devices.h> | 27 | #include <mach/devices.h> |
28 | #include <mach/db8500-regs.h> | 28 | #include <mach/db8500-regs.h> |
29 | #include <mach/irqs.h> | ||
29 | 30 | ||
30 | #include "devices-db8500.h" | 31 | #include "devices-db8500.h" |
31 | #include "ste-dma40-db8500.h" | 32 | #include "ste-dma40-db8500.h" |
diff --git a/arch/arm/mach-ux500/devices-common.c b/arch/arm/mach-ux500/devices-common.c index 692a77a1c153..16b5f71e6974 100644 --- a/arch/arm/mach-ux500/devices-common.c +++ b/arch/arm/mach-ux500/devices-common.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/platform_data/pinctrl-nomadik.h> | 14 | #include <linux/platform_data/pinctrl-nomadik.h> |
15 | 15 | ||
16 | #include <mach/hardware.h> | 16 | #include <mach/hardware.h> |
17 | #include <mach/irqs.h> | ||
17 | 18 | ||
18 | #include "devices-common.h" | 19 | #include "devices-common.h" |
19 | 20 | ||
diff --git a/arch/arm/mach-ux500/devices-db8500.c b/arch/arm/mach-ux500/devices-db8500.c index bdc963cb2f45..318d49020894 100644 --- a/arch/arm/mach-ux500/devices-db8500.c +++ b/arch/arm/mach-ux500/devices-db8500.c | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <mach/hardware.h> | 17 | #include <mach/hardware.h> |
18 | #include <mach/setup.h> | 18 | #include <mach/setup.h> |
19 | #include <mach/irqs.h> | ||
19 | 20 | ||
20 | #include "ste-dma40-db8500.h" | 21 | #include "ste-dma40-db8500.h" |
21 | 22 | ||
diff --git a/arch/arm/mach-ux500/devices-db8500.h b/arch/arm/mach-ux500/devices-db8500.h index 3c8010f4fb3f..4b24c9992654 100644 --- a/arch/arm/mach-ux500/devices-db8500.h +++ b/arch/arm/mach-ux500/devices-db8500.h | |||
@@ -8,6 +8,7 @@ | |||
8 | #ifndef __DEVICES_DB8500_H | 8 | #ifndef __DEVICES_DB8500_H |
9 | #define __DEVICES_DB8500_H | 9 | #define __DEVICES_DB8500_H |
10 | 10 | ||
11 | #include <mach/irqs.h> | ||
11 | #include "devices-common.h" | 12 | #include "devices-common.h" |
12 | 13 | ||
13 | struct ske_keypad_platform_data; | 14 | struct ske_keypad_platform_data; |
diff --git a/arch/arm/mach-ux500/include/mach/irqs.h b/arch/arm/mach-ux500/include/mach/irqs.h index e8928548b6a3..fc77b4274c8d 100644 --- a/arch/arm/mach-ux500/include/mach/irqs.h +++ b/arch/arm/mach-ux500/include/mach/irqs.h | |||
@@ -46,6 +46,6 @@ | |||
46 | #include <mach/irqs-board-mop500.h> | 46 | #include <mach/irqs-board-mop500.h> |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #define NR_IRQS IRQ_BOARD_END | 49 | #define UX500_NR_IRQS IRQ_BOARD_END |
50 | 50 | ||
51 | #endif /* ASM_ARCH_IRQS_H */ | 51 | #endif /* ASM_ARCH_IRQS_H */ |
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index a49052305756..3ad23fb042b4 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c | |||
@@ -45,9 +45,8 @@ static inline void prcmu_write(unsigned int reg, u32 value) {} | |||
45 | static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) {} | 45 | static inline void prcmu_write_masked(unsigned int reg, u32 mask, u32 value) {} |
46 | #endif | 46 | #endif |
47 | #include <linux/platform_data/pinctrl-nomadik.h> | 47 | #include <linux/platform_data/pinctrl-nomadik.h> |
48 | |||
49 | #include <asm/mach/irq.h> | 48 | #include <asm/mach/irq.h> |
50 | 49 | #include <mach/irqs.h> | |
51 | #include "pinctrl-nomadik.h" | 50 | #include "pinctrl-nomadik.h" |
52 | 51 | ||
53 | /* | 52 | /* |