drm/radeon/dpm: add debugfs support for RS780/RS880 (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2013 17:05:23 +0000 (13:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jul 2013 20:47:52 +0000 (16:47 -0400)
commit444bddc4b9b3313a562cd3ba40f780fb82570f7d
tree0811fd9dcfcf0cb84dfcc8e64279daa6289f73a6
parentf90555cbe629e14c6af1dcec1933a3833ecd321f
drm/radeon/dpm: add debugfs support for RS780/RS880 (v3)

This allows you to look at the current DPM state via
debugfs.

Due to the way the hardware works on these asics, there's
no way to look up exactly what power state we are in, so
we make the best guess we can based on the current sclk.

v2: Anthoine's version
v3: fix ref div

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/rs780_dpm.c
drivers/gpu/drm/radeon/rs780d.h