platform-drivers: msm: sps: Add SPS/BAM support for APQ8064
Signed-off-by: Yan He <yanhe@codeaurora.org>
Conflicts:
arch/arm/mach-msm/devices-8064.c
diff --git a/arch/arm/mach-msm/devices-8064.c b/arch/arm/mach-msm/devices-8064.c
index 7d923e7..1b9a3b7 100644
--- a/arch/arm/mach-msm/devices-8064.c
+++ b/arch/arm/mach-msm/devices-8064.c
@@ -19,6 +19,8 @@
#include <mach/irqs-8064.h>
#include <mach/board.h>
#include <mach/msm_iomap.h>
+#include <mach/usbdiag.h>
+#include <mach/msm_sps.h>
#include "clock.h"
#include "devices.h"
@@ -468,6 +470,45 @@
return platform_device_register(pdev);
}
+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,
+ },
+};
+
+static struct msm_sps_platform_data msm_sps_pdata = {
+ .bamdma_restricted_pipes = 0x06,
+};
+
+struct platform_device msm_device_sps_apq8064 = {
+ .name = "msm_sps",
+ .id = -1,
+ .num_resources = ARRAY_SIZE(resources_sps),
+ .resource = resources_sps,
+ .dev.platform_data = &msm_sps_pdata,
+};
+
static struct clk_lookup msm_clocks_8064_dummy[] = {
CLK_DUMMY("pll2", PLL2, NULL, 0),
CLK_DUMMY("pll8", PLL8, NULL, 0),