From 7f98fb736a5820b9044b014b73f7185aff76ccff Mon Sep 17 00:00:00 2001 From: CTCaer Date: Mon, 25 Dec 2023 04:07:26 +0200 Subject: [PATCH] bdk: hwinit: reorder sdmmc1 reg disable --- bdk/soc/hw_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bdk/soc/hw_init.c b/bdk/soc/hw_init.c index 8771275..62a4446 100644 --- a/bdk/soc/hw_init.c +++ b/bdk/soc/hw_init.c @@ -277,12 +277,12 @@ static void _config_regulators(bool tegra_t210) // Disable low battery shutdown monitor. max77620_low_battery_monitor_config(false); - // Disable SDMMC1 IO power. - gpio_write(GPIO_PORT_E, GPIO_PIN_4, GPIO_LOW); + // Disable SDMMC1 IO/Core power. max7762x_regulator_enable(REGULATOR_LDO2, false); + gpio_write(GPIO_PORT_E, GPIO_PIN_4, GPIO_LOW); sd_power_cycle_time_start = get_tmr_ms(); - // Disable LCD DVDD. + // Disable LCD DVDD to make sure it's in a reset state. max7762x_regulator_enable(REGULATOR_LDO0, false); i2c_send_byte(I2C_5, MAX77620_I2C_ADDR, MAX77620_REG_CNFGBBC, MAX77620_CNFGBBC_RESISTOR_1K);