1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-09 12:01:45 +00:00

l4t: there was never a need to normalize dram freq

This commit is contained in:
CTCaer 2023-06-09 10:51:31 +03:00
parent 4f52e1f24a
commit 496737248c

View file

@ -812,8 +812,7 @@ static void _l4t_bpmpfw_b01_config(l4t_ctxt_t *ctxt)
if ((ram_jd_t210b01[i] - 19200) < ram_oc_freq && if ((ram_jd_t210b01[i] - 19200) < ram_oc_freq &&
(ram_jd_t210b01[i] + 19200) > ram_oc_freq) (ram_jd_t210b01[i] + 19200) > ram_oc_freq)
{ {
// Set actual frequency and divider. // Set divider.
ram_oc_freq = ram_jd_t210b01[i];
ram_oc_divn = i + 1; ram_oc_divn = i + 1;
break; break;
@ -821,10 +820,7 @@ static void _l4t_bpmpfw_b01_config(l4t_ctxt_t *ctxt)
} }
if (!ram_oc_divn) if (!ram_oc_divn)
{
ram_oc_divn = ram_oc_freq / 38400; ram_oc_divn = ram_oc_freq / 38400;
ram_oc_freq = ram_oc_divn * 38400;
}
// Copy table and set parameters. // Copy table and set parameters.
memcpy(BPMPFW_B01_DTB_EMC_TBL_OFFSET(tbl_idx), BPMPFW_B01_MTC_TABLE_OFFSET(mtc_idx, 2), BPMPFW_B01_MTC_FREQ_TABLE_SIZE); memcpy(BPMPFW_B01_DTB_EMC_TBL_OFFSET(tbl_idx), BPMPFW_B01_MTC_TABLE_OFFSET(mtc_idx, 2), BPMPFW_B01_MTC_FREQ_TABLE_SIZE);