Skip to content

Commit 48fb70c

Browse files
Frank Oltmannswens
authored andcommitted
clk: sunxi-ng: Add feature to find closest rate
The default behaviour of clocks in the sunxi-ng driver is to select a clock rate that is closest to but less than the requested rate. Add the CCU_FEATURE_CLOSEST_RATE flag, which can be used to allow clocks to find the closest rate instead. Acked-by: Maxime Ripard <mripard@kernel.org> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Frank Oltmanns <frank@oltmanns.dev> Link: https://lore.kernel.org/r/20230807-pll-mipi_set_rate_parent-v6-4-f173239a4b59@oltmanns.dev Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent b271fc4 commit 48fb70c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/clk/sunxi-ng/ccu_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define CCU_FEATURE_MMC_TIMING_SWITCH BIT(6)
1919
#define CCU_FEATURE_SIGMA_DELTA_MOD BIT(7)
2020
#define CCU_FEATURE_KEY_FIELD BIT(8)
21+
#define CCU_FEATURE_CLOSEST_RATE BIT(9)
2122

2223
/* MMC timing mode switch bit */
2324
#define CCU_MMC_NEW_TIMING_MODE BIT(30)

0 commit comments

Comments
 (0)