The branch main has been updated by mw:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ffd61af32cf76f2e59cf11a0242d327f6c24c1f0

commit ffd61af32cf76f2e59cf11a0242d327f6c24c1f0
Author:     Marcin Wojtas <m...@freebsd.org>
AuthorDate: 2021-04-15 13:19:13 +0000
Commit:     Marcin Wojtas <m...@freebsd.org>
CommitDate: 2021-05-14 08:28:09 +0000

    sdhci_fsl_fdt.c: Add support for LS1028a.
    
    Add data specific for SoC, including all necessary quirks.
    
    Submitted by: Lukasz Hajec <l...@semihalf.com>
    Reviewed by: manu
    Obtained from: Semihalf
    Sponsored by: Alstom Group
    Differential Revision: https://reviews.freebsd.org/D30121
---
 sys/dev/sdhci/sdhci_fsl_fdt.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/dev/sdhci/sdhci_fsl_fdt.c b/sys/dev/sdhci/sdhci_fsl_fdt.c
index 167c28b60ca0..695176a17218 100644
--- a/sys/dev/sdhci/sdhci_fsl_fdt.c
+++ b/sys/dev/sdhci/sdhci_fsl_fdt.c
@@ -111,6 +111,12 @@ struct sdhci_fsl_fdt_soc_data {
        int baseclk_div;
 };
 
+static const struct sdhci_fsl_fdt_soc_data sdhci_fsl_fdt_ls1028a_soc_data = {
+       .quirks = SDHCI_QUIRK_DONT_SET_HISPD_BIT |
+           SDHCI_QUIRK_BROKEN_AUTO_STOP | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,
+       .baseclk_div = 2,
+};
+
 static const struct sdhci_fsl_fdt_soc_data sdhci_fsl_fdt_ls1046a_soc_data = {
        .quirks = SDHCI_QUIRK_DONT_SET_HISPD_BIT | SDHCI_QUIRK_BROKEN_AUTO_STOP,
        .baseclk_div = 2,
@@ -122,6 +128,7 @@ static const struct sdhci_fsl_fdt_soc_data 
sdhci_fsl_fdt_gen_data = {
 };
 
 static const struct ofw_compat_data sdhci_fsl_fdt_compat_data[] = {
+       {"fsl,ls1028a-esdhc",   (uintptr_t)&sdhci_fsl_fdt_ls1028a_soc_data},
        {"fsl,ls1046a-esdhc",   (uintptr_t)&sdhci_fsl_fdt_ls1046a_soc_data},
        {"fsl,esdhc",           (uintptr_t)&sdhci_fsl_fdt_gen_data},
        {NULL,                  0}
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to