2 * (C) Copyright 2013 Faraday Technology
3 * Kuo-Jung Su <dantesu@faraday-tech.com>
5 * SPDX-License-Identifier: GPL-2.0+
12 #ifndef CONFIG_FTSDC021_CLOCK
13 #define CONFIG_FTSDC021_CLOCK clk_get_rate("MMC")
16 int ftsdc021_sdhci_init(u32 regbase)
18 struct sdhci_host *host = NULL;
19 uint32_t freq = CONFIG_FTSDC021_CLOCK;
21 host = calloc(1, sizeof(struct sdhci_host));
23 puts("sdh_host malloc fail!\n");
27 host->name = "FTSDC021";
28 host->ioaddr = (void __iomem *)regbase;
30 add_sdhci(host, freq, 0);