2 * (C) Copyright 2013 Inc.
4 * Xilinx Zynq SD Host Controller Interface
6 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/arch/sys_proto.h>
14 int zynq_sdhci_init(u32 regbase)
16 struct sdhci_host *host = NULL;
18 host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host));
20 printf("zynq_sdhci_init: sdhci_host malloc fail\n");
24 host->name = "zynq_sdhci";
25 host->ioaddr = (void *)regbase;
26 host->quirks = SDHCI_QUIRK_NO_CD | SDHCI_QUIRK_WAIT_SEND_CMD |
27 SDHCI_QUIRK_BROKEN_R1B;
28 host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
30 host->host_caps = MMC_MODE_HC;
32 add_sdhci(host, 52000000, 52000000 >> 9);