Re: [PATCH] clk: Add 16bit register access for clk-divider.

From: Stephen Boyd
Date: Fri Apr 15 2016 - 20:06:42 EST


On 04/14, Yoshinori Sato wrote:
> Some SoC use 16bit-word register. And required 16bit-word access.
> This changes add 16-bit access mode.
>
> Signed-off-by: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>

Please implement a custom divider for your hardware instead of
adding this support to the core. You can call functions such as
divider_recalc_rate(), divider_round_rate(), and
divider_get_val() to get the appropriate register values and then
have the readw/writew in your custom driver instead.

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project