diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-10-15 14:20:59 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 17:11:21 +0400 |
commit | 4b711cb13843f5082e82970dd1e8031383134a65 (patch) | |
tree | 7d893ce601b08ac630a14ecb5c5e7fe854968ba0 /drivers/mmc/host/sdhci-pltfm.h | |
parent | 9ffca8300abe4bd7260b77b2f82afb01384faabc (diff) | |
download | linux-4b711cb13843f5082e82970dd1e8031383134a65.tar.xz |
mmc: sdhci-pltfm: Add structure for host-specific data
We need to carry some information per host, e.g. the clock. Add a
structure for it and initialize it in the generic part. Also improve
the check for a parent.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Richard Röjfors <richard.rojfors.ext@mocean-labs.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pltfm.h')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h index 900f32902f73..93a031973f62 100644 --- a/drivers/mmc/host/sdhci-pltfm.h +++ b/drivers/mmc/host/sdhci-pltfm.h @@ -11,8 +11,15 @@ #ifndef _DRIVERS_MMC_SDHCI_PLTFM_H #define _DRIVERS_MMC_SDHCI_PLTFM_H +#include <linux/clk.h> +#include <linux/types.h> #include <linux/sdhci-pltfm.h> +struct sdhci_pltfm_host { + struct clk *clk; + u32 scratchpad; /* to handle quirks across io-accessor calls */ +}; + extern struct sdhci_pltfm_data sdhci_cns3xxx_pdata; #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */ |