vc/mediatek/mt8195: Enable DRAM Vcore DVFS settings
Add the implementation for vcore voltage control. Also remove the reporting of vio18 because it is fixed during DRAM init, and we won't provide drivers for reading or writing it. Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> Change-Id: I39342aea902a87cdc2c5b862e5d1a889fcc822c5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56106 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2555bd410b
commit
e46cd138ff
|
@ -272,7 +272,6 @@ void vSetVcoreByFreq(DRAMC_CTX_T *p)
|
|||
|
||||
#ifndef DDR_INIT_TIME_PROFILING
|
||||
print("Read voltage for %d, %d\n", p->frequency, vGet_Current_SRAMIdx(p));
|
||||
print("Vio18 = %d\n", dramc_get_vio18_voltage());
|
||||
print("Vcore = %d\n", dramc_get_vcore_voltage());
|
||||
print("Vdram = %d\n", dramc_get_vmdd_voltage(p->dram_type));
|
||||
print("Vddq = %d\n", dramc_get_vmddq_voltage(p->dram_type));
|
||||
|
|
|
@ -352,8 +352,13 @@ unsigned int dramc_set_vcore_voltage(unsigned int vcore)
|
|||
{
|
||||
#ifdef MTK_PMIC_MT6359
|
||||
return mtk_regulator_set_voltage(®_vcore, vcore, MAX_VCORE);
|
||||
#endif
|
||||
#elif defined(FOR_COREBOOT)
|
||||
dramc_debug("%s set vcore to %u\n", __func__, vcore);
|
||||
mainboard_set_regulator_vol(MTK_REGULATOR_VCORE, vcore);
|
||||
return 0;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
unsigned int dramc_get_vcore_voltage(void)
|
||||
|
|
Loading…
Reference in New Issue