
On Mon, Oct 12, 2015 at 5:36 PM, Stefan Agner stefan@agner.ch wrote:
On 2015-10-08 12:32, Anthony Felice wrote:
The CCGRx registers, or clock gating registers, can be set to disable or enable clocks for devices on the vf610twr platform. Enabling masks for all CCGRx registers allows Linux drivers, like snvs_rtc, and also MQX applications, to work out-of-the-box. There are no real downsides to enabling all clocks, and this has been done in previous Freescale releases of U-Boot for the Vybrid Tower.
I don't really agree with this patch. Linux should handle clocks for snvs_rtc properly, if the necessary clocks are assigned. At least it seems to work on a recent mainline kernel.
As far as I remember there is a clock tree driver for Vybrid in MQX too, so it should be able to handle clocks.
And, there is a downside with this approach: It will consume more power. Although, Linux will automatically disable unused clocks, at least the gates which it knows of. Hence, this will lead to a higher power consumption not only during boot time, but also during run time.
Agreed; the clocks enabled in the U-Boot should be the bare minimal to get the CPU in an usable form, and all the rest should be handled by the loaded operating system. There is no reason to increase power consumption for every user when the kernel can handle it.