| * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com. |
| * SPDX-License-Identifier: GPL-2.0+ |
| int spear_sdhci_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks) |
| struct sdhci_host *host = NULL; |
| host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host)); |
| printf("sdhci host malloc fail!\n"); |
| host->ioaddr = (void *)regbase; |
| if (quirks & SDHCI_QUIRK_REG32_RW) |
| host->version = sdhci_readl(host, SDHCI_HOST_VERSION - 2) >> 16; |
| host->version = sdhci_readw(host, SDHCI_HOST_VERSION); |
| add_sdhci(host, max_clk, min_clk); |