summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2012-01-12 15:37:17 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:35 +0200
commit65a9d435f85d9870aa60eeed2336bd2a62d6318e (patch)
tree0be97e5adeac2f79a0c05ec470572016a0102f31
parent20d9c6dddf93bb2fe91db8ee9eaf2e704b37756a (diff)
mach-ux500: u5500 : modem crashdump detection driver
Detects modem crashdump ready and informs userspace Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
-rw-r--r--arch/arm/mach-ux500/board-u5500.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c
index 7149f33e817..5037a7694ca 100644
--- a/arch/arm/mach-ux500/board-u5500.c
+++ b/arch/arm/mach-ux500/board-u5500.c
@@ -555,6 +555,29 @@ static struct hash_platform_data u5500_hash1_platform_data = {
.dma_filter = stedma40_filter,
};
+/* modem crash dump detection driver data */
+static struct resource mcdd_resources[] = {
+ {
+ .name = "mcdd_intreset_addr",
+ .start = U5500_INTCON_MBOX1_INT_RESET_ADDR,
+ .end = U5500_INTCON_MBOX1_INT_RESET_ADDR,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .name = "mcdd_mbox_irq",
+ .start = MBOX_PAIR1_VIRT_IRQ,
+ .end = MBOX_PAIR1_VIRT_IRQ,
+ .flags = IORESOURCE_IRQ,
+ }
+};
+
+struct platform_device u5500_mcdd_device = {
+ .name = "u5500-mcdd-modem",
+ .id = 0,
+ .resource = mcdd_resources,
+ .num_resources = ARRAY_SIZE(mcdd_resources),
+};
+
static struct platform_device *u5500_platform_devices[] __initdata = {
&u5500_ab5500_device,
#ifdef CONFIG_FB_MCDE
@@ -567,6 +590,7 @@ static struct platform_device *u5500_platform_devices[] __initdata = {
&u5500_mmio_device,
#endif
&u5500_thsens_device,
+ &u5500_mcdd_device,
};
#define BACKUPRAM_ROM_DEBUG_ADDR 0xFFC