msm: kgsl: Restructure GMU idle level initialization

Idle level setting is currently initialized after powering
on the device. This incorrectly assumes that the kernel will
always control the HM and SPTP head switches at first.
To enable these features, the respective registers are
written at the same time as the setting of idle level,
but that is currently happening before turning on the power.

Fix these issues by initializing idle level during probe,
moving power configuration to after power on, and
cleaning up code.

CRs-Fixed: 2017390
Change-Id: Ia6e6b465c3f39049af0dae179548d0a2e0561e22
Signed-off-by: Kyle Piefer <kpiefer@codeaurora.org>
2 files changed