Message ID | 20200619135830.501470-6-aford173@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | Add Basic support for R8A774A1 (RZ/G2M) | expand |
On 6/19/20 3:58 PM, Adam Ford wrote: > The renesas-shdi controller can drive the r8a774a1 and shares its > quirks with R8A7796. This patch adds the compatibilty flag, to > support the SDHI controller. > > Signed-off-by: Adam Ford <aford173 at gmail.com> > --- > V2: No Change > > diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c > index d6ea99d2ce..8b8e300caf 100644 > --- a/drivers/mmc/renesas-sdhi.c > +++ b/drivers/mmc/renesas-sdhi.c > @@ -20,7 +20,6 @@ > #include <linux/sizes.h> > #include <power/regulator.h> > #include <asm/unaligned.h> > - > #include "tmio-common.h" > > #if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT) || \ > @@ -843,6 +842,7 @@ static const struct udevice_id renesas_sdhi_match[] = { > { .compatible = "renesas,sdhi-r8a7794", .data = RENESAS_GEN2_QUIRKS }, > { .compatible = "renesas,sdhi-r8a7795", .data = RENESAS_GEN3_QUIRKS }, > { .compatible = "renesas,sdhi-r8a7796", .data = RENESAS_GEN3_QUIRKS }, > + { .compatible = "renesas,sdhi-r8a774a1", .data = RENESAS_GEN3_QUIRKS }, > { .compatible = "renesas,sdhi-r8a77965", .data = RENESAS_GEN3_QUIRKS }, > { .compatible = "renesas,sdhi-r8a77970", .data = RENESAS_GEN3_QUIRKS }, > { .compatible = "renesas,sdhi-r8a77990", .data = RENESAS_GEN3_QUIRKS }, Can you match on 'rcar-gen3-sdhi' instead , so this table won't have to grow further ?
diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index d6ea99d2ce..8b8e300caf 100644 --- a/drivers/mmc/renesas-sdhi.c +++ b/drivers/mmc/renesas-sdhi.c @@ -20,7 +20,6 @@ #include <linux/sizes.h> #include <power/regulator.h> #include <asm/unaligned.h> - #include "tmio-common.h" #if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT) || \ @@ -843,6 +842,7 @@ static const struct udevice_id renesas_sdhi_match[] = { { .compatible = "renesas,sdhi-r8a7794", .data = RENESAS_GEN2_QUIRKS }, { .compatible = "renesas,sdhi-r8a7795", .data = RENESAS_GEN3_QUIRKS }, { .compatible = "renesas,sdhi-r8a7796", .data = RENESAS_GEN3_QUIRKS }, + { .compatible = "renesas,sdhi-r8a774a1", .data = RENESAS_GEN3_QUIRKS }, { .compatible = "renesas,sdhi-r8a77965", .data = RENESAS_GEN3_QUIRKS }, { .compatible = "renesas,sdhi-r8a77970", .data = RENESAS_GEN3_QUIRKS }, { .compatible = "renesas,sdhi-r8a77990", .data = RENESAS_GEN3_QUIRKS },
The renesas-shdi controller can drive the r8a774a1 and shares its quirks with R8A7796. This patch adds the compatibilty flag, to support the SDHI controller. Signed-off-by: Adam Ford <aford173 at gmail.com> --- V2: No Change