[PATCH v5 2/9] mmc: sdhci-of-k1: enable essential clock infrastructure for SD operation
Troy Mitchell
troy.mitchell at linux.dev
Mon Mar 30 02:11:09 PDT 2026
On Mon, Mar 30, 2026 at 16:38:03 CST, Iker Pedrosa wrote:
> Ensure SD card pins receive clock signals by enabling pad clock
> generation and overriding automatic clock gating. Required for all SD
> operation modes.
>
> The SDHC_GEN_PAD_CLK_ON setting in LEGACY_CTRL_REG is safe for both SD
> and eMMC operation as both protocols use the same physical MMC interface
> pins and require proper clock signal generation at the hardware level
> for signal integrity and timing.
>
> Additional SD-specific clock overrides (SDHC_OVRRD_CLK_OEN and
> SDHC_FORCE_CLK_ON) are conditionally applied only for SD-only
> controllers to handle removable card scenarios.
>
> Tested-by: Anand Moon <linux.amoon at gmail.com>
> Acked-by: Adrian Hunter <adrian.hunter at intel.com>
> Tested-by: Trevor Gamblin <tgamblin at baylibre.com>
> Signed-off-by: Iker Pedrosa <ikerpedrosam at gmail.com>
Reviewed-by: Troy Mitchell <troy.mitchell at linux.dev>
More information about the linux-riscv
mailing list