HomeFreeBSD

twsi: Calculate the clock param based on the bus frequency

Description

twsi: Calculate the clock param based on the bus frequency

Instead of precalculating the different speed, respect the bus frequency
and calculate the clock register parameter based on it.
If the platform didn't register the core clk, fallback on the precomputed
values (This is likely do be the case on Marvell boards).

Details

Provenance
manuAuthored on
Parents
rS347490: allwinner: clk: sun8i_r: Correct resets
Branches
Unknown
Tags
Unknown