[PATCH v3] Add support for duty-cycle for RCG

From: Taniya Das
Date: Sun Apr 25 2021 - 03:10:21 EST


The root clock generators with MND divider has the capability to support
change in duty-cycle by updating the 'D'. Add the clock ops which would
check all the boundary conditions and enable setting the desired duty-cycle
as per the consumer.

[v3]
* Implement clockops for get_duty_cycle.
* Return -EINVAL for Non-MND or HID RCGs.

Taniya Das (1):
clk: qcom: clk-rcg2: Add support for duty-cycle for RCG

drivers/clk/qcom/clk-rcg2.c | 81 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)

--
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member
of the Code Aurora Forum, hosted by the Linux Foundation.