Commit e7990721 authored by Aaron Liu's avatar Aaron Liu Committed by Alex Deucher

drm/amdgpu: add nv common ip block support for yellow carp

This patch adds common ip support for yellow carp.
Signed-off-by: default avatarAaron Liu <aaron.liu@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cdf9979b
...@@ -782,6 +782,9 @@ static int nv_reg_base_init(struct amdgpu_device *adev) ...@@ -782,6 +782,9 @@ static int nv_reg_base_init(struct amdgpu_device *adev)
case CHIP_BEIGE_GOBY: case CHIP_BEIGE_GOBY:
beige_goby_reg_base_init(adev); beige_goby_reg_base_init(adev);
break; break;
case CHIP_YELLOW_CARP:
yellow_carp_reg_base_init(adev);
break;
default: default:
return -EINVAL; return -EINVAL;
} }
...@@ -1309,6 +1312,11 @@ static int nv_common_early_init(void *handle) ...@@ -1309,6 +1312,11 @@ static int nv_common_early_init(void *handle)
AMD_PG_SUPPORT_MMHUB; AMD_PG_SUPPORT_MMHUB;
adev->external_rev_id = adev->rev_id + 0x46; adev->external_rev_id = adev->rev_id + 0x46;
break; break;
case CHIP_YELLOW_CARP:
adev->cg_flags = 0;
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0x01;
break;
default: default:
/* FIXME: not supported yet */ /* FIXME: not supported yet */
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment