Skip to content

Commit 35eea0d

Browse files
prabhakarladstorulf
authored andcommitted
mmc: renesas_sdhi: Add compatible string for RZ/G2L family, RZ/G3S, and RZ/V2M SoCs
- RZ/G2UL and RZ/Five ("r9a07g043") - RZ/G2L(C) ("r9a07g044") - RZ/V2L ("r9a07g054") - RZ/G3S ("r9a08g045") - RZ/V2M ("r9a09g011") The above SoCs have HS400 disabled and use fixed address mode. Add a generic compatible 'renesas,rzg2l-sdhi' fallback string for these SoCs, where fixed_addr_mode and hs400_disabled quirks are applied. For backward compatibility, compatible string 'renesas,sdhi-r9a09g011' for RZ/V2M is retained. Also rename sdhi_quirks_r9a09g011->sdhi_quirks_rzg2l and of_r9a09g011_compatible->of_rzg2l_compatible to make it generic. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent d640af4 commit 35eea0d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/mmc/host/renesas_sdhi_internal_dmac.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static const struct renesas_sdhi_quirks sdhi_quirks_r8a77990 = {
210210
.manual_tap_correction = true,
211211
};
212212

213-
static const struct renesas_sdhi_quirks sdhi_quirks_r9a09g011 = {
213+
static const struct renesas_sdhi_quirks sdhi_quirks_rzg2l = {
214214
.fixed_addr_mode = true,
215215
.hs400_disabled = true,
216216
};
@@ -255,9 +255,9 @@ static const struct renesas_sdhi_of_data_with_quirks of_r8a77990_compatible = {
255255
.quirks = &sdhi_quirks_r8a77990,
256256
};
257257

258-
static const struct renesas_sdhi_of_data_with_quirks of_r9a09g011_compatible = {
258+
static const struct renesas_sdhi_of_data_with_quirks of_rzg2l_compatible = {
259259
.of_data = &of_data_rcar_gen3,
260-
.quirks = &sdhi_quirks_r9a09g011,
260+
.quirks = &sdhi_quirks_rzg2l,
261261
};
262262

263263
static const struct renesas_sdhi_of_data_with_quirks of_rcar_gen3_compatible = {
@@ -283,7 +283,8 @@ static const struct of_device_id renesas_sdhi_internal_dmac_of_match[] = {
283283
{ .compatible = "renesas,sdhi-r8a77970", .data = &of_r8a77970_compatible, },
284284
{ .compatible = "renesas,sdhi-r8a77990", .data = &of_r8a77990_compatible, },
285285
{ .compatible = "renesas,sdhi-r8a77995", .data = &of_rcar_gen3_nohs400_compatible, },
286-
{ .compatible = "renesas,sdhi-r9a09g011", .data = &of_r9a09g011_compatible, },
286+
{ .compatible = "renesas,sdhi-r9a09g011", .data = &of_rzg2l_compatible, },
287+
{ .compatible = "renesas,rzg2l-sdhi", .data = &of_rzg2l_compatible, },
287288
{ .compatible = "renesas,rcar-gen3-sdhi", .data = &of_rcar_gen3_compatible, },
288289
{ .compatible = "renesas,rcar-gen4-sdhi", .data = &of_rcar_gen3_compatible, },
289290
{},

0 commit comments

Comments
 (0)