Commit 5e71e011 authored by Xiaojie Yuan's avatar Xiaojie Yuan Committed by Alex Deucher
Browse files

drm/amdgpu/soc15: add support for navi14



same as navi10

Signed-off-by: default avatarXiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b8cb98cd
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -559,6 +559,11 @@ static int nv_common_early_init(void *handle)
			AMD_PG_SUPPORT_ATHUB;
			AMD_PG_SUPPORT_ATHUB;
		adev->external_rev_id = adev->rev_id + 0x1;
		adev->external_rev_id = adev->rev_id + 0x1;
		break;
		break;
	case CHIP_NAVI14:
		adev->cg_flags = 0;
		adev->pg_flags = 0;
		adev->external_rev_id = adev->rev_id + 0x1; /* ??? */
		break;
	default:
	default:
		/* FIXME: not supported yet */
		/* FIXME: not supported yet */
		return -EINVAL;
		return -EINVAL;
@@ -751,6 +756,7 @@ static int nv_common_set_clockgating_state(void *handle,


	switch (adev->asic_type) {
	switch (adev->asic_type) {
	case CHIP_NAVI10:
	case CHIP_NAVI10:
	case CHIP_NAVI14:
		adev->nbio_funcs->update_medium_grain_clock_gating(adev,
		adev->nbio_funcs->update_medium_grain_clock_gating(adev,
				state == AMD_CG_STATE_GATE ? true : false);
				state == AMD_CG_STATE_GATE ? true : false);
		adev->nbio_funcs->update_medium_grain_light_sleep(adev,
		adev->nbio_funcs->update_medium_grain_light_sleep(adev,