sdhci-pltfm.c (e29371d762df5bb35d2bc434ea266a046e5a0a75) | sdhci-pltfm.c (d005d94359a8df84ea6e5ac137393707f9e87e81) |
---|---|
1/* 2 * sdhci-pltfm.c Support for SDHCI platform devices 3 * Copyright (c) 2009 Intel Corporation 4 * 5 * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc. 6 * Copyright (c) 2009 MontaVista Software, Inc. 7 * 8 * Authors: Xiaobo Xie <X.Xie@freescale.com> --- 22 unchanged lines hidden (view full) --- 31#include <linux/err.h> 32#include <linux/module.h> 33#include <linux/of.h> 34#ifdef CONFIG_PPC 35#include <asm/machdep.h> 36#endif 37#include "sdhci-pltfm.h" 38 | 1/* 2 * sdhci-pltfm.c Support for SDHCI platform devices 3 * Copyright (c) 2009 Intel Corporation 4 * 5 * Copyright (c) 2007, 2011 Freescale Semiconductor, Inc. 6 * Copyright (c) 2009 MontaVista Software, Inc. 7 * 8 * Authors: Xiaobo Xie <X.Xie@freescale.com> --- 22 unchanged lines hidden (view full) --- 31#include <linux/err.h> 32#include <linux/module.h> 33#include <linux/of.h> 34#ifdef CONFIG_PPC 35#include <asm/machdep.h> 36#endif 37#include "sdhci-pltfm.h" 38 |
39unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host) 40{ 41 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 42 43 return clk_get_rate(pltfm_host->clk); 44} 45EXPORT_SYMBOL_GPL(sdhci_pltfm_clk_get_max_clock); 46 |
|
39static struct sdhci_ops sdhci_pltfm_ops = { 40}; 41 42#ifdef CONFIG_OF 43static bool sdhci_of_wp_inverted(struct device_node *np) 44{ 45 if (of_get_property(np, "sdhci,wp-inverted", NULL) || 46 of_get_property(np, "wp-inverted", NULL)) --- 218 unchanged lines hidden --- | 47static struct sdhci_ops sdhci_pltfm_ops = { 48}; 49 50#ifdef CONFIG_OF 51static bool sdhci_of_wp_inverted(struct device_node *np) 52{ 53 if (of_get_property(np, "sdhci,wp-inverted", NULL) || 54 of_get_property(np, "wp-inverted", NULL)) --- 218 unchanged lines hidden --- |