summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Gutierrez <jgutierrez@ti.com>2012-07-05 17:31:33 -0500
committerAndy Green <andy.green@linaro.org>2012-08-27 22:51:27 +0800
commit15b4f0df42e77cdeae696bb65784c7252dfc3869 (patch)
tree4d635101dea76baaf3021478048baaf6ae318f1a /include
parent1b830c06ac9e27b057f86a5c2351e9dc7c7d3bda (diff)
remoteproc: add debugfs entry to print the firmware version info
A debugfs entry called "version" is created under the corresponding remoteproc directory when the firmware image is processed. The design relies on the ELF baseimage having a special ELF section with the name '.version'. The version info has to be stored into this section in the remote processor image build step. A read on the entry will print the contents of the version section. The following shows an example usage: cat /d/remoteproc/remoteproc0/version Change-Id: I205485c5bfc8330231ff668f88c25c47182edaf4 Signed-off-by: Juan Gutierrez <jgutierrez@ti.com> Conflicts: drivers/remoteproc/remoteproc_core.c Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/remoteproc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index 63f9b020a9e6..75a046bdf43c 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -463,6 +463,7 @@ struct rproc {
int auto_suspend_timeout;
bool need_resume;
bool system_suspended;
+ char *fw_version;
};
/* we currently support only two vrings per rvdev */