Skip to content

Commit

Permalink
mmc: sunxi: Add DM_MMC support for H6
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
  • Loading branch information
openedev committed Jan 29, 2019
1 parent a1925a6 commit 9e23338
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/mmc/sunxi_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 */ }
};

Expand Down

0 comments on commit 9e23338

Please sign in to comment.