Skip to content

Commit 5d80920

Browse files
committed
clk: at91: fix update bit maps on CFG_MOR write
The regmap update bits call was not selecting the proper mask, considering the bits which was updating. Update the mask from call to also include OSCBYPASS. Removed MOSCEN which was not updated. Fixes: 1bdf023 ("clk: at91: make use of syscon/regmap internally") Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
1 parent db79e75 commit 5d80920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/at91/clk-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ at91_clk_register_main_osc(struct regmap *regmap,
157157
if (bypass)
158158
regmap_update_bits(regmap,
159159
AT91_CKGR_MOR, MOR_KEY_MASK |
160-
AT91_PMC_MOSCEN,
160+
AT91_PMC_OSCBYPASS,
161161
AT91_PMC_OSCBYPASS | AT91_PMC_KEY);
162162

163163
hw = &osc->hw;

0 commit comments

Comments
 (0)