On 07.07.2016 06:50, Stephan Roslen wrote:
> On 06.07.2016 22:20, Maxime Ripard wrote:
>> The issue is actually worse than that.
>>
>> That register controls the losc source for the whole clock tree, so it
>> will affect every clock in the system.
>>
>> In order to have that correctly propagated, you should register a new
>> mux here in the clock framework, and have all the other clocks using
>> that mux as a parent.
> 
> I agree. Checking the diagram in subsection 1.5.2 of the A20 manual it seems, 
> that LOSC can be a source for clocks like CPU and some SoC busses. So my 
> patch could indeed mess with the whole clock tree.

Sorry for the addition. The mess of course is not that huge, for the mux 
selects between a 32KHz Oscillator with +- 20% tolerance, thus ranging from 
25.6 to 38.4 KHz and the 32.768KHz external oscillator. Hence muxing to 
32.768KHz should be no problem for any clk, that was fine with the internal 
oscillator as clk source. Though still you're absolutely right, that this 
should be handled in code correctly.

Stephan

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups 
"rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to