clk: qcom: clk-rcg2: Add support for duty-cycle for RCG
authorTaniya Das <tdas@codeaurora.org>
Sun, 25 Apr 2021 07:08:22 +0000 (12:38 +0530)
committerStephen Boyd <sboyd@kernel.org>
Wed, 26 May 2021 03:36:21 +0000 (20:36 -0700)
commit7f891faf596ede96dd209b2257abf9df636b481f
treef17b731f339a3ccb3ec92e947efdb0a74948d2ac
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
clk: qcom: clk-rcg2: Add support for duty-cycle for RCG

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.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1619334502-9880-2-git-send-email-tdas@codeaurora.org
[sboyd@kernel.org: Remove _val everywhere]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-rcg2.c