diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2019-01-21 16:01:12 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-01-29 23:41:57 +0530 |
commit | 3c8c7da6fcf37ee1da4a450735f6a74291d87a6e (patch) | |
tree | 132d27ea39c1bae0d2485326534eaed829d79d3c /drivers/mmc | |
parent | 9e23338268d40d162a44d5c5d0ec71c209ccabf6 (diff) | |
download | u-boot-3c8c7da6fcf37ee1da4a450735f6a74291d87a6e.zip u-boot-3c8c7da6fcf37ee1da4a450735f6a74291d87a6e.tar.gz u-boot-3c8c7da6fcf37ee1da4a450735f6a74291d87a6e.tar.bz2 |
mmc: sunxi: Add DM_MMC support for A80
A80 gates clock already be part of CLK framework, so just
add mod_clk offset with A80 compatible string.
Cc: Rask Ingemann Lambertsen <rask@formelder.dk>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/sunxi_mmc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 1e13a06..0c443a7 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -680,6 +680,10 @@ static const struct sunxi_mmc_variant sun4i_a10_variant = { .mclk_offset = 0x88, }; +static const struct sunxi_mmc_variant sun9i_a80_variant = { + .mclk_offset = 0x410, +}; + static const struct sunxi_mmc_variant sun50i_h6_variant = { .mclk_offset = 0x830, }; @@ -702,6 +706,10 @@ static const struct udevice_id sunxi_mmc_ids[] = { .data = (ulong)&sun4i_a10_variant, }, { + .compatible = "allwinner,sun9i-a80-mmc", + .data = (ulong)&sun9i_a80_variant, + }, + { .compatible = "allwinner,sun50i-a64-mmc", .data = (ulong)&sun4i_a10_variant, }, |