From: Ryder Lee Date: Mon, 11 Feb 2019 10:52:10 +0800 Subject: [U-Boot] [PATCH 2/6] mmc: mtk-sd: add support for MT8516 In-Reply-To: <20190204105846.26889-3-fparent@baylibre.com> References: <20190204105846.26889-1-fparent@baylibre.com> <20190204105846.26889-3-fparent@baylibre.com> Message-ID: <1549853530.11791.4.camel@mtkswgap22> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2019-02-04 at 11:58 +0100, Fabien Parent wrote: > Add config for handling MT8516 SoC. > > Signed-off-by: Fabien Parent Acked-by: Ryder Lee > --- > drivers/mmc/mtk-sd.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c > index 8573ea7430..9373481f50 100644 > --- a/drivers/mmc/mtk-sd.c > +++ b/drivers/mmc/mtk-sd.c > @@ -1384,8 +1384,18 @@ static const struct msdc_compatible mt7623_compat = { > .enhance_rx = false > }; > > +static const struct msdc_compatible mt8516_compat = { > + .clk_div_bits = 12, > + .pad_tune0 = true, > + .async_fifo = true, > + .data_tune = true, > + .busy_check = true, > + .stop_clk_fix = true, > +}; > + > static const struct udevice_id msdc_ids[] = { > { .compatible = "mediatek,mt7623-mmc", .data = (ulong)&mt7623_compat }, > + { .compatible = "mediatek,mt8516-mmc", .data = (ulong)&mt8516_compat }, > {} > }; >