OSDN Git Service

rockchip/soc/drivers: Add DTPM description for rk3399
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 28 Jan 2022 16:35:37 +0000 (17:35 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 4 Feb 2022 16:38:09 +0000 (17:38 +0100)
commitb9d6c47a2be8d273ecc063afda6e9fd66a35116d
treed4524ba4e5383247a886237750f05f7307b0f4fc
parente446556173170e675a7a321e76ce5fa3587de724
rockchip/soc/drivers: Add DTPM description for rk3399

The DTPM framework does support now the hierarchy description.

The platform specific code can call the hierarchy creation function
with an array of struct dtpm_node pointing to their parent.

This patch provides a description of the big / Little CPUs and the
GPU and tie them together under a virtual 'package' name. Only rk3399 is
described now.

The description could be extended in the future with the memory
controller with devfreq.

The description is always a module and it describes the soft
dependencies. The userspace has to load the softdeps module in the
right order.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by; Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220128163537.212248-6-daniel.lezcano@linaro.org
drivers/soc/rockchip/Kconfig
drivers/soc/rockchip/Makefile
drivers/soc/rockchip/dtpm.c [new file with mode: 0644]