diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-09-28 12:34:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-09-28 21:15:54 -0400 |
commit | d39c3b895876427c5083a936e00f3f5b7f0fc1b3 (patch) | |
tree | 1f57be660f35c99ef6d182d2bf8397a818c8f8d0 /drivers/gpu/drm/radeon/r520.c | |
parent | f4e45d02e4135043fe98bc21be38527c516ad990 (diff) |
drm/radeon/kms: Convert RV515 to new init path and associated cleanup
Convert the rv515 asic support to new init path also add an explanation
in radeon.h about the new init path. There is also few cleanups
associated with this change (others asic calling rv515 helper
functions).
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/radeon/r520.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r520.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r520.c b/drivers/gpu/drm/radeon/r520.c index d4b0b9d2e39b..2723486ad380 100644 --- a/drivers/gpu/drm/radeon/r520.c +++ b/drivers/gpu/drm/radeon/r520.c | |||
@@ -33,7 +33,6 @@ | |||
33 | void r100_hdp_reset(struct radeon_device *rdev); | 33 | void r100_hdp_reset(struct radeon_device *rdev); |
34 | void r420_pipes_init(struct radeon_device *rdev); | 34 | void r420_pipes_init(struct radeon_device *rdev); |
35 | void rs600_mc_disable_clients(struct radeon_device *rdev); | 35 | void rs600_mc_disable_clients(struct radeon_device *rdev); |
36 | void rs600_disable_vga(struct radeon_device *rdev); | ||
37 | int rv515_debugfs_pipes_info_init(struct radeon_device *rdev); | 36 | int rv515_debugfs_pipes_info_init(struct radeon_device *rdev); |
38 | int rv515_debugfs_ga_info_init(struct radeon_device *rdev); | 37 | int rv515_debugfs_ga_info_init(struct radeon_device *rdev); |
39 | 38 | ||
@@ -148,7 +147,7 @@ void r520_gpu_init(struct radeon_device *rdev) | |||
148 | unsigned pipe_select_current, gb_pipe_select, tmp; | 147 | unsigned pipe_select_current, gb_pipe_select, tmp; |
149 | 148 | ||
150 | r100_hdp_reset(rdev); | 149 | r100_hdp_reset(rdev); |
151 | rs600_disable_vga(rdev); | 150 | rv515_vga_render_disable(rdev); |
152 | /* | 151 | /* |
153 | * DST_PIPE_CONFIG 0x170C | 152 | * DST_PIPE_CONFIG 0x170C |
154 | * GB_TILE_CONFIG 0x4018 | 153 | * GB_TILE_CONFIG 0x4018 |
@@ -237,3 +236,9 @@ void r520_bandwidth_update(struct radeon_device *rdev) | |||
237 | { | 236 | { |
238 | rv515_bandwidth_avivo_update(rdev); | 237 | rv515_bandwidth_avivo_update(rdev); |
239 | } | 238 | } |
239 | |||
240 | int r520_init(struct radeon_device *rdev) | ||
241 | { | ||
242 | rv515_set_safe_registers(rdev); | ||
243 | return 0; | ||
244 | } | ||