ASoC: Add AV timer changes for MSM targets
Add snapshot of avtimer changes for MSM targets. The code
is migrated from msm-3.18 kernel.
Change-Id: I7f07c6678171dfa83d5080333d57ffaf4e1d3829
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index f049220..6c27099 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -475,3 +475,38 @@
help
Command DB queries shared memory by key string for shared system
resources
+
+config MSM_QDSP6_APRV2
+ bool "Audio QDSP6 APRv2 support"
+ depends on MSM_SMD
+ help
+ Enable APRv2 IPC protocol support between
+ application processor and QDSP6. APR is
+ used by audio driver to configure QDSP6's
+ ASM, ADM and AFE.
+
+config MSM_QDSP6_APRV3
+ bool "Audio QDSP6 APRv3 support"
+ depends on MSM_SMD
+ help
+ Enable APRv3 IPC protocol support between
+ application processor and QDSP6. APR is
+ used by audio driver to configure QDSP6v2's
+ ASM, ADM and AFE.
+
+config MSM_ADSP_LOADER
+ tristate "ADSP loader support"
+ select SND_SOC_MSM_APRV2_INTF
+ depends on MSM_QDSP6_APRV2 || MSM_QDSP6_APRV3
+ help
+ Enable ADSP image loader.
+ The ADSP loader brings ADSP out of reset
+ for the platforms that use APRv2.
+ Say M if you want to enable this module.
+
+config MSM_AVTIMER
+ tristate "Avtimer Driver"
+ depends on MSM_QDSP6_APRV2 || MSM_QDSP6_APRV3
+ help
+ This driver gets the Q6 out of power collapsed state and
+ exposes ioctl control to read avtimer tick.