mmc: renesas-sdhi: Add R-Car Gen4 support
Support R-Car Gen4 family. The default quirk is similar to previous generation. Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> # Use RCAR_64 Kconfig
This commit is contained in:
parent
2769ddc99f
commit
632a7b1186
2 changed files with 2 additions and 1 deletions
|
@ -843,6 +843,7 @@ static const struct udevice_id renesas_sdhi_match[] = {
|
|||
{ .compatible = "renesas,sdhi-r8a77970", .data = RENESAS_GEN3_QUIRKS },
|
||||
{ .compatible = "renesas,sdhi-r8a77990", .data = RENESAS_GEN3_QUIRKS },
|
||||
{ .compatible = "renesas,sdhi-r8a77995", .data = RENESAS_GEN3_QUIRKS },
|
||||
{ .compatible = "renesas,rcar-gen4-sdhi", .data = RENESAS_GEN3_QUIRKS },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ static bool tmio_sd_addr_is_dmaable(struct mmc_data *data)
|
|||
if (!IS_ALIGNED(addr, TMIO_SD_DMA_MINALIGN))
|
||||
return false;
|
||||
|
||||
if (IS_ENABLED(CONFIG_RCAR_GEN3)) {
|
||||
if (IS_ENABLED(CONFIG_RCAR_64)) {
|
||||
if (!(data->flags & MMC_DATA_READ) && !IS_ALIGNED(addr, 128))
|
||||
return false;
|
||||
/* Gen3 DMA has 32bit limit */
|
||||
|
|
Loading…
Reference in a new issue