mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +00:00
bdk: sdram: keep sdmmc1 no iopower state
This commit is contained in:
parent
85eb5489fe
commit
655209bedc
1 changed files with 6 additions and 6 deletions
|
@ -1504,7 +1504,7 @@ static void _sdram_init_t210()
|
||||||
PMC(APBDEV_PMC_DDR_PWR) = PMC(APBDEV_PMC_DDR_PWR); // Normally params->pmc_ddr_pwr.
|
PMC(APBDEV_PMC_DDR_PWR) = PMC(APBDEV_PMC_DDR_PWR); // Normally params->pmc_ddr_pwr.
|
||||||
|
|
||||||
// Turn on MEM IO Power.
|
// Turn on MEM IO Power.
|
||||||
PMC(APBDEV_PMC_NO_IOPOWER) = params->pmc_no_io_power;
|
PMC(APBDEV_PMC_NO_IOPOWER) &= PMC_NO_IOPOWER_SDMMC1; // Only keep SDMMC1 state. (Was params->pmc_no_io_power).
|
||||||
PMC(APBDEV_PMC_REG_SHORT) = params->pmc_reg_short;
|
PMC(APBDEV_PMC_REG_SHORT) = params->pmc_reg_short;
|
||||||
|
|
||||||
PMC(APBDEV_PMC_DDR_CNTRL) = params->pmc_ddr_ctrl;
|
PMC(APBDEV_PMC_DDR_CNTRL) = params->pmc_ddr_ctrl;
|
||||||
|
@ -1527,7 +1527,7 @@ static void _sdram_init_t210b01()
|
||||||
usleep(params->pmc_vddp_sel_wait);
|
usleep(params->pmc_vddp_sel_wait);
|
||||||
|
|
||||||
// Turn on MEM IO Power.
|
// Turn on MEM IO Power.
|
||||||
PMC(APBDEV_PMC_NO_IOPOWER) = params->pmc_no_io_power;
|
PMC(APBDEV_PMC_NO_IOPOWER) &= PMC_NO_IOPOWER_SDMMC1; // Only keep SDMMC1 state. (Was params->pmc_no_io_power).
|
||||||
PMC(APBDEV_PMC_REG_SHORT) = params->pmc_reg_short;
|
PMC(APBDEV_PMC_REG_SHORT) = params->pmc_reg_short;
|
||||||
|
|
||||||
PMC(APBDEV_PMC_DDR_CNTRL) = params->pmc_ddr_ctrl;
|
PMC(APBDEV_PMC_DDR_CNTRL) = params->pmc_ddr_ctrl;
|
||||||
|
|
Loading…
Reference in a new issue