]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: rework clock initialization
authorLucas Stach <l.stach@pengutronix.de>
Thu, 28 Sep 2017 13:41:21 +0000 (15:41 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 09:45:06 +0000 (11:45 +0200)
commit17adc19e845fea95162345e911365da3aa03929c
treed37b4f6248078ec1a691c6c6b1ead5c956a0fa0a
parent358bff838593b82b597778bf2f9d88b11ed642a0
drm/etnaviv: rework clock initialization

The reset path wants to initialize the clock control register regardless
of the DYNAMIC_FREQUENCY_SCALING feature, so don't call clock update, but
explicitly load the register.

Also disabling of the debug registers is moved into the reset function,
so we always get to the same state after a GPU reset. This means the
clock update function should not touch the bits already set in the clock
control register, but instead only update the scaling bits.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c