remoteproc: Add a sysfs interface for firmware and state
authorMatt Redfearn <matt.redfearn@imgtec.com>
Wed, 19 Oct 2016 12:05:47 +0000 (13:05 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 1 Nov 2016 00:24:46 +0000 (17:24 -0700)
commit2aefbef041498182ce1d186ed2300298b7a7101a
treec3e2a7b798fd8ad940140b061557a637bfb18ea4
parentaf148e458d0a175c41f41664cdb97e0d251b9e69
remoteproc: Add a sysfs interface for firmware and state

This patch adds a sysfs interface to rproc allowing the firmware name
and processor state to be changed dynamically.

State was previously available in debugfs, and is replicated here. The
firmware file allows retrieval of the running firmware name, and a new
one to be specified at run time, so long as the remote processor has
been stopped.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/ABI/testing/sysfs-class-remoteproc [new file with mode: 0644]
drivers/remoteproc/Makefile
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h
drivers/remoteproc/remoteproc_sysfs.c [new file with mode: 0644]