Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1723447

[PATCH v2 2/6] remoteproc: Export rproc_elf_get_boot_addr

From Sricharan R <sricharan@codeaurora.org>
Newsgroups linux.kernel
Subject [PATCH v2 2/6] remoteproc: Export rproc_elf_get_boot_addr
Date 2017-08-30 17:20 +0200
Message-ID <ukcWC-1xz-27@gated-at.bofh.it> (permalink)
References <ukcWB-1xz-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Export rproc_elf_get_boot_addr so that it can be
used by any remoteproc to get the bootaddr of the
elf type firmware images. This is used in the
subsequent patch by the q6v5 based remoteproc
while loading its elf based mdt type image.

Signed-off-by: Sricharan R <sricharan@codeaurora.org>
---
 drivers/remoteproc/remoteproc_elf_loader.c | 2 +-
 drivers/remoteproc/remoteproc_internal.h   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/remoteproc/remoteproc_elf_loader.c b/drivers/remoteproc/remoteproc_elf_loader.c
index c523983..f6d07d9 100644
--- a/drivers/remoteproc/remoteproc_elf_loader.c
+++ b/drivers/remoteproc/remoteproc_elf_loader.c
@@ -110,13 +110,13 @@
  * Note that the boot address is not a configurable property of all remote
  * processors. Some will always boot at a specific hard-coded address.
  */
-static
 u32 rproc_elf_get_boot_addr(struct rproc *rproc, const struct firmware *fw)
 {
 	struct elf32_hdr *ehdr  = (struct elf32_hdr *)fw->data;
 
 	return ehdr->e_entry;
 }
+EXPORT_SYMBOL(rproc_elf_get_boot_addr);
 
 /**
  * rproc_elf_load_segments() - load firmware segments to memory
diff --git a/drivers/remoteproc/remoteproc_internal.h b/drivers/remoteproc/remoteproc_internal.h
index 1e9e5b3..b898510 100644
--- a/drivers/remoteproc/remoteproc_internal.h
+++ b/drivers/remoteproc/remoteproc_internal.h
@@ -125,4 +125,7 @@ struct resource_table *rproc_find_loaded_rsc_table(struct rproc *rproc,
 
 extern const struct rproc_fw_ops rproc_elf_fw_ops;
 
+/* from remoteproc_elf_loader.c */
+u32 rproc_elf_get_boot_addr(struct rproc *rproc, const struct firmware *fw);
+
 #endif /* REMOTEPROC_INTERNAL_H */
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/6] Add support for Hexagon q6v5-wcss integrated core Sricharan R <sricharan@codeaurora.org> - 2017-08-30 17:20 +0200
  [PATCH v2 5/6] remoteproc: qcom: Add support for q6v5-wcss pil Sricharan R <sricharan@codeaurora.org> - 2017-08-30 17:20 +0200
  [PATCH v2 2/6] remoteproc: Export rproc_elf_get_boot_addr Sricharan R <sricharan@codeaurora.org> - 2017-08-30 17:20 +0200
  [PATCH v2 6/6] remoteproc: qcom: Add q6v5-wcss rproc ops Sricharan R <sricharan@codeaurora.org> - 2017-08-30 17:20 +0200

csiph-web