From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Date: Wed, 23 Jan 2019 01:41:58 +0000 Subject: [U-Boot] [PATCH v3 5/9] mmc: sunxi: Add DM_MMC support for H6 In-Reply-To: <20190121103115.17794-6-jagan@amarulasolutions.com> References: <20190121103115.17794-1-jagan@amarulasolutions.com> <20190121103115.17794-6-jagan@amarulasolutions.com> Message-ID: <9ff462d7-addc-9891-3cea-651d257f6d87@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 21/01/2019 10:31, Jagan Teki wrote: > Unlike other Allwinner SoC's, H6 comes with different > clock and reset control offset values. So support them > via driver data. Nit: It's just the mod clock offset we care about here, the rest is already handled by the new clock driver. > > Cc: Jaehoon Chung > Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara Cheers, Andre. > --- > drivers/mmc/sunxi_mmc.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c > index 1259e627cc..1e13a0665d 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 sun50i_h6_variant = { > + .mclk_offset = 0x830, > +}; > + > static const struct udevice_id sunxi_mmc_ids[] = { > { > .compatible = "allwinner,sun4i-a10-mmc", > @@ -705,6 +709,14 @@ static const struct udevice_id sunxi_mmc_ids[] = { > .compatible = "allwinner,sun50i-a64-emmc", > .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 */ } > }; > >