/* * drivers/mmc/host/sdhci-spear.c * * Support of SDHCI platform devices for spear soc family * * Copyright (C) 2010 ST Microelectronics * Viresh Kumar <vireshk@kernel.org> * * Inspired by sdhci-pltfm.c * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied.
*/
ret = clk_prepare_enable(sdhci->clk); if (ret) {
dev_dbg(&pdev->dev, "Error enabling clock\n"); goto err;
}
ret = clk_set_rate(sdhci->clk, 50000000); if (ret)
dev_dbg(&pdev->dev, "Error setting desired clk, clk=%lu\n",
clk_get_rate(sdhci->clk));
/* * It is optional to use GPIOs for sdhci card detection. If we * find a descriptor using slot GPIO, we use it.
*/
ret = mmc_gpiod_request_cd(host->mmc, "cd", 0, false, 0); if (ret == -EPROBE_DEFER) goto disable_clk;
ret = sdhci_add_host(host); if (ret) goto disable_clk;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.