diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2016-06-20 14:28:41 -0700 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-07-13 13:38:15 -0700 |
commit | 051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 (patch) | |
tree | cfbcaadd1323c846fd3251fc1ac59d56503af7ff /drivers/remoteproc/qcom_mdt_loader.h | |
parent | 3b76df4b1eea5395e0fd44402720c9053d8ca305 (diff) | |
download | blackbird-op-linux-051fb70fd4ea40fbc7139186a4890b2fe5cb1e76.tar.gz blackbird-op-linux-051fb70fd4ea40fbc7139186a4890b2fe5cb1e76.zip |
remoteproc: qcom: Driver for the self-authenticating Hexagon v5
This driver supports bringing the Q6V5 out of reset, load and drive
the self-authenticating boot loader and use this to load the mdt and
subsequent bXX files.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/qcom_mdt_loader.h')
-rw-r--r-- | drivers/remoteproc/qcom_mdt_loader.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/remoteproc/qcom_mdt_loader.h b/drivers/remoteproc/qcom_mdt_loader.h new file mode 100644 index 000000000000..c5d7122755b6 --- /dev/null +++ b/drivers/remoteproc/qcom_mdt_loader.h @@ -0,0 +1,13 @@ +#ifndef __QCOM_MDT_LOADER_H__ +#define __QCOM_MDT_LOADER_H__ + +#define QCOM_MDT_TYPE_MASK (7 << 24) +#define QCOM_MDT_TYPE_HASH (2 << 24) +#define QCOM_MDT_RELOCATABLE BIT(27) + +struct resource_table * qcom_mdt_find_rsc_table(struct rproc *rproc, const struct firmware *fw, int *tablesz); +int qcom_mdt_load(struct rproc *rproc, const struct firmware *fw, const char *fw_name); + +int qcom_mdt_parse(const struct firmware *fw, phys_addr_t *fw_addr, size_t *fw_size, bool *fw_relocate); + +#endif |