]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc: sunxi: Add support for sun8i (A23)
authorChen-Yu Tsai <wens@csie.org>
Wed, 22 Oct 2014 08:47:43 +0000 (16:47 +0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Oct 2014 07:35:39 +0000 (09:35 +0200)
The Allwinner A23 SoC has reset controls like the A31 (sun6i).
The FIFO address is also the same as sun6i.

Re-use code added for sun6i.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/include/asm/arch-sunxi/mmc.h
drivers/mmc/sunxi_mmc.c

index 70d787567c1964e3e4b7668eadf4ebfb5bce8491..8a216740a722e4471f4f39680634fe9db861b354 100644 (file)
@@ -43,7 +43,7 @@ struct sunxi_mmc {
        u32 chda;               /* 0x90 */
        u32 cbda;               /* 0x94 */
        u32 res1[26];
-#if defined(CONFIG_SUN6I)
+#if defined(CONFIG_SUN6I) || defined(CONFIG_SUN8I)
        u32 res2[64];
 #endif
        u32 fifo;               /* 0x100 (0x200 on sun6i) FIFO access address */
index d3b1039cfe9f82b4430f413ead5cd85201402950..16592e3d7cf2454e00013181576dcb0ea437822e 100644 (file)
@@ -75,7 +75,7 @@ static int mmc_clk_io_on(int sdc_no)
        /* config ahb clock */
        setbits_le32(&ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_MMC(sdc_no));
 
-#if defined(CONFIG_SUN6I)
+#if defined(CONFIG_SUN6I) || defined(CONFIG_SUN8I)
        /* unassert reset */
        setbits_le32(&ccm->ahb_reset0_cfg, 1 << AHB_RESET_OFFSET_MMC(sdc_no));
 #endif