148fe99eb537f434208907ba019a7eea5482e8c2
[openwrt/staging/yousong.git] /
1 From 8433b9112a42c8f7b0fefeac50e2f3ebb3ab956c 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 542/703] 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 { }