]> git.baikalelectronics.ru Git - arm-tf.git/commit
drivers/scmi-msg: support for clock protocol
authorEtienne Carriere <etienne.carriere@st.com>
Fri, 1 May 2020 08:32:02 +0000 (10:32 +0200)
committerEtienne Carriere <etienne.carriere@linaro.org>
Wed, 17 Jun 2020 09:07:02 +0000 (11:07 +0200)
commitc9e8300012113df5d279dbef5435c77f6b6dea67
treebb40900af101f34e9416911987c4d4d77d132161
parent75366ccd9b757f6b4d3ef4c99e839385a9ed74f8
drivers/scmi-msg: support for clock protocol

Adds SCMI clock protocol support in the SCMI message drivers as
defined in SCMI specification v2.0 [1] for clock protocol messages.

Platform can provide one of the plat_scmi_clock_*() handler for the
supported operations set/get state/rate and others.

scmi_msg_get_clock_handler() sanitizes the message_id value
against any speculative use of clock ID as a index since by
SCMI specification, IDs are indices.

This implementation is based on the OP-TEE project implementation [2]
itself based on the SCP-firmware implementation [3] of the SCMI
protocol server side.

Link: [1] http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/DEN0056A_System_Control_and_Management_Interface.pdf
Link: [2] https://github.com/OP-TEE/optee_os/commit/a7a9e3ba71dd908aafdc4c5ed9b29b15faa9692d
Link: [3] https://github.com/ARM-software/SCP-firmware.git

Change-Id: Ib56e096512042d4f7b9563d1e4181554eb8ed02c
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
drivers/st/scmi-msg/clock.c [new file with mode: 0644]
drivers/st/scmi-msg/clock.h [new file with mode: 0644]
drivers/st/scmi-msg/common.h
drivers/st/scmi-msg/entry.c
include/drivers/st/scmi-msg.h