platform-drivers: msm: sps: Add SPS/BAM support for MDM9x15
Signed-off-by: Yan He <yanhe@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-9615.c b/arch/arm/mach-msm/devices-9615.c
index 07f7f8b..0e186d4 100644
--- a/arch/arm/mach-msm/devices-9615.c
+++ b/arch/arm/mach-msm/devices-9615.c
@@ -21,6 +21,7 @@
#include <mach/irqs.h>
#include <mach/socinfo.h>
#include <asm/hardware/cache-l2x0.h>
+#include <mach/msm_sps.h>
#include "devices.h"
#include "acpuclock.h"
@@ -143,6 +144,45 @@
.num_resources = ARRAY_SIZE(resources_ssbi_pmic1),
};
+static struct resource resources_sps[] = {
+ {
+ .name = "pipe_mem",
+ .start = 0x12800000,
+ .end = 0x12800000 + 0x4000 - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .name = "bamdma_dma",
+ .start = 0x12240000,
+ .end = 0x12240000 + 0x1000 - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .name = "bamdma_bam",
+ .start = 0x12244000,
+ .end = 0x12244000 + 0x4000 - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .name = "bamdma_irq",
+ .start = SPS_BAM_DMA_IRQ,
+ .end = SPS_BAM_DMA_IRQ,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+struct msm_sps_platform_data msm_sps_pdata = {
+ .bamdma_restricted_pipes = 0x06,
+};
+
+struct platform_device msm_device_sps = {
+ .name = "msm_sps",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(resources_sps),
+ .resource = resources_sps,
+ .dev.platform_data = &msm_sps_pdata,
+};
+
#ifdef CONFIG_CACHE_L2X0
static int __init l2x0_cache_init(void)
{