diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-05-03 01:13:14 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 04:21:50 -0400 |
commit | d7311171c4cc8d6231427f7ac5056b939a184b80 (patch) | |
tree | bbe3db53048b12ccf1e480261e69121f095226d7 /drivers/gpu/drm/radeon/radeon.h | |
parent | ca2af92311eee95820f3b48c35045e5f56bc1477 (diff) |
drm/radeon/kms/pm: add support for no display power states
The lowest power states often cause display problems, so only enable
them when all displays are off.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index e39e2b4ec979..480a83ff54d5 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -658,6 +658,9 @@ struct radeon_voltage { | |||
658 | u32 voltage; | 658 | u32 voltage; |
659 | }; | 659 | }; |
660 | 660 | ||
661 | /* clock mode flags */ | ||
662 | #define RADEON_PM_MODE_NO_DISPLAY (1 << 0) | ||
663 | |||
661 | struct radeon_pm_clock_info { | 664 | struct radeon_pm_clock_info { |
662 | /* memory clock */ | 665 | /* memory clock */ |
663 | u32 mclk; | 666 | u32 mclk; |
@@ -665,12 +668,12 @@ struct radeon_pm_clock_info { | |||
665 | u32 sclk; | 668 | u32 sclk; |
666 | /* voltage info */ | 669 | /* voltage info */ |
667 | struct radeon_voltage voltage; | 670 | struct radeon_voltage voltage; |
668 | /* standardized clock flags - not sure we'll need these */ | 671 | /* standardized clock flags */ |
669 | u32 flags; | 672 | u32 flags; |
670 | }; | 673 | }; |
671 | 674 | ||
672 | /* state flags */ | 675 | /* state flags */ |
673 | #define RADEON_PM_SINGLE_DISPLAY_ONLY (1 << 0) | 676 | #define RADEON_PM_STATE_SINGLE_DISPLAY_ONLY (1 << 0) |
674 | 677 | ||
675 | struct radeon_power_state { | 678 | struct radeon_power_state { |
676 | enum radeon_pm_state_type type; | 679 | enum radeon_pm_state_type type; |