diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-12-23 18:21:58 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-08 23:32:28 (GMT) |
commit | 0ec0e74f784ca08eab0354ab1dada46924c39b73 (patch) | |
tree | dc2a3d67fc5009f385b43bf9198427ff9050e39c /drivers/gpu/drm/radeon/radeon.h | |
parent | 845db70da0bd285813b25bb522a0281f28efbf89 (diff) | |
download | linux-fsl-qoriq-0ec0e74f784ca08eab0354ab1dada46924c39b73.tar.xz |
drm/radeon/kms: add a power state type based on power state flags
The idea is to flag a power state with a certain type and use
that type to decide on what state to select. On r6xx+, we
select a state and then transition between clock modes in that
state. On pre-r6xx, we transition between states directly.
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index d73d37d..5346868 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -593,6 +593,14 @@ enum radeon_voltage_type { VOLTAGE_SW }; +enum radeon_pm_state_type { + POWER_STATE_TYPE_DEFAULT, + POWER_STATE_TYPE_POWERSAVE, + POWER_STATE_TYPE_BATTERY, + POWER_STATE_TYPE_BALANCED, + POWER_STATE_TYPE_PERFORMANCE, +}; + struct radeon_voltage { enum radeon_voltage_type type; /* gpio voltage */ @@ -626,6 +634,7 @@ struct radeon_pm_clock_info { }; struct radeon_power_state { + enum radeon_pm_state_type type; /* XXX: use a define for num clock modes */ struct radeon_pm_clock_info clock_info[8]; /* number of valid clock modes in this power state */ |