]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sunxi: Add DM_MMC support for H6
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 29 Jan 2019 15:54:12 +0000 (15:54 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 29 Jan 2019 18:05:18 +0000 (23:35 +0530)
Unlike other Allwinner SoC's, H6 uses a different MMC mod clock offset.
Connect that with the respective compatible string.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/mmc/sunxi_mmc.c

index 1259e627cc5e6adb00f0d77d86f42dd718e35e49..1e13a0665de167d5bf50c67aa10aec17076841bf 100644 (file)
@@ -680,6 +680,10 @@ static const struct sunxi_mmc_variant sun4i_a10_variant = {
        .mclk_offset = 0x88,
 };
 
+static const struct sunxi_mmc_variant sun50i_h6_variant = {
+       .mclk_offset = 0x830,
+};
+
 static const struct udevice_id sunxi_mmc_ids[] = {
        {
          .compatible = "allwinner,sun4i-a10-mmc",
@@ -705,6 +709,14 @@ static const struct udevice_id sunxi_mmc_ids[] = {
          .compatible = "allwinner,sun50i-a64-emmc",
          .data = (ulong)&sun4i_a10_variant,
        },
+       {
+         .compatible = "allwinner,sun50i-h6-mmc",
+         .data = (ulong)&sun50i_h6_variant,
+       },
+       {
+         .compatible = "allwinner,sun50i-h6-emmc",
+         .data = (ulong)&sun50i_h6_variant,
+       },
        { /* sentinel */ }
 };