aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/evergreen.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2011-03-02 20:07:34 -0500
committerDave Airlie <airlied@redhat.com>2011-03-02 20:52:04 -0500
commit755d819e0cf2e09e0958c77b72aa3ce2142411c2 (patch)
treef54b56dad294141467947f6d1e1259db6c5fc027 /drivers/gpu/drm/radeon/evergreen.c
parentb9952a8ae5814b0ef2a6596c7443efd85b92e069 (diff)
drm/radeon/kms/cayman: add asic init/startup/fini/suspend/resume functions
Cayman is different enough from evergreen to warrant it's own functions. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index 0a3d6fc13c2d..d4045223d0ff 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -1108,7 +1108,7 @@ void evergreen_mc_resume(struct radeon_device *rdev, struct evergreen_mc_save *s
1108 WREG32(VGA_RENDER_CONTROL, save->vga_render_control); 1108 WREG32(VGA_RENDER_CONTROL, save->vga_render_control);
1109} 1109}
1110 1110
1111static void evergreen_mc_program(struct radeon_device *rdev) 1111void evergreen_mc_program(struct radeon_device *rdev)
1112{ 1112{
1113 struct evergreen_mc_save save; 1113 struct evergreen_mc_save save;
1114 u32 tmp; 1114 u32 tmp;
@@ -2565,7 +2565,7 @@ void evergreen_irq_disable(struct radeon_device *rdev)
2565 evergreen_disable_interrupt_state(rdev); 2565 evergreen_disable_interrupt_state(rdev);
2566} 2566}
2567 2567
2568static void evergreen_irq_suspend(struct radeon_device *rdev) 2568void evergreen_irq_suspend(struct radeon_device *rdev)
2569{ 2569{
2570 evergreen_irq_disable(rdev); 2570 evergreen_irq_disable(rdev);
2571 r600_rlc_stop(rdev); 2571 r600_rlc_stop(rdev);
@@ -2888,7 +2888,7 @@ static int evergreen_startup(struct radeon_device *rdev)
2888 return r; 2888 return r;
2889 } 2889 }
2890 } 2890 }
2891 r = btc_mc_load_microcode(rdev); 2891 r = ni_mc_load_microcode(rdev);
2892 if (r) { 2892 if (r) {
2893 DRM_ERROR("Failed to load MC firmware!\n"); 2893 DRM_ERROR("Failed to load MC firmware!\n");
2894 return r; 2894 return r;
@@ -2970,7 +2970,7 @@ int evergreen_resume(struct radeon_device *rdev)
2970 2970
2971 r = evergreen_startup(rdev); 2971 r = evergreen_startup(rdev);
2972 if (r) { 2972 if (r) {
2973 DRM_ERROR("r600 startup failed on resume\n"); 2973 DRM_ERROR("evergreen startup failed on resume\n");
2974 return r; 2974 return r;
2975 } 2975 }
2976 2976
@@ -3050,7 +3050,7 @@ int evergreen_init(struct radeon_device *rdev)
3050 } 3050 }
3051 /* Must be an ATOMBIOS */ 3051 /* Must be an ATOMBIOS */
3052 if (!rdev->is_atom_bios) { 3052 if (!rdev->is_atom_bios) {
3053 dev_err(rdev->dev, "Expecting atombios for R600 GPU\n"); 3053 dev_err(rdev->dev, "Expecting atombios for evergreen GPU\n");
3054 return -EINVAL; 3054 return -EINVAL;
3055 } 3055 }
3056 r = radeon_atombios_init(rdev); 3056 r = radeon_atombios_init(rdev);