Xi Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 203 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/1
diff --git a/src/soc/mediatek/mt8192/Makefile.inc b/src/soc/mediatek/mt8192/Makefile.inc index c01d716..76a28d0 100644 --- a/src/soc/mediatek/mt8192/Makefile.inc +++ b/src/soc/mediatek/mt8192/Makefile.inc @@ -28,7 +28,7 @@
romstage-y += ../common/auxadc.c romstage-y += ../common/cbmem.c -romstage-y += dramc_pi_main.c dramc_pi_basic_api.c dramc_pi_calibration_api.c dramc_utility.c dramc_dvfs.c dramc_tracking.c +romstage-y += dramc_pi_main.c dramc_pi_basic_api.c dramc_pi_calibration_api.c dramc_utility.c dramc_dvfs.c dramc_tracking.c dramc_power.c romstage-y += dramc_subsys_config.c dramc_ana_init_config.c dramc_dig_config.c romstage-y += emi.c romstage-y += flash_controller.c diff --git a/src/soc/mediatek/mt8192/dramc_pi_main.c b/src/soc/mediatek/mt8192/dramc_pi_main.c index e7c6ecb..f7bca77 100755 --- a/src/soc/mediatek/mt8192/dramc_pi_main.c +++ b/src/soc/mediatek/mt8192/dramc_pi_main.c @@ -2,9 +2,7 @@
#include <soc/dramc_pi_api.h> #include <soc/dramc_register.h> -#include <soc/pll.h> -#include <soc/pll_common.h> -#include <soc/mt6359p.h> +#include <soc/dramc_power.h>
static void dramc_write_shift_mck_write_DBI(const struct ddr_cali *cali, s8 shift_value) { @@ -209,14 +207,6 @@ } }
-static void set_vcore_voltage_for_each_freq(const struct ddr_cali *cali) -{ - u32 vcore = get_vcore_value(cali); - - dramc_info("Set DRAM vcore voltage to %u\n", vcore); - mt6359p_buck_set_voltage(MT6359P_GPU11, vcore); -} - static void get_dram_info_after_cal(struct ddr_cali *cali) { u8 vendor_id, density, max_density = 0; @@ -451,7 +441,8 @@
set_cali_datas(&cali, dparam, k_seq_idx); dramc_info("start calibration frequency %d\n", cali.frequency); - set_vcore_voltage_for_each_freq(&cali); + dramc_set_voltage(&cali); + dramc_dump_voltage(); dfs_init_for_calibration(&cali);
if (first_freq_k) @@ -485,7 +476,8 @@ dram_dfs_shu bootup_shu = get_shu_save_by_k_shu(bootup_cali_seq);
set_cali_datas(&cali, dparam, bootup_cali_seq); - set_vcore_voltage_for_each_freq(&cali); + dramc_set_voltage(&cali); + dramc_dump_voltage();
dramc_dfs_direct_jump_sram_shu_rg_mode(&cali, DRAM_DFS_SHU1); dramc_dfs_direct_jump_sram_shu_rg_mode(&cali, bootup_shu); diff --git a/src/soc/mediatek/mt8192/dramc_power.c b/src/soc/mediatek/mt8192/dramc_power.c new file mode 100644 index 0000000..b6d1c03 --- /dev/null +++ b/src/soc/mediatek/mt8192/dramc_power.c @@ -0,0 +1,139 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <soc/dramc_power.h> + +void __weak mainboard_set_regulator_vol(enum mtk_regulator regulator, + uint32_t voltage_uv) +{ + dramc_info("%s not implemented!\n", __func__); +} + +uint32_t __weak mainboard_get_regulator_vol(enum mtk_regulator regulator) +{ + dramc_info("%s not implemented!\n", __func__); + return 0; +} + +u32 get_vcore_value(const struct ddr_cali *cali) +{ +#ifdef HQA_HV + return cali->vcore_voltage / 100 * 105; +#elif defined(HQA_LV) + return cali->vcore_voltage / 100 * 95; +#else + return cali->vcore_voltage; +#endif +} + +u32 get_vdd1_value() +{ + return VDD1_VOL; +} + +u32 get_vdd2_value() +{ + return VDD2_VOL; +} + +u32 get_vddq_value() +{ + return VDDQ_VOL; +} + +u32 get_vmddr_value() +{ + return VMDDR_VOL; +} + +void dramc_set_vcore_voltage(const struct ddr_cali *cali) +{ + u32 vcore = get_vcore_value(cali); + + dramc_info("[%s]Set vcore voltage to %u\n", HQA_TAG, vcore); + mainboard_set_regulator_vol(MTK_REGULATOR_VCORE, vcore); +} + +void dramc_set_vdd1_voltage() +{ + u32 vdd1 = get_vdd1_value(); + + dramc_info("[%s]Set DRAM vdd1 voltage to %u\n", HQA_TAG, vdd1); + mainboard_set_regulator_vol(MTK_REGULATOR_VDD1, vdd1); +} + +void dramc_set_vdd2_voltage() +{ + u32 vdd2 = get_vdd2_value(); + + dramc_info("[%s]Set DRAM vdd2 voltage to %u\n", HQA_TAG, vdd2); + mainboard_set_regulator_vol(MTK_REGULATOR_VDD2, vdd2); +} + +void dramc_set_vddq_voltage() +{ + u32 vddq = get_vddq_value(); + + dramc_info("[%s]Set DRAM vddq voltage to %u\n", HQA_TAG, vddq); + mainboard_set_regulator_vol(MTK_REGULATOR_VDDQ, vddq); +} + +void dramc_set_vmddr_voltage() +{ + u32 vmddr = get_vmddr_value(); + + dramc_info("[%s]Set vmddr voltage to %u\n", HQA_TAG, vmddr); + mainboard_set_regulator_vol(MTK_REGULATOR_VMDDR, vmddr); +} + +u32 dramc_get_vcore_voltage() +{ + return mainboard_get_regulator_vol(MTK_REGULATOR_VCORE); +} + +// TODO: use real interface +u32 dramc_get_vdd1_voltage() +{ + return mainboard_get_regulator_vol(MTK_REGULATOR_VDD1); +} + +u32 dramc_get_vdd2_voltage() +{ + return mainboard_get_regulator_vol(MTK_REGULATOR_VDD2); +} + +u32 dramc_get_vddq_voltage() +{ + return mainboard_get_regulator_vol(MTK_REGULATOR_VDDQ); +} + +u32 dramc_get_vmddr_voltage() +{ + return mainboard_get_regulator_vol(MTK_REGULATOR_VMDDR); +} + +void dramc_set_voltage(const struct ddr_cali *cali) +{ + dramc_set_vcore_voltage(cali); + + dramc_set_vdd1_voltage(); + dramc_set_vdd2_voltage(); + dramc_set_vddq_voltage(); + + dramc_set_vmddr_voltage(); +} + +void dramc_dump_voltage() +{ + u32 vcore, vdd1, vdd2, vddq, vmddr; + + vcore = dramc_get_vcore_voltage(); + + vdd1 = dramc_get_vdd1_voltage(); + vdd2 = dramc_get_vdd2_voltage(); + vddq = dramc_get_vddq_voltage(); + + vmddr = dramc_get_vmddr_voltage(); + dramc_info("[Dump Dram Voltage] vcore: %u, vdd1:%u, vdd2:%u, vddq:%u, vmddr:%u\n" + , vcore, vdd1, vdd2, vddq, vmddr); +} + diff --git a/src/soc/mediatek/mt8192/dramc_utility.c b/src/soc/mediatek/mt8192/dramc_utility.c old mode 100644 new mode 100755 index e8878c1..fdfbd63 --- a/src/soc/mediatek/mt8192/dramc_utility.c +++ b/src/soc/mediatek/mt8192/dramc_utility.c @@ -2,6 +2,7 @@
#include <soc/dramc_pi_api.h> #include <soc/dramc_register.h> +#include <soc/dramc_power.h> #include <soc/infracfg.h>
struct dfs_frequency_table { @@ -105,11 +106,6 @@ return cali->cbt_mode[cali->rank]; }
-u32 get_vcore_value(const struct ddr_cali *cali) -{ - return cali->vcore_voltage; -} - u32 get_frequency(const struct ddr_cali *cali) { return cali->frequency; diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h b/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h old mode 100644 new mode 100755 index e0b887a..8ac0a64 --- a/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h +++ b/src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h @@ -301,7 +301,6 @@ dram_freq_grp get_freq_group_by_shu_save(dram_dfs_shu shu); dram_pinmux_type get_pinmux_type(const struct ddr_cali *cali); u32 get_frequency_by_shu(dram_dfs_shu shu); -u32 get_vcore_value(const struct ddr_cali *cali); void set_cali_datas(struct ddr_cali *cali, const struct dramc_data *dparam, dram_cali_seq k_seq); u8 get_mck2ui_div_shift(const struct ddr_cali *cali); diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_power.h b/src/soc/mediatek/mt8192/include/soc/dramc_power.h new file mode 100755 index 0000000..22771e3 --- /dev/null +++ b/src/soc/mediatek/mt8192/include/soc/dramc_power.h @@ -0,0 +1,57 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __SOC_MEDIATEK_MT8192_DRAMC_POWER_H__ +#define __SOC_MEDIATEK_MT8192_DRAMC_POWER_H__ + +#include <stdint.h> +#include <sys/types.h> +#include <soc/dramc_common_mt8192.h> +#include <soc/dramc_pi_api.h> +#include <soc/pll.h> +#include <soc/pll_common.h> +#include <soc/mt6359p.h> +#include <soc/regulator.h> + +#ifdef HQA_HV +#define HQA_TAG "HV" +#define VDD1_VOL 1950000 +#define VDD2_VOL 1170000 +#define VDDQ_VOL 650000 +#define VMDDR_VOL 790000 +#elif defined(HQA_LV) +#define HQA_TAG "LV" +#define VDD1_VOL 1730000 +#define VDD2_VOL 1060000 +#define VDDQ_VOL 570000 +#define VMDDR_VOL 710000 +#else // by default: HQA_NV +#define HQA_TAG "NV" +#define VDD1_VOL 1800000 +#define VDD2_VOL 1125000 +#define VDDQ_VOL 600000 +#define VMDDR_VOL 750000 +#endif + +u32 get_vcore_value(const struct ddr_cali *cali); +u32 get_vdd1_value(void); +u32 get_vdd2_value(void); +u32 get_vddq_value(void); +u32 get_vmddr_value(void); + +u32 dramc_get_vcore_voltage(void); +u32 dramc_get_vdd1_voltage(void); +u32 dramc_get_vdd2_voltage(void); +u32 dramc_get_vddq_voltage(void); +u32 dramc_get_vmddr_voltage(void); +void dramc_dump_voltage(void); + +void dramc_set_vcore_voltage(const struct ddr_cali *cali); +void dramc_set_vdd1_voltage(void); +void dramc_set_vdd2_voltage(void); +void dramc_set_vddq_voltage(void); +void dramc_set_vmddr_voltage(void); + +void dramc_set_voltage(const struct ddr_cali *cali); + +#endif /* __SOC_MEDIATEK_MT8192_DRAMC_PARAM_H__ */ +
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
Patch Set 1:
(210 comments)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... File src/soc/mediatek/mt8192/dramc_power.c:
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 1: /* SPDX-License-Identifier: GPL-2.0-only */ DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 2: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 3: #include <soc/dramc_power.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 4: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 5: void __weak mainboard_set_regulator_vol(enum mtk_regulator regulator, DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 6: uint32_t voltage_uv) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 7: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 8: dramc_info("%s not implemented!\n", __func__); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 9: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 10: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 11: uint32_t __weak mainboard_get_regulator_vol(enum mtk_regulator regulator) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 12: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 13: dramc_info("%s not implemented!\n", __func__); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 14: return 0; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 15: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 16: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 17: u32 get_vcore_value(const struct ddr_cali *cali) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 18: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 19: #ifdef HQA_HV DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 20: return cali->vcore_voltage / 100 * 105; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 21: #elif defined(HQA_LV) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 22: return cali->vcore_voltage / 100 * 95; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 23: #else DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 24: return cali->vcore_voltage; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 25: #endif DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 26: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 27: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 28: u32 get_vdd1_value() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 28: u32 get_vdd1_value() Bad function definition - u32 get_vdd1_value() should probably be u32 get_vdd1_value(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 29: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 30: return VDD1_VOL; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 31: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 32: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 33: u32 get_vdd2_value() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 33: u32 get_vdd2_value() Bad function definition - u32 get_vdd2_value() should probably be u32 get_vdd2_value(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 34: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 35: return VDD2_VOL; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 36: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 37: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 38: u32 get_vddq_value() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 38: u32 get_vddq_value() Bad function definition - u32 get_vddq_value() should probably be u32 get_vddq_value(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 39: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 40: return VDDQ_VOL; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 41: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 42: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 43: u32 get_vmddr_value() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 43: u32 get_vmddr_value() Bad function definition - u32 get_vmddr_value() should probably be u32 get_vmddr_value(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 44: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 45: return VMDDR_VOL; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 46: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 47: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 48: void dramc_set_vcore_voltage(const struct ddr_cali *cali) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 49: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 50: u32 vcore = get_vcore_value(cali); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 51: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 52: dramc_info("[%s]Set vcore voltage to %u\n", HQA_TAG, vcore); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 53: mainboard_set_regulator_vol(MTK_REGULATOR_VCORE, vcore); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 54: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 55: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 56: void dramc_set_vdd1_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 56: void dramc_set_vdd1_voltage() Bad function definition - void dramc_set_vdd1_voltage() should probably be void dramc_set_vdd1_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 57: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 58: u32 vdd1 = get_vdd1_value(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 59: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 60: dramc_info("[%s]Set DRAM vdd1 voltage to %u\n", HQA_TAG, vdd1); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 61: mainboard_set_regulator_vol(MTK_REGULATOR_VDD1, vdd1); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 62: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 63: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 64: void dramc_set_vdd2_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 64: void dramc_set_vdd2_voltage() Bad function definition - void dramc_set_vdd2_voltage() should probably be void dramc_set_vdd2_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 65: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 66: u32 vdd2 = get_vdd2_value(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 67: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 68: dramc_info("[%s]Set DRAM vdd2 voltage to %u\n", HQA_TAG, vdd2); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 69: mainboard_set_regulator_vol(MTK_REGULATOR_VDD2, vdd2); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 70: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 71: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 72: void dramc_set_vddq_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 72: void dramc_set_vddq_voltage() Bad function definition - void dramc_set_vddq_voltage() should probably be void dramc_set_vddq_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 73: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 74: u32 vddq = get_vddq_value(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 75: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 76: dramc_info("[%s]Set DRAM vddq voltage to %u\n", HQA_TAG, vddq); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 77: mainboard_set_regulator_vol(MTK_REGULATOR_VDDQ, vddq); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 78: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 79: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 80: void dramc_set_vmddr_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 80: void dramc_set_vmddr_voltage() Bad function definition - void dramc_set_vmddr_voltage() should probably be void dramc_set_vmddr_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 81: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 82: u32 vmddr = get_vmddr_value(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 83: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 84: dramc_info("[%s]Set vmddr voltage to %u\n", HQA_TAG, vmddr); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 85: mainboard_set_regulator_vol(MTK_REGULATOR_VMDDR, vmddr); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 86: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 87: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 88: u32 dramc_get_vcore_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 88: u32 dramc_get_vcore_voltage() Bad function definition - u32 dramc_get_vcore_voltage() should probably be u32 dramc_get_vcore_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 89: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 90: return mainboard_get_regulator_vol(MTK_REGULATOR_VCORE); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 91: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 92: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 93: // TODO: use real interface trailing whitespace
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 94: u32 dramc_get_vdd1_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 94: u32 dramc_get_vdd1_voltage() Bad function definition - u32 dramc_get_vdd1_voltage() should probably be u32 dramc_get_vdd1_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 95: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 96: return mainboard_get_regulator_vol(MTK_REGULATOR_VDD1); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 97: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 98: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 99: u32 dramc_get_vdd2_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 99: u32 dramc_get_vdd2_voltage() Bad function definition - u32 dramc_get_vdd2_voltage() should probably be u32 dramc_get_vdd2_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 100: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 101: return mainboard_get_regulator_vol(MTK_REGULATOR_VDD2); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 102: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 103: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 104: u32 dramc_get_vddq_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 104: u32 dramc_get_vddq_voltage() Bad function definition - u32 dramc_get_vddq_voltage() should probably be u32 dramc_get_vddq_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 105: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 106: return mainboard_get_regulator_vol(MTK_REGULATOR_VDDQ); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 107: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 108: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 109: u32 dramc_get_vmddr_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 109: u32 dramc_get_vmddr_voltage() Bad function definition - u32 dramc_get_vmddr_voltage() should probably be u32 dramc_get_vmddr_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 110: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 111: return mainboard_get_regulator_vol(MTK_REGULATOR_VMDDR); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 112: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 113: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 114: void dramc_set_voltage(const struct ddr_cali *cali) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 115: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 116: dramc_set_vcore_voltage(cali); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 117: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 118: dramc_set_vdd1_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 119: dramc_set_vdd2_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 120: dramc_set_vddq_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 121: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 122: dramc_set_vmddr_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 123: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 124: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 125: void dramc_dump_voltage() DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 125: void dramc_dump_voltage() Bad function definition - void dramc_dump_voltage() should probably be void dramc_dump_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 126: { DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 127: u32 vcore, vdd1, vdd2, vddq, vmddr; DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 128: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 129: vcore = dramc_get_vcore_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 130: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 131: vdd1 = dramc_get_vdd1_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 132: vdd2 = dramc_get_vdd2_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 133: vddq = dramc_get_vddq_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 134: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 135: vmddr = dramc_get_vmddr_voltage(); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 136: dramc_info("[Dump Dram Voltage] vcore: %u, vdd1:%u, vdd2:%u, vddq:%u, vmddr:%u\n" DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 137: , vcore, vdd1, vdd2, vddq, vmddr); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 138: } DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/dra... PS1, Line 139: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... File src/soc/mediatek/mt8192/include/soc/dramc_power.h:
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 1: /* SPDX-License-Identifier: GPL-2.0-only */ DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 2: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 3: #ifndef __SOC_MEDIATEK_MT8192_DRAMC_POWER_H__ DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 4: #define __SOC_MEDIATEK_MT8192_DRAMC_POWER_H__ DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 5: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 6: #include <stdint.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 7: #include <sys/types.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 8: #include <soc/dramc_common_mt8192.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 9: #include <soc/dramc_pi_api.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 10: #include <soc/pll.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 11: #include <soc/pll_common.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 12: #include <soc/mt6359p.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 13: #include <soc/regulator.h> DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 14: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 15: #ifdef HQA_HV DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 16: #define HQA_TAG "HV" DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 17: #define VDD1_VOL 1950000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 18: #define VDD2_VOL 1170000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 19: #define VDDQ_VOL 650000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 20: #define VMDDR_VOL 790000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 21: #elif defined(HQA_LV) DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 22: #define HQA_TAG "LV" DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 23: #define VDD1_VOL 1730000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 24: #define VDD2_VOL 1060000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 25: #define VDDQ_VOL 570000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 26: #define VMDDR_VOL 710000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 27: #else // by default: HQA_NV trailing whitespace
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 28: #define HQA_TAG "NV" DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 29: #define VDD1_VOL 1800000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 30: #define VDD2_VOL 1125000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 31: #define VDDQ_VOL 600000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 32: #define VMDDR_VOL 750000 DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 33: #endif DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 34: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 35: u32 get_vcore_value(const struct ddr_cali *cali); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 36: u32 get_vdd1_value(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 37: u32 get_vdd2_value(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 38: u32 get_vddq_value(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 39: u32 get_vmddr_value(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 40: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 41: u32 dramc_get_vcore_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 42: u32 dramc_get_vdd1_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 43: u32 dramc_get_vdd2_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 44: u32 dramc_get_vddq_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 45: u32 dramc_get_vmddr_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 46: void dramc_dump_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 47: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 48: void dramc_set_vcore_voltage(const struct ddr_cali *cali); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 49: void dramc_set_vdd1_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 50: void dramc_set_vdd2_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 51: void dramc_set_vddq_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 52: void dramc_set_vmddr_voltage(void); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 53: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 54: void dramc_set_voltage(const struct ddr_cali *cali); DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 55: DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 56: #endif /* __SOC_MEDIATEK_MT8192_DRAMC_PARAM_H__ */ DOS line endings
https://review.coreboot.org/c/coreboot/+/48073/1/src/soc/mediatek/mt8192/inc... PS1, Line 57: DOS line endings
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48073
to look at the new patch set (#2).
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 203 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/2
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
Patch Set 2:
(14 comments)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... File src/soc/mediatek/mt8192/dramc_power.c:
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 28: u32 get_vdd1_value() Bad function definition - u32 get_vdd1_value() should probably be u32 get_vdd1_value(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 33: u32 get_vdd2_value() Bad function definition - u32 get_vdd2_value() should probably be u32 get_vdd2_value(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 38: u32 get_vddq_value() Bad function definition - u32 get_vddq_value() should probably be u32 get_vddq_value(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 43: u32 get_vmddr_value() Bad function definition - u32 get_vmddr_value() should probably be u32 get_vmddr_value(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 56: void dramc_set_vdd1_voltage() Bad function definition - void dramc_set_vdd1_voltage() should probably be void dramc_set_vdd1_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 64: void dramc_set_vdd2_voltage() Bad function definition - void dramc_set_vdd2_voltage() should probably be void dramc_set_vdd2_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 72: void dramc_set_vddq_voltage() Bad function definition - void dramc_set_vddq_voltage() should probably be void dramc_set_vddq_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 80: void dramc_set_vmddr_voltage() Bad function definition - void dramc_set_vmddr_voltage() should probably be void dramc_set_vmddr_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 88: u32 dramc_get_vcore_voltage() Bad function definition - u32 dramc_get_vcore_voltage() should probably be u32 dramc_get_vcore_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 94: u32 dramc_get_vdd1_voltage() Bad function definition - u32 dramc_get_vdd1_voltage() should probably be u32 dramc_get_vdd1_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 99: u32 dramc_get_vdd2_voltage() Bad function definition - u32 dramc_get_vdd2_voltage() should probably be u32 dramc_get_vdd2_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 104: u32 dramc_get_vddq_voltage() Bad function definition - u32 dramc_get_vddq_voltage() should probably be u32 dramc_get_vddq_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 109: u32 dramc_get_vmddr_voltage() Bad function definition - u32 dramc_get_vmddr_voltage() should probably be u32 dramc_get_vmddr_voltage(void)
https://review.coreboot.org/c/coreboot/+/48073/2/src/soc/mediatek/mt8192/dra... PS2, Line 125: void dramc_dump_voltage() Bad function definition - void dramc_dump_voltage() should probably be void dramc_dump_voltage(void)
Hello build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/48073
to look at the new patch set (#3).
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/3
Yidi Lin has uploaded a new patch set (#6) to the change originally created by Xi Chen. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/6
Yidi Lin has uploaded a new patch set (#7) to the change originally created by Xi Chen. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/7
Yidi Lin has uploaded a new patch set (#9) to the change originally created by Xi Chen. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/9
Yidi Lin has uploaded a new patch set (#10) to the change originally created by Xi Chen. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/10
Yidi Lin has uploaded a new patch set (#12) to the change originally created by Xi Chen. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/12
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
Patch Set 13:
(5 comments)
https://review.coreboot.org/c/coreboot/+/48073/13//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/48073/13//COMMIT_MSG@9 PS13, Line 9: Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR. Please elaborate.
https://review.coreboot.org/c/coreboot/+/48073/13/src/soc/mediatek/mt8192/dr... File src/soc/mediatek/mt8192/dramc_power.c:
https://review.coreboot.org/c/coreboot/+/48073/13/src/soc/mediatek/mt8192/dr... PS13, Line 19: #ifdef HQA_HV : return cali->vcore_voltage / 100 * 105; : #elif defined(HQA_LV) : return cali->vcore_voltage / 100 * 95; : #else : return cali->vcore_voltage; : #endif Please do this in C and not the preprocessor.
https://review.coreboot.org/c/coreboot/+/48073/13/src/soc/mediatek/mt8192/dr... PS13, Line 52: [%s]Set Please add a space after ]. (Also below.)
https://review.coreboot.org/c/coreboot/+/48073/13/src/soc/mediatek/mt8192/dr... PS13, Line 139: Please remove blank lines at the end of files.
https://review.coreboot.org/c/coreboot/+/48073/13/src/soc/mediatek/mt8192/in... File src/soc/mediatek/mt8192/include/soc/dramc_power.h:
https://review.coreboot.org/c/coreboot/+/48073/13/src/soc/mediatek/mt8192/in... PS13, Line 58: Ditto.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
Patch Set 13:
(1 comment)
https://review.coreboot.org/c/coreboot/+/48073/13//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/48073/13//COMMIT_MSG@10 PS13, Line 10: Tested how? Please paste the new log messages.
Yidi Lin has uploaded a new patch set (#14) to the change originally created by Xi Chen. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
soc/mediatek/mt8192: add dramc power control
Controls HV or LV of VDD1/VDD2/VDDQ/VMDDR.
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: I50645e3a53d5c3c9d0b1237e32fafa8745734e8a --- M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/dramc_pi_main.c A src/soc/mediatek/mt8192/dramc_power.c M src/soc/mediatek/mt8192/dramc_utility.c M src/soc/mediatek/mt8192/include/soc/dramc_pi_api.h A src/soc/mediatek/mt8192/include/soc/dramc_power.h 6 files changed, 202 insertions(+), 20 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/48073/14
Xi Chen has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/48073 )
Change subject: soc/mediatek/mt8192: add dramc power control ......................................................................
Abandoned