Date: Fri, 14 May 2021 08:53:21 GMT From: Marcin Wojtas <mw@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: ffd61af32cf7 - main - sdhci_fsl_fdt.c: Add support for LS1028a. Message-ID: <202105140853.14E8rLvK017291@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mw: URL: https://cgit.FreeBSD.org/src/commit/?id=ffd61af32cf76f2e59cf11a0242d327f6c24c1f0 commit ffd61af32cf76f2e59cf11a0242d327f6c24c1f0 Author: Marcin Wojtas <mw@FreeBSD.org> AuthorDate: 2021-04-15 13:19:13 +0000 Commit: Marcin Wojtas <mw@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 <lha@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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105140853.14E8rLvK017291>