firmware: qcom: scm: Use atomic SCM for cold boot
authorAndy Gross <andy.gross@linaro.org>
Fri, 3 Jun 2016 23:25:23 +0000 (18:25 -0500)
committerAndy Gross <andy.gross@linaro.org>
Fri, 24 Jun 2016 18:33:59 +0000 (13:33 -0500)
commit13e77747800ef71224a12f787ebd26b27c16ff12
treee00cc2b052bb86fdece7a24b78ef9a302a5ec6b3
parentd0f6fa7ba2d6244e0e7ec32f91903ca398e66bb9
firmware: qcom: scm: Use atomic SCM for cold boot

This patch changes the cold_set_boot_addr function to use atomic SCM
calls.  cold_set_boot_addr required adding qcom_scm_call_atomic2 to
support the two arguments going to the smc call.  Using atomic removes
the need for memory allocation and instead places all arguments in
registers.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/firmware/qcom_scm-32.c