[PATCH v2 3/6] clk: sunxi-ng: sun6i-rtc: Add feature bit for IOSC calibration

Chen-Yu Tsai wens at kernel.org
Mon Jun 29 08:25:16 PDT 2026


On Mon, Jun 29, 2026 at 8:42 PM Jerome Brunet <jbrunet at baylibre.com> wrote:
>
> From: Junhui Liu <junhui.liu at pigmoral.tech>
>
> The sun6i-rtc CCU driver currently uses a global static variable to
> denote whether calibration is supported, which makes IOSC operations
> tightly coupled to this file.
>
> Convert this into a feature bit to decouple the logic. This allows the
> IOSC clock code to be moved into a shared module for reuse by other SoCs.
>
> Signed-off-by: Junhui Liu <junhui.liu at pigmoral.tech>
> Signed-off-by: Jerome Brunet<jbrunet at baylibre.com>

Reviewed-by: Chen-Yu Tsai <wens at kernel.org>



More information about the linux-arm-kernel mailing list