MFC r304796, r308233 (jmcneill)
r304796:
Switch parent clock when setting frequency if a new parent is a better
candidate for the target rate.
Reviewed by: andrew, manu
r308233:
The DTS may report fewer than 4 parents for a module clock. Avoid setting
the module clock parent to an out-of-range index in these cases.