Skip to content

Commit 58a0b88

Browse files
committed
Keep Agilex SDHCI host reset after upstream rebase
1 parent 5845b6f commit 58a0b88

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

‎include/sdhci.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,6 @@ void sdhci_platform_init(void);
483483
* to the card clock and return that, keeping the internal divider ~1. */
484484
uint32_t sdhci_platform_set_clock(uint32_t clock_khz, uint32_t base_clk_khz);
485485

486-
/* Preserve a host controller initialized by an earlier boot stage.
487-
* Opt in with -DSDHCI_SKIP_HOST_RESET=1. */
488-
489486
/* Optional controller settle time in microseconds after each init command.
490487
* Opt in with -DSDHCI_WAIT_AFTER_CMD_US=<us>. */
491488

‎src/sdhci.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,12 +1950,10 @@ static int sdhci_init_internal(void)
19501950
* not be ready to accept register writes on some platforms. */
19511951
udelay(1000); /* 1ms */
19521952

1953-
#ifndef SDHCI_SKIP_HOST_RESET_ENABLED
1954-
/* Reset the host controller unless an earlier boot stage initialized it. */
1953+
/* Restore host controller state after the earlier boot stage. */
19551954
sdhci_reg_or(SDHCI_HRS00, SDHCI_HRS00_SWR);
19561955
/* Bit will clear when reset is done */
19571956
while ((SDHCI_REG(SDHCI_HRS00) & SDHCI_HRS00_SWR) != 0);
1958-
#endif
19591957

19601958
/* Set debounce period to ~15ms (platform-specific value may be different) */
19611959
SDHCI_REG_SET(SDHCI_HRS01, (0x300000UL << SDHCI_HRS01_DP_SHIFT) &

0 commit comments

Comments
 (0)