firmware: arm_scmi: add initial support for sensor protocol
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 6 Jun 2017 10:38:10 +0000 (11:38 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commit5179c523c1eae4b80fbafe9656bc24a375217cac
tree180aab4d65d5c21fcc48eb315ebc114ef96f82dd
parent76a6550990e296a7acbb4d33201c9740be912a8c
firmware: arm_scmi: add initial support for sensor protocol

The sensor protocol provides functions to manage platform sensors, and
provides the commands to describe the protocol version and the various
attribute flags. It also provides commands to discover various sensors
implemented and managed by the platform, read any sensor synchronously
or asynchronously as allowed by the platform, program sensor attributes
and/or configurations, if applicable.

This patch adds support for most of the above features.

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/sensors.c [new file with mode: 0644]
include/linux/scmi_protocol.h