ARM: qcom: scm: Clarify boot interface
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 24 Oct 2014 00:35:07 +0000 (17:35 -0700)
committerKumar Gala <galak@codeaurora.org>
Fri, 23 Jan 2015 16:19:17 +0000 (10:19 -0600)
The secure world only knows about 32-bit wide physical addresses
for the boot API. Clarify the kernel interface by explicitly
stating a u32 instead of phys_addr_t which could be 32 or 64 bits
depending on LPAE or not.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm/mach-qcom/scm-boot.c
arch/arm/mach-qcom/scm-boot.h

index 45cee3e469a5f45cb45b8d6fc6ae51965d06eb3d..f2fa32834631a7766526e927df5874c3ea2eeebf 100644 (file)
 /*
  * Set the cold/warm boot address for one of the CPU cores.
  */
-int scm_set_boot_addr(phys_addr_t addr, int flags)
+int scm_set_boot_addr(u32 addr, int flags)
 {
        struct {
                unsigned int flags;
-               phys_addr_t  addr;
+               u32 addr;
        } cmd;
 
        cmd.addr = addr;
index 02b445c426ce0942d08897d06e72ab6737f1d7c3..3e210fb818bba1748190564b9faf3f80bc0f4764 100644 (file)
@@ -21,6 +21,6 @@
 #define SCM_FLAG_WARMBOOT_CPU2         0x10
 #define SCM_FLAG_WARMBOOT_CPU3         0x40
 
-int scm_set_boot_addr(phys_addr_t addr, int flags);
+int scm_set_boot_addr(u32 addr, int flags);
 
 #endif