From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Date: Sat, 11 Oct 2014 16:54:06 +0100 Subject: [U-Boot] [PATCH 4/9] mmc: sunxi: Add support for sun8i (A23) In-Reply-To: <1412665917-29731-5-git-send-email-wens@csie.org> References: <1412665917-29731-1-git-send-email-wens@csie.org> <1412665917-29731-5-git-send-email-wens@csie.org> Message-ID: <1413042846.11505.39.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2014-10-07 at 15:11 +0800, Chen-Yu Tsai wrote: > 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 Acked-by: Ian Campbell > --- > arch/arm/include/asm/arch-sunxi/mmc.h | 2 +- > drivers/mmc/sunxi_mmc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/include/asm/arch-sunxi/mmc.h b/arch/arm/include/asm/arch-sunxi/mmc.h > index 6a31184..5836ae9 100644 > --- a/arch/arm/include/asm/arch-sunxi/mmc.h > +++ b/arch/arm/include/asm/arch-sunxi/mmc.h > @@ -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 */ > diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c > index 8f4b50b..23a2ec0 100644 > --- a/drivers/mmc/sunxi_mmc.c > +++ b/drivers/mmc/sunxi_mmc.c > @@ -73,7 +73,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