Commit 911a7504 authored by Likun Gao's avatar Likun Gao Committed by Alex Deucher

drm/amdgpu: support psp v13_0_0 microcode init

Support psp v13_0_0 microcode init.
Signed-off-by: default avatarLikun Gao <Likun.Gao@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e995e2ec
...@@ -82,6 +82,7 @@ static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp ...@@ -82,6 +82,7 @@ static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp
case IP_VERSION(11, 0, 11): case IP_VERSION(11, 0, 11):
case IP_VERSION(11, 0, 12): case IP_VERSION(11, 0, 12):
case IP_VERSION(11, 0, 13): case IP_VERSION(11, 0, 13):
case IP_VERSION(13, 0, 0):
case IP_VERSION(13, 0, 2): case IP_VERSION(13, 0, 2):
psp->pmfw_centralized_cstate_management = true; psp->pmfw_centralized_cstate_management = true;
break; break;
...@@ -142,6 +143,10 @@ static int psp_early_init(void *handle) ...@@ -142,6 +143,10 @@ static int psp_early_init(void *handle)
psp->autoload_supported = false; psp->autoload_supported = false;
} }
break; break;
case IP_VERSION(13, 0, 0):
psp_v13_0_set_psp_funcs(psp);
psp->autoload_supported = true;
break;
default: default:
return -EINVAL; return -EINVAL;
} }
......
...@@ -41,6 +41,7 @@ MODULE_FIRMWARE("amdgpu/psp_13_0_5_ta.bin"); ...@@ -41,6 +41,7 @@ MODULE_FIRMWARE("amdgpu/psp_13_0_5_ta.bin");
MODULE_FIRMWARE("amdgpu/psp_13_0_8_asd.bin"); MODULE_FIRMWARE("amdgpu/psp_13_0_8_asd.bin");
MODULE_FIRMWARE("amdgpu/psp_13_0_8_toc.bin"); MODULE_FIRMWARE("amdgpu/psp_13_0_8_toc.bin");
MODULE_FIRMWARE("amdgpu/psp_13_0_8_ta.bin"); MODULE_FIRMWARE("amdgpu/psp_13_0_8_ta.bin");
MODULE_FIRMWARE("amdgpu/psp_13_0_0_sos.bin");
/* For large FW files the time to complete can be very long */ /* For large FW files the time to complete can be very long */
#define USBC_PD_POLLING_LIMIT_S 240 #define USBC_PD_POLLING_LIMIT_S 240
...@@ -68,6 +69,9 @@ static int psp_v13_0_init_microcode(struct psp_context *psp) ...@@ -68,6 +69,9 @@ static int psp_v13_0_init_microcode(struct psp_context *psp)
case IP_VERSION(13, 0, 8): case IP_VERSION(13, 0, 8):
chip_name = "psp_13_0_8"; chip_name = "psp_13_0_8";
break; break;
case IP_VERSION(13, 0, 0):
chip_name = "psp_13_0_0";
break;
default: default:
BUG(); BUG();
} }
...@@ -94,6 +98,11 @@ static int psp_v13_0_init_microcode(struct psp_context *psp) ...@@ -94,6 +98,11 @@ static int psp_v13_0_init_microcode(struct psp_context *psp)
if (err) if (err)
return err; return err;
break; break;
case IP_VERSION(13, 0, 0):
err = psp_init_sos_microcode(psp, chip_name);
if (err)
return err;
break;
default: default:
BUG(); BUG();
} }
......
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