]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: renesas-sdhi: Add R-Car Gen4 support
authorHai Pham <hai.pham.ud@renesas.com>
Tue, 28 Feb 2023 21:24:06 +0000 (22:24 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 15:13:28 +0000 (17:13 +0200)
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
drivers/mmc/renesas-sdhi.c
drivers/mmc/tmio-common.c

index 34119f949aa8d1cdb484f6a17f18a0291ef03f8e..280d96dbc2dedf448eaffee4efe3b073e2a8cc64 100644 (file)
@@ -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 */ }
 };
 
index d8b6a4a8821d26ae950411f7ff404658ef2326b7..8d7ee481d64d73f4a9b85db304246dfa37bf9f2d 100644 (file)
@@ -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 */