Merge tag 'rproc-v4.15' of git://github.com/andersson/remoteproc
[muen/linux.git] / drivers / firmware / qcom_scm.h
index fe54b7ba4db4b980e5f00aa6aeb224a0dd685321..dcd7f7917fc71a5547f87577682cbca2ec3da078 100644 (file)
 
 #define QCOM_SCM_SVC_BOOT              0x1
 #define QCOM_SCM_BOOT_ADDR             0x1
+#define QCOM_SCM_SET_DLOAD_MODE                0x10
 #define QCOM_SCM_BOOT_ADDR_MC          0x11
 #define QCOM_SCM_SET_REMOTE_STATE      0xa
 extern int __qcom_scm_set_remote_state(struct device *dev, u32 state, u32 id);
+extern int __qcom_scm_set_dload_mode(struct device *dev, bool enable);
 
 #define QCOM_SCM_FLAG_HLOS             0x01
 #define QCOM_SCM_FLAG_COLDBOOT_MC      0x02
@@ -30,6 +32,12 @@ extern int __qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus);
 #define QCOM_SCM_CMD_CORE_HOTPLUGGED   0x10
 extern void __qcom_scm_cpu_power_down(u32 flags);
 
+#define QCOM_SCM_SVC_IO                        0x5
+#define QCOM_SCM_IO_READ               0x1
+#define QCOM_SCM_IO_WRITE              0x2
+extern int __qcom_scm_io_readl(struct device *dev, phys_addr_t addr, unsigned int *val);
+extern int __qcom_scm_io_writel(struct device *dev, phys_addr_t addr, unsigned int val);
+
 #define QCOM_SCM_SVC_INFO              0x6
 #define QCOM_IS_CALL_AVAIL_CMD         0x1
 extern int __qcom_scm_is_call_available(struct device *dev, u32 svc_id,