aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sdhci/sdhci_fsl_fdt.c
diff options
context:
space:
mode:
authorHubert Mazur <hum@semihalf.com>2021-12-07 07:34:26 +0000
committerWojciech Macek <wma@FreeBSD.org>2021-12-08 10:21:02 +0000
commit44a95c49c2d72710ae451c9386139216638141c5 (patch)
tree2596b699a79bf625349fe0f3e6be8d586128bc8e /sys/dev/sdhci/sdhci_fsl_fdt.c
parent8fa952937bbe44a0fdd17348adfbbfd44aef6004 (diff)
downloadsrc-44a95c49c2d72710ae451c9386139216638141c5.tar.gz
src-44a95c49c2d72710ae451c9386139216638141c5.zip
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
Diffstat (limited to 'sys/dev/sdhci/sdhci_fsl_fdt.c')
-rw-r--r--sys/dev/sdhci/sdhci_fsl_fdt.c7
1 files changed, 7 insertions, 0 deletions
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},