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 <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Frank Oltmanns <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent b271fc4 commit 48fb70c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)