mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
From 80dd8795ca631ac692fd3079487aea6d934a829c Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Wed, 8 Nov 2023 16:12:59 +0000
|
|
Subject: [PATCH] drivers: mmc: sdhci-of-dwcmshc: add RP1 dt ID and quirks
|
|
|
|
Differentiate the RP1 variant of the Designware MSHC controller(s).
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
drivers/mmc/host/sdhci-of-dwcmshc.c | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
|
|
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
|
|
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
|
|
@@ -373,6 +373,15 @@ static const struct sdhci_pltfm_data sdh
|
|
};
|
|
#endif
|
|
|
|
+static const struct sdhci_pltfm_data sdhci_dwcmshc_rp1_pdata = {
|
|
+ .ops = &sdhci_dwcmshc_ops,
|
|
+ .quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN |
|
|
+ SDHCI_QUIRK_BROKEN_CARD_DETECTION,
|
|
+ .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
|
|
+ SDHCI_QUIRK2_BROKEN_HS200 |
|
|
+ SDHCI_QUIRK2_SPURIOUS_INT_RESP,
|
|
+};
|
|
+
|
|
static const struct sdhci_pltfm_data sdhci_dwcmshc_rk35xx_pdata = {
|
|
.ops = &sdhci_dwcmshc_rk35xx_ops,
|
|
.quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN |
|
|
@@ -441,6 +450,10 @@ static void dwcmshc_rk35xx_postinit(stru
|
|
|
|
static const struct of_device_id sdhci_dwcmshc_dt_ids[] = {
|
|
{
|
|
+ .compatible = "raspberrypi,rp1-dwcmshc",
|
|
+ .data = &sdhci_dwcmshc_rp1_pdata,
|
|
+ },
|
|
+ {
|
|
.compatible = "rockchip,rk3588-dwcmshc",
|
|
.data = &sdhci_dwcmshc_rk35xx_pdata,
|
|
},
|