Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sdhci/sdhci_fsl_fdt.c
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | struct sdhci_fsl_fdt_softc { | ||||
void (* write)(struct sdhci_fsl_fdt_softc *, bus_size_t, uint32_t); | void (* write)(struct sdhci_fsl_fdt_softc *, bus_size_t, uint32_t); | ||||
}; | }; | ||||
struct sdhci_fsl_fdt_soc_data { | struct sdhci_fsl_fdt_soc_data { | ||||
int quirks; | int quirks; | ||||
int baseclk_div; | 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 = { | 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, | .quirks = SDHCI_QUIRK_DONT_SET_HISPD_BIT | SDHCI_QUIRK_BROKEN_AUTO_STOP, | ||||
.baseclk_div = 2, | .baseclk_div = 2, | ||||
}; | }; | ||||
static const struct sdhci_fsl_fdt_soc_data sdhci_fsl_fdt_gen_data = { | static const struct sdhci_fsl_fdt_soc_data sdhci_fsl_fdt_gen_data = { | ||||
.quirks = 0, | .quirks = 0, | ||||
.baseclk_div = 1, | .baseclk_div = 1, | ||||
}; | }; | ||||
static const struct ofw_compat_data sdhci_fsl_fdt_compat_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,ls1046a-esdhc", (uintptr_t)&sdhci_fsl_fdt_ls1046a_soc_data}, | ||||
{"fsl,esdhc", (uintptr_t)&sdhci_fsl_fdt_gen_data}, | {"fsl,esdhc", (uintptr_t)&sdhci_fsl_fdt_gen_data}, | ||||
{NULL, 0} | {NULL, 0} | ||||
}; | }; | ||||
static uint32_t | static uint32_t | ||||
read_be(struct sdhci_fsl_fdt_softc *sc, bus_size_t off) | read_be(struct sdhci_fsl_fdt_softc *sc, bus_size_t off) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines |