01-16-2018, 04:43 PM
(01-16-2018, 02:48 PM)z4v4l Wrote: how about clock gating it? rockchip SoCs have loads of clock gating registers for literally everything. CRU_CLKGATE_CON6 and CRU_CLKGATE_CON14 mention gpu.
That sounds interesting.
Till now if have not much experience with such low level stuff in a "high level" OS.
I am more used to application programming or µC programming (like STM32F4 / F7). At the second most times peripheral gets only activated when it should be used so clock gets enabled.
But maybe with a SOC and a high level OS, in contrast to a µC, typically all "periherals" are/get activated by default.
Are all the "peripherals" activated / clocks enabled with a typical linux image for the Rock64?
In Chapter 2.8.5 on page 125 in the reference manual for HDMI it is described what "setup" is needed so that the peripheral gets its clock.
For clock gating the default/reset value is 0, what meens that clock gating is disabled. So e.g. for HDMI usage default behavoir should be that it is enabled.
Does someone know if clock gating could only be set during initialization, or is there also a dynamic access from user space?