094c2fae76579471a557525776668a445f03dda1
[openwrt/openwrt.git] /
1 From f17934b2f3f7ccf2d20ff37b7f7b72675b73cfd4 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <wahrenst@gmx.net>
3 Date: Sat, 27 Apr 2019 12:33:57 +0200
4 Subject: [PATCH 536/773] mmc: sdhci-iproc: Add support for emmc2 of the
5 BCM2838
6
7 The emmc2 interface of the BCM2838 should be integrated in sdhci-iproc
8 to avoid code redundancy. Except 32 bit only access no other quirks are
9 known yet. Add an additional compatible string for upstream proposal.
10
11 Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
12 ---
13 drivers/mmc/host/sdhci-iproc.c | 10 ++++++++++
14 1 file changed, 10 insertions(+)
15
16 --- a/drivers/mmc/host/sdhci-iproc.c
17 +++ b/drivers/mmc/host/sdhci-iproc.c
18 @@ -250,8 +250,18 @@ static const struct sdhci_iproc_data bcm
19 .mmc_caps = 0x00000000,
20 };
21
22 +static const struct sdhci_pltfm_data sdhci_bcm2838_pltfm_data = {
23 + .ops = &sdhci_iproc_32only_ops,
24 +};
25 +
26 +static const struct sdhci_iproc_data bcm2838_data = {
27 + .pdata = &sdhci_bcm2838_pltfm_data,
28 +};
29 +
30 static const struct of_device_id sdhci_iproc_of_match[] = {
31 { .compatible = "brcm,bcm2835-sdhci", .data = &bcm2835_data },
32 + { .compatible = "brcm,bcm2838-sdhci", .data = &bcm2838_data },
33 + { .compatible = "brcm,bcm2711-emmc2", .data = &bcm2838_data },
34 { .compatible = "brcm,sdhci-iproc-cygnus", .data = &iproc_cygnus_data},
35 { .compatible = "brcm,sdhci-iproc", .data = &iproc_data },
36 { }