]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
firmware: qcom: scm: Split out 32-bit specific SCM code
authorKumar Gala <galak@codeaurora.org>
Wed, 11 Mar 2015 21:28:10 +0000 (16:28 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 14 Mar 2018 02:42:09 +0000 (02:42 +0000)
Split out the 32-bit SCM implementation into its own file to prep for
supporting a 64-bit/ARM64 implementation as well.  We create a simple shim
to ensure both versions conform to the same interface.

Signed-off-by: Kumar Gala <galak@codeaurora.org>
drivers/firmware/qcom_scm-32.c

index 4bafb1abd93768b597e36ded008ba77ae3505c23..0993e056ecb7f3f4ebfca69413a4bb1e275e4c32 100644 (file)
@@ -1,4 +1,5 @@
 /* Copyright (c) 2010,2015, The Linux Foundation. All rights reserved.
+>>>>>>> firmware: qcom: scm: Split out 32-bit specific SCM code
  * Copyright (C) 2015 Linaro Ltd.
  *
  * This program is free software; you can redistribute it and/or modify
 
 #include "qcom_scm.h"
 
+#define QCOM_SCM_ENOMEM                -5
+#define QCOM_SCM_EOPNOTSUPP    -4
+#define QCOM_SCM_EINVAL_ADDR   -3
+#define QCOM_SCM_EINVAL_ARG    -2
+#define QCOM_SCM_ERROR         -1
+#define QCOM_SCM_INTERRUPTED   1
+
 #define QCOM_SCM_FLAG_COLDBOOT_CPU0    0x00
 #define QCOM_SCM_FLAG_COLDBOOT_CPU1    0x01
 #define QCOM_SCM_FLAG_COLDBOOT_CPU2    0x08