msm: footswitch-8x60: Add support for the VCAP core on 8064
8064 has an additional multimedia core. Add support for it.
Change-Id: Ie4f5c4bacafe36a30ad7d6c77544d97e153e602b
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/footswitch-8x60.c b/arch/arm/mach-msm/footswitch-8x60.c
index 6ece538..98447fa 100644
--- a/arch/arm/mach-msm/footswitch-8x60.c
+++ b/arch/arm/mach-msm/footswitch-8x60.c
@@ -42,6 +42,7 @@
#define VED_GFS_CTL_REG REG(0x0194)
#define VFE_GFS_CTL_REG REG(0x0198)
#define VPE_GFS_CTL_REG REG(0x019C)
+#define VCAP_GFS_CTL_REG REG(0x0254)
#define CLAMP_BIT BIT(5)
#define ENABLE_BIT BIT(8)
@@ -469,6 +470,9 @@
FOOTSWITCH(FS_VPE, "fs_vpe", &standard_fs_ops,
VPE_GFS_CTL_REG, 31, true, 0,
MSM_BUS_MASTER_VPE, 0),
+ FOOTSWITCH(FS_VCAP, "fs_vcap", &standard_fs_ops,
+ VCAP_GFS_CTL_REG, 31, true, 0,
+ MSM_BUS_MASTER_VIDEO_CAP, 0),
};
static int footswitch_probe(struct platform_device *pdev)
diff --git a/arch/arm/mach-msm/footswitch.h b/arch/arm/mach-msm/footswitch.h
index 06b7c79..4882ff0 100644
--- a/arch/arm/mach-msm/footswitch.h
+++ b/arch/arm/mach-msm/footswitch.h
@@ -27,7 +27,8 @@
#define FS_VED 7
#define FS_VFE 8
#define FS_VPE 9
-#define MAX_FS 10
+#define FS_VCAP 10
+#define MAX_FS 11
#define FS_GENERIC(_drv_name, _id, _name) (&(struct platform_device){ \
.name = (_drv_name), \