drm/amdgpu/soc15: add Raven golden setting
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 8 Dec 2016 02:16:00 +0000 (10:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:50 +0000 (17:40 -0400)
Add the common golden settings for Raven.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 821b52f09f400ffb2f6709d9997437b9de852b1f..a9ea060a8d9cdc3c9069d58aebd617ae94531fbc 100644 (file)
@@ -206,6 +206,10 @@ static const u32 vega10_golden_init[] =
 {
 };
 
+static const u32 raven_golden_init[] =
+{
+};
+
 static void soc15_init_golden_registers(struct amdgpu_device *adev)
 {
        /* Some of the registers might be dependent on GRBM_GFX_INDEX */
@@ -217,6 +221,11 @@ static void soc15_init_golden_registers(struct amdgpu_device *adev)
                                                 vega10_golden_init,
                                                 (const u32)ARRAY_SIZE(vega10_golden_init));
                break;
+       case CHIP_RAVEN:
+               amdgpu_program_register_sequence(adev,
+                                                raven_golden_init,
+                                                (const u32)ARRAY_SIZE(raven_golden_init));
+               break;
        default:
                break;
        }