16 #include <linux/device.h>
18 #include <linux/module.h>
22 static unsigned int sdhci_cns3xxx_get_max_clk(
struct sdhci_host *
host)
34 if (clock == host->
clock)
42 while (host->
max_clk / div > clock) {
55 dev_dbg(dev,
"desired SD clock: %d, actual: %d\n",
83 static struct sdhci_ops sdhci_cns3xxx_ops = {
84 .get_max_clock = sdhci_cns3xxx_get_max_clk,
85 .set_clock = sdhci_cns3xxx_set_clock,
89 .ops = &sdhci_cns3xxx_ops,
110 .name =
"sdhci-cns3xxx",
114 .probe = sdhci_cns3xxx_probe,