interconnect: add clk-based icc provider support
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 12 May 2023 00:13:32 +0000 (03:13 +0300)
committerGeorgi Djakov <djakov@kernel.org>
Thu, 18 May 2023 16:02:23 +0000 (19:02 +0300)
commit0ac2a08f42ce5c06d5d1216eac59c046961acd4f
treed5455a06df1edc59a80906cba7737a86c45de317
parent375cccc6593650ab9436d3d5fad7eabd7085fff3
interconnect: add clk-based icc provider support

For some devices it is useful to export clocks as interconnect providers,
if the clock corresponds to bus bandwidth.

For example, on MSM8996 the cluster interconnect clock should be scaled
according to the cluster frequencies. Exporting it as an interconnect
allows one to properly describe this as the cluster bandwidth
requirements.

Tested-by: Yassine Oudjana <y.oudjana@protonmail.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230512001334.2983048-3-dmitry.baryshkov@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/Kconfig
drivers/interconnect/Makefile
drivers/interconnect/icc-clk.c [new file with mode: 0644]
include/linux/interconnect-clk.h [new file with mode: 0644]