[RFC,02/13] msm: scm: Add SCM warmboot flags for quad core targets.

Message ID 1407470458-22900-3-git-send-email-lina.iyer@linaro.org
State New
Headers show

Commit Message

Lina Iyer Aug. 8, 2014, 4 a.m.
Quad core targets like APQ8074, 78064, 8084 need SCM support set up
warm boot addresses in the Secure Monitor. Extend the SCM flags to
support warmboot addresses for seconday cores.

Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
---
 include/soc/qcom/scm-boot.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Kumar Gala Aug. 8, 2014, 4:19 p.m. | #1
On Aug 7, 2014, at 11:00 PM, Lina Iyer <lina.iyer@linaro.org> wrote:

> Quad core targets like APQ8074, 78064, 8084 need SCM support set up
> warm boot addresses in the Secure Monitor. Extend the SCM flags to
> support warmboot addresses for seconday cores.

Fix comment message, 78064 should probably be APQ8064 and 8084 should probably be APQ8084.

> Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
> ---
> include/soc/qcom/scm-boot.h | 3 +++
> 1 file changed, 3 insertions(+)
> 
> diff --git a/include/soc/qcom/scm-boot.h b/include/soc/qcom/scm-boot.h
> index 6aabb24..7ae2152 100644
> --- a/include/soc/qcom/scm-boot.h
> +++ b/include/soc/qcom/scm-boot.h
> @@ -18,6 +18,9 @@
> #define SCM_FLAG_COLDBOOT_CPU3		0x20
> #define SCM_FLAG_WARMBOOT_CPU0		0x04
> #define SCM_FLAG_WARMBOOT_CPU1		0x02
> +#define SCM_FLAG_WARMBOOT_CPU2		0x10
> +#define SCM_FLAG_WARMBOOT_CPU3		0x40
> +
> 
> int scm_set_boot_addr(phys_addr_t addr, int flags);
> 
> -- 
> 1.9.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Lina Iyer Aug. 8, 2014, 10:06 p.m. | #2
On Fri, Aug 08, 2014 at 11:19:07AM -0500, Kumar Gala wrote:
>
>On Aug 7, 2014, at 11:00 PM, Lina Iyer <lina.iyer@linaro.org> wrote:
>
>> Quad core targets like APQ8074, 78064, 8084 need SCM support set up
>> warm boot addresses in the Secure Monitor. Extend the SCM flags to
>> support warmboot addresses for seconday cores.
>
>Fix comment message, 78064 should probably be APQ8064 and 8084 should probably be APQ8084.
Sure.


--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/soc/qcom/scm-boot.h b/include/soc/qcom/scm-boot.h
index 6aabb24..7ae2152 100644
--- a/include/soc/qcom/scm-boot.h
+++ b/include/soc/qcom/scm-boot.h
@@ -18,6 +18,9 @@ 
 #define SCM_FLAG_COLDBOOT_CPU3		0x20
 #define SCM_FLAG_WARMBOOT_CPU0		0x04
 #define SCM_FLAG_WARMBOOT_CPU1		0x02
+#define SCM_FLAG_WARMBOOT_CPU2		0x10
+#define SCM_FLAG_WARMBOOT_CPU3		0x40
+
 
 int scm_set_boot_addr(phys_addr_t addr, int flags);