Commit 9e233382 authored by Jagan Teki's avatar Jagan Teki

mmc: sunxi: Add DM_MMC support for H6

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's avatarJagan Teki <jagan@amarulasolutions.com>
Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent a1925a64
...@@ -680,6 +680,10 @@ static const struct sunxi_mmc_variant sun4i_a10_variant = { ...@@ -680,6 +680,10 @@ static const struct sunxi_mmc_variant sun4i_a10_variant = {
.mclk_offset = 0x88, .mclk_offset = 0x88,
}; };
static const struct sunxi_mmc_variant sun50i_h6_variant = {
.mclk_offset = 0x830,
};
static const struct udevice_id sunxi_mmc_ids[] = { static const struct udevice_id sunxi_mmc_ids[] = {
{ {
.compatible = "allwinner,sun4i-a10-mmc", .compatible = "allwinner,sun4i-a10-mmc",
...@@ -705,6 +709,14 @@ static const struct udevice_id sunxi_mmc_ids[] = { ...@@ -705,6 +709,14 @@ static const struct udevice_id sunxi_mmc_ids[] = {
.compatible = "allwinner,sun50i-a64-emmc", .compatible = "allwinner,sun50i-a64-emmc",
.data = (ulong)&sun4i_a10_variant, .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 */ } { /* sentinel */ }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment