mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
firmware: exynos-acpm: add DVFS protocol
Add ACPM DVFS protocol handler. It constructs DVFS messages that the APM firmware can understand. Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Tested-by: Peter Griffin <peter.griffin@linaro.org> # on gs101-oriole Link: https://patch.msgid.link/20251010-acpm-clk-v6-2-321ee8826fd4@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
committed by
Krzysztof Kozlowski
parent
83c4e3c39b
commit
84a222d1b3
@@ -29,6 +29,7 @@
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "exynos-acpm.h"
|
||||
#include "exynos-acpm-dvfs.h"
|
||||
#include "exynos-acpm-pmic.h"
|
||||
|
||||
#define ACPM_PROTOCOL_SEQNUM GENMASK(21, 16)
|
||||
@@ -590,8 +591,12 @@ static int acpm_channels_init(struct acpm_info *acpm)
|
||||
*/
|
||||
static void acpm_setup_ops(struct acpm_info *acpm)
|
||||
{
|
||||
struct acpm_dvfs_ops *dvfs_ops = &acpm->handle.ops.dvfs_ops;
|
||||
struct acpm_pmic_ops *pmic_ops = &acpm->handle.ops.pmic_ops;
|
||||
|
||||
dvfs_ops->set_rate = acpm_dvfs_set_rate;
|
||||
dvfs_ops->get_rate = acpm_dvfs_get_rate;
|
||||
|
||||
pmic_ops->read_reg = acpm_pmic_read_reg;
|
||||
pmic_ops->bulk_read = acpm_pmic_bulk_read;
|
||||
pmic_ops->write_reg = acpm_pmic_write_reg;
|
||||
|
||||
Reference in New Issue
Block a user