mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-08 03:21:44 +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,10 +1504,10 @@ 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;
|
||||||
|
|
||||||
// Patch 1 using BCT spare variables
|
// Patch 1 using BCT spare variables
|
||||||
if (params->emc_bct_spare0)
|
if (params->emc_bct_spare0)
|
||||||
|
@ -1527,10 +1527,10 @@ 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;
|
||||||
|
|
||||||
// Patch 1 using BCT spare variables
|
// Patch 1 using BCT spare variables
|
||||||
if (params->emc_bct_spare0)
|
if (params->emc_bct_spare0)
|
||||||
|
|
Loading…
Reference in a new issue