Skip to content

Commit 3afbbe2

Browse files
lategoodbyepopcornmix
authored andcommitted
mmc: sdhci-iproc: Add support for emmc2 of the BCM2838
The emmc2 interface of the BCM2838 should be integrated in sdhci-iproc to avoid code redundancy. Except 32 bit only access no other quirks are known yet. Add an additional compatible string for upstream proposal. Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
1 parent d8ba326 commit 3afbbe2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎drivers/mmc/host/sdhci-iproc.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,18 @@ static const struct sdhci_iproc_data bcm2835_data = {
261261
.mmc_caps = 0x00000000,
262262
};
263263

264+
static const struct sdhci_pltfm_data sdhci_bcm2838_pltfm_data = {
265+
.ops = &sdhci_iproc_32only_ops,
266+
};
267+
268+
static const struct sdhci_iproc_data bcm2838_data = {
269+
.pdata = &sdhci_bcm2838_pltfm_data,
270+
};
271+
264272
static const struct of_device_id sdhci_iproc_of_match[] = {
265273
{ .compatible = "brcm,bcm2835-sdhci", .data = &bcm2835_data },
274+
{ .compatible = "brcm,bcm2838-sdhci", .data = &bcm2838_data },
275+
{ .compatible = "brcm,bcm2711-emmc2", .data = &bcm2838_data },
266276
{ .compatible = "brcm,sdhci-iproc-cygnus", .data = &iproc_cygnus_data},
267277
{ .compatible = "brcm,sdhci-iproc", .data = &iproc_data },
268278
{ }

0 commit comments

Comments
 (0)