git: 44a95c49c2d7 - main - sdhci_fsl_fdt: Add LS1012A compat string
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Dec 2021 10:21:32 UTC
The branch main has been updated by wma:
URL: https://cgit.FreeBSD.org/src/commit/?id=44a95c49c2d72710ae451c9386139216638141c5
commit 44a95c49c2d72710ae451c9386139216638141c5
Author: Hubert Mazur <hum@semihalf.com>
AuthorDate: 2021-12-07 07:34:26 +0000
Commit: Wojciech Macek <wma@FreeBSD.org>
CommitDate: 2021-12-08 10:21:02 +0000
sdhci_fsl_fdt: Add LS1012A compat string
Add compat string for LS1012A board and fill SoC specific
structure data.
Reviewed by: manu, mw
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D33318
---
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 af89cd344b0a..2d6c7115ff1e 100644
--- a/sys/dev/sdhci/sdhci_fsl_fdt.c
+++ b/sys/dev/sdhci/sdhci_fsl_fdt.c
@@ -129,6 +129,12 @@ struct sdhci_fsl_fdt_soc_data {
uint8_t errata;
};
+static const struct sdhci_fsl_fdt_soc_data sdhci_fsl_fdt_ls1012a_soc_data = {
+ .quirks = 0,
+ .baseclk_div = 1,
+ .errata = 0
+};
+
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,
@@ -147,6 +153,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,ls1012a-esdhc", (uintptr_t)&sdhci_fsl_fdt_ls1012a_soc_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},