13 comments:
File src/soc/mediatek/mt8192/dpm.c:
Just one tab, or
dm_file_bytes = cbfs_boot_load_file(
dm_file_name, dpm_dm_bin, sizeof(dpm_dm_bin), CBFS_TYPE_RAW);
Patch Set #32, Line 29: binary %s not found
Failed to load %s
Patch Set #32, Line 34: sizeof(dpm_pm_bin), CBFS_TYPE_RAW);
Same.
Patch Set #32, Line 36: binary %s not found
Failed to load %s
Use "%zu" (or "%#zx" if you prefer hex), and no need to cast it to "int".
Patch Set #32, Line 40: (int)
Please align with "BIOS_INFO".
Patch Set #32, Line 43: write32(&mtk_dpm->sw_rstn, read32(&mtk_dpm->sw_rstn) | 0x10000000);
Use clrsetbits32.
Patch Set #32, Line 43: 0x10000000
Please define a macro for this.
Please define a macro for this.
Patch Set #32, Line 54: write32(&mtk_dpm->sw_rstn, read32(&mtk_dpm->sw_rstn) | 0x1);
Use clrsetbits32.
File src/soc/mediatek/mt8192/include/soc/addressmap.h:
AUXADC_BASE = IO_PHYS + 0x01001000,
DPM_PM_SRAM_BASE = IO_PHYS + 0x00900000,
DPM_DM_SRAM_BASE = IO_PHYS + 0x00920000,
DPM_CFG_BASE = IO_PHYS + 0x00940000,
Please sort these by values.
File src/soc/mediatek/mt8192/include/soc/dpm.h:
Patch Set #32, Line 10: 0x8000
Use KiB?
Patch Set #32, Line 44: #define mtk_dpm ((struct dpm_regs *)DPM_CFG_BASE)
Use global variable to be consistent with others.
To view, visit change 46393. To unsubscribe, or for help writing mail filters, visit settings.