On Wed, 9 Sep 2020 at 10:44, Etienne Carriere <etienne.carri...@linaro.org> wrote: > > This change introduces a reset controller driver for SCMI agent devices. > When SCMI agent and SCMI reset domain drivers are enabled, SCMI agent > binds a reset controller device for each SCMI reset domain protocol > devices enabled in the FDT. > > SCMI reset driver is embedded upon CONFIG_RESET_SCMI=y. If enabled, > CONFIG_SCMI_AGENT is also enabled. > > SCMI Reset Domain protocol is defined in the SCMI specification [1]. > > Links: [1] > https://developer.arm.com/architectures/system-architectures/software-standards/scmi > Signed-off-by: Etienne Carriere <etienne.carri...@linaro.org> > Cc: Simon Glass <s...@chromium.org> > Cc: Peng Fan <peng....@nxp.com> > Cc: Sudeep Holla <sudeep.ho...@arm.com> > --- > > Changes in v4: > - Condition DM_GET_DRIVER(scmi_reset_domain) to > IS_ENABLED(CONFIG_RESET_SCMI) to prevent a build error (linker) when > CONFIG_RESET_SCMI is disabled. > > Changes in v3: > - Upgrade to rename into devm_scmi_process_msg() and scmi.h split > into scmi_*.h. > - Fix message ID used in scmi_reset_request(). > > Changes in v2: > - Change reset request() method to at least check the reset domain > exists by sending a SCMI RESET_DOMAIN_ATTRIBUTE message. > - Add inline description for the several structures. > - Patch v1 R-b tag not applied since the above changes in this v2. > > BACKPORTED FROM v2020.10-rc2 to V2020.04 > --- > drivers/firmware/scmi/scmi_agent-uclass.c | 4 ++ > drivers/reset/Kconfig | 8 +++ > drivers/reset/Makefile | 1 + > drivers/reset/reset-scmi.c | 81 +++++++++++++++++++++++ > include/scmi_protocols.h | 60 +++++++++++++++++ > 5 files changed, 154 insertions(+) > create mode 100644 drivers/reset/reset-scmi.c >
Reviewed-by: Simon Glass <s...@chromium.org>