firmware: arm_scmi: add initial support for clock protocol
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 6 Jun 2017 10:27:57 +0000 (11:27 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Feb 2018 16:37:57 +0000 (16:37 +0000)
commit5f6c6430e904d21bfe5d0076b1ff3e8b9ed94ba0
tree2354252fed5659119bd1723ac50d41f0ee5f6fae
parenta9e3fbfaa0ff885aacafe6f33e72448a2993d072
firmware: arm_scmi: add initial support for clock protocol

The clock protocol is intended for management of clocks. It is used to
enable or disable clocks, and to set and get the clock rates. This
protocol provides commands to describe the protocol version, discover
various implementation specific attributes, describe a clock, enable
and disable a clock and get/set the rate of the clock synchronously or
asynchronously.

This patch adds initial support for the clock protocol.

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