]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: add nv common ip block support for yellow carp
authorAaron Liu <aaron.liu@amd.com>
Wed, 4 Nov 2020 05:21:55 +0000 (13:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Jun 2021 20:03:06 +0000 (16:03 -0400)
This patch adds common ip support for yellow carp.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 27ba0408a2aaa39d7868a03c3ec0ef68814703d2..91ad7536781af695d94e295e84c085d37c3ff289 100644 (file)
@@ -782,6 +782,9 @@ legacy_init:
        case CHIP_BEIGE_GOBY:
                beige_goby_reg_base_init(adev);
                break;
+       case CHIP_YELLOW_CARP:
+               yellow_carp_reg_base_init(adev);
+               break;
        default:
                return -EINVAL;
        }
@@ -1309,6 +1312,11 @@ static int nv_common_early_init(void *handle)
                        AMD_PG_SUPPORT_MMHUB;
                adev->external_rev_id = adev->rev_id + 0x46;
                break;
+       case CHIP_YELLOW_CARP:
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x01;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;