From 8be272ee2037417be8433b3d7ea65437eabbdbf0 Mon Sep 17 00:00:00 2001 From: Stepan Moskovchenko Date: Thu, 7 Jun 2012 17:39:14 -0700 Subject: [PATCH] msm: board: Add EBI error reporting devices on 8960 Add the devices needed to support EBI error reporting on the MSM8960 target. Change-Id: I97d2338c15db281dba01dd2a9de0d7e737f4c089 Signed-off-by: Stepan Moskovchenko --- arch/arm/mach-msm/board-8960.c | 2 ++ arch/arm/mach-msm/devices-8960.c | 38 ++++++++++++++++++++++++++++++++ arch/arm/mach-msm/devices.h | 2 ++ 3 files changed, 42 insertions(+) diff --git a/arch/arm/mach-msm/board-8960.c b/arch/arm/mach-msm/board-8960.c index 9c096b709ab..8f49afdd287 100644 --- a/arch/arm/mach-msm/board-8960.c +++ b/arch/arm/mach-msm/board-8960.c @@ -2587,6 +2587,8 @@ static struct platform_device *common_devices[] __initdata = { &msm8960_cpu_idle_device, &msm8960_msm_gov_device, &msm8960_device_cache_erp, + &msm8960_device_ebi1_ch0_erp, + &msm8960_device_ebi1_ch1_erp, &msm8960_cache_dump_device, &msm8960_iommu_domain_device, &msm_tsens_device, diff --git a/arch/arm/mach-msm/devices-8960.c b/arch/arm/mach-msm/devices-8960.c index db55d143434..6a9f7f07dcf 100644 --- a/arch/arm/mach-msm/devices-8960.c +++ b/arch/arm/mach-msm/devices-8960.c @@ -3488,6 +3488,44 @@ struct platform_device msm_etm_device = { #endif +static struct resource msm_ebi1_ch0_erp_resources[] = { + { + .start = HSDDRX_EBI1CH0_IRQ, + .flags = IORESOURCE_IRQ, + }, + { + .start = 0x00A40000, + .end = 0x00A40000 + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, +}; + +struct platform_device msm8960_device_ebi1_ch0_erp = { + .name = "msm_ebi_erp", + .id = 0, + .num_resources = ARRAY_SIZE(msm_ebi1_ch0_erp_resources), + .resource = msm_ebi1_ch0_erp_resources, +}; + +static struct resource msm_ebi1_ch1_erp_resources[] = { + { + .start = HSDDRX_EBI1CH1_IRQ, + .flags = IORESOURCE_IRQ, + }, + { + .start = 0x00D40000, + .end = 0x00D40000 + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, +}; + +struct platform_device msm8960_device_ebi1_ch1_erp = { + .name = "msm_ebi_erp", + .id = 1, + .num_resources = ARRAY_SIZE(msm_ebi1_ch1_erp_resources), + .resource = msm_ebi1_ch1_erp_resources, +}; + static int msm8960_LPM_latency = 1000; /* >100 usec for WFI */ struct platform_device msm8960_cpu_idle_device = { diff --git a/arch/arm/mach-msm/devices.h b/arch/arm/mach-msm/devices.h index 2b2fcc72a8f..17cce7b2135 100644 --- a/arch/arm/mach-msm/devices.h +++ b/arch/arm/mach-msm/devices.h @@ -77,6 +77,8 @@ extern struct platform_device msm8960_device_ispif; extern struct platform_device msm8960_device_vfe; extern struct platform_device msm8960_device_vpe; extern struct platform_device msm8960_device_cache_erp; +extern struct platform_device msm8960_device_ebi1_ch0_erp; +extern struct platform_device msm8960_device_ebi1_ch1_erp; extern struct platform_device apq8064_device_uart_gsbi1; extern struct platform_device apq8064_device_uart_gsbi3;