powercap: arm_scmi: Add SCMI Powercap based driver
authorCristian Marussi <cristian.marussi@arm.com>
Thu, 13 Oct 2022 17:46:12 +0000 (18:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Oct 2022 16:53:15 +0000 (18:53 +0200)
commitb55eef5226b71edf5422de246bc189da1fdc9000
tree5917d674a099454f13e688c85b9fc220fd9223a4
parent247f34f7b80357943234f93f247a1ae6b6c3a740
powercap: arm_scmi: Add SCMI Powercap based driver

Add a powercap driver that, using the ARM SCMI Protocol to query the SCMI
platform firmware for the list of existing Powercap domains, registers all
of such discovered domains under the new 'arm-scmi' powercap control type.

A new simple powercap zone and constraint is registered for all the SCMI
powercap zones that are found.

Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
MAINTAINERS
drivers/powercap/Kconfig
drivers/powercap/Makefile
drivers/powercap/arm_scmi_powercap.c [new file with mode: 0644]