firmware: arm_scmi: add common infrastructure and support for base protocol
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 6 Jun 2017 10:16:15 +0000 (11:16 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commitb6f20ff8bd94ad34032804a60bab5ee56752007e
tree0e03d268b946903fa9f2af685d38c89fc875f837
parentaa4f886f3893f88146e8e02fd1e9c5c9e43cbcc1
firmware: arm_scmi: add common infrastructure and support for base protocol

The base protocol describes the properties of the implementation and
provide generic error management. The base protocol provides commands
to describe protocol version, discover implementation specific
attributes and vendor/sub-vendor identification, list of protocols
implemented and the various agents are in the system including OSPM
and the platform. It also supports registering for notifications of
platform errors.

This protocol is mandatory. This patch adds support for the same along
with some basic infrastructure to add support for other protocols.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/Makefile
drivers/firmware/arm_scmi/base.c [new file with mode: 0644]
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c
include/linux/scmi_protocol.h