HomeFreeBSD

allwinner: clk: Correct aw_clk_get_factor

Description

allwinner: clk: Correct aw_clk_get_factor

Switch test between zero based factor and power of two one.
This resulted in a miscalculation of the factor if it was a power
of two one.
Some clocks frequencies were not calculated correctly because of that.

Details

Provenance
manuAuthored on
Parents
rS333053: MFC r332970:
Branches
Unknown
Tags
Unknown