aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500')
-rwxr-xr-xarch/arm/mach-ux500/board-u5500.c38
-rwxr-xr-xarch/arm/mach-ux500/include/mach/irqs.h9
2 files changed, 47 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c
index c8811b4e79e..f9cce0928d1 100755
--- a/arch/arm/mach-ux500/board-u5500.c
+++ b/arch/arm/mach-ux500/board-u5500.c
@@ -10,6 +10,7 @@
#include <linux/platform_device.h>
#include <linux/amba/bus.h>
#include <linux/gpio.h>
+#include <linux/mfd/abx500.h>
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
@@ -109,10 +110,47 @@ static struct amba_device *amba_board_devs[] __initdata = {
&ux500_uart2_device,
};
+#ifdef CONFIG_AB5500_CORE
+static struct resource ab5500_resources[] = {
+ [0] = {
+ /*TODO Change this when prcmu driver arrives */
+ .start = IRQ_AB5500_BASE + 1,
+ .end = IRQ_AB5500_BASE + 1,
+ .flags = IORESOURCE_IRQ
+ }
+};
+
+static struct ab5500_platform_data ab5500_plf_data = {
+ .irq = {
+ .base = IRQ_AB5500_BASE,
+ .count = AB5500_NR_IRQS,
+ },
+ .dev_data = {
+ },
+ .dev_data_sz = {
+ },
+ .init_settings = NULL,
+ .init_settings_sz = 0,
+};
+
+struct platform_device u5500_ab5500_device = {
+ .name = "ab5500-core",
+ .id = 0,
+ .dev = {
+ .platform_data = &ab5500_plf_data,
+ },
+ .num_resources = 1,
+ .resource = ab5500_resources,
+};
+#endif
+
static struct platform_device *u5500_platform_devices[] __initdata = {
#ifdef CONFIG_U5500_MLOADER_HELPER
&mloader_helper_device,
#endif
+#ifdef CONFIG_AB5500_CORE
+ &u5500_ab5500_device,
+#endif
};
static void __init u5500_init_machine(void)
diff --git a/arch/arm/mach-ux500/include/mach/irqs.h b/arch/arm/mach-ux500/include/mach/irqs.h
index 88e51d1c4da..208e11c80fa 100755
--- a/arch/arm/mach-ux500/include/mach/irqs.h
+++ b/arch/arm/mach-ux500/include/mach/irqs.h
@@ -111,6 +111,15 @@
#define MBOX_PAIR1_VIRT_IRQ IRQ_MODEM_EVENTS_BASE + 45
#define MBOX_PAIR2_VIRT_IRQ IRQ_MODEM_EVENTS_BASE + 41
+/* This should be fixed properly when the U5500 interrupts are added */
+#ifdef CONFIG_AB5500_CORE
+#define AB5500_NR_IRQS 5
+#define IRQ_AB5500_BASE (IRQ_MODEM_EVENTS_END + 1)
+#define IRQ_AB5500_END (IRQ_AB5500_BASE + AB5500_NR_IRQS)
+#define NR_IRQS (IRQ_AB5500_END)
+#else
+
#define NR_IRQS IRQ_MODEM_EVENTS_END
+#endif
#endif /* ASM_ARCH_IRQS_H */