summaryrefslogtreecommitdiff
path: root/drivers/mmc/sunxi_mmc.c
diff options
context:
space:
mode:
authorAdam Sampson <ats@offog.org>2018-06-30 03:02:28 +0300
committerJagan Teki <jagan@amarulasolutions.com>2018-07-16 09:55:47 +0300
commit979b239b4c5f2fb7b219cc1d10445e136016a8f8 (patch)
tree5cb4f5ae2b0cdcc6e1bbcf6a5798d324233b9146 /drivers/mmc/sunxi_mmc.c
parentdf3ebdc99af72717932d0805174289abf46d3a0a (diff)
downloadu-boot-979b239b4c5f2fb7b219cc1d10445e136016a8f8.tar.xz
dm: mmc: sunxi: Add A10/A20 compatible strings
Commit dd27918c2252 ("dm: mmc: sunxi: Add support for driver model") only added the allwinner,sun5i-a13-mmc compatible string for this driver. The DM initialisation code here also works with (at least) A10 and A20, so add the appropriate compatible strings as per Linux 4.17's driver. Tested on A10 Cubieboard and A20 pcDuino3 Nano with CONFIG_DM_MMC. (A20 worked already, because sun7i-a20.dtsi specifies both the A13 and A20 strings.) Signed-off-by: Adam Sampson <ats@offog.org> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/mmc/sunxi_mmc.c')
-rw-r--r--drivers/mmc/sunxi_mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index fe6d82c7b4..7fa1ae8b16 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -637,7 +637,9 @@ static int sunxi_mmc_bind(struct udevice *dev)
}
static const struct udevice_id sunxi_mmc_ids[] = {
+ { .compatible = "allwinner,sun4i-a10-mmc" },
{ .compatible = "allwinner,sun5i-a13-mmc" },
+ { .compatible = "allwinner,sun7i-a20-mmc" },
{ }
};