diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-10-15 06:20:59 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 09:11:21 -0400 |
commit | 4b711cb13843f5082e82970dd1e8031383134a65 (patch) | |
tree | 7d893ce601b08ac630a14ecb5c5e7fe854968ba0 /drivers/mmc/host/sdhci-pltfm.h | |
parent | 9ffca8300abe4bd7260b77b2f82afb01384faabc (diff) |
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 @@ | |||
11 | #ifndef _DRIVERS_MMC_SDHCI_PLTFM_H | 11 | #ifndef _DRIVERS_MMC_SDHCI_PLTFM_H |
12 | #define _DRIVERS_MMC_SDHCI_PLTFM_H | 12 | #define _DRIVERS_MMC_SDHCI_PLTFM_H |
13 | 13 | ||
14 | #include <linux/clk.h> | ||
15 | #include <linux/types.h> | ||
14 | #include <linux/sdhci-pltfm.h> | 16 | #include <linux/sdhci-pltfm.h> |
15 | 17 | ||
18 | struct sdhci_pltfm_host { | ||
19 | struct clk *clk; | ||
20 | u32 scratchpad; /* to handle quirks across io-accessor calls */ | ||
21 | }; | ||
22 | |||
16 | extern struct sdhci_pltfm_data sdhci_cns3xxx_pdata; | 23 | extern struct sdhci_pltfm_data sdhci_cns3xxx_pdata; |
17 | 24 | ||
18 | #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */ | 25 | #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */ |