diff options
author | Gary King <gking@nvidia.com> | 2009-12-07 18:01:10 -0800 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2009-12-07 21:40:18 -0800 |
commit | 3d75c203e23751cb8201371d82e6236a58a2d2ca (patch) | |
tree | f11f308ec2dd770eda79190a44da5c57481db1e6 /drivers/mmc/host/sdhci.h | |
parent | 4d0aa11e0bd9715b33645abc2bb2c9401e2e6d1b (diff) |
mmc: Add CONFIG_EMBEDDED_MMC_START_OFFSET configuration
enables platforms to specify a non-zero offset for the MBR and kernel-visible
file systems, for embedded systems which store proprietary data at the start
of the eMMC device.
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r-- | drivers/mmc/host/sdhci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 43c37c68d07a..7dea10fb06a8 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -262,12 +262,19 @@ struct sdhci_host { struct timer_list timer; /* Timer for timeouts */ +#ifdef CONFIG_EMBEDDED_MMC_START_OFFSET + unsigned int start_offset; /* Zero-offset for MBR */ +#endif + unsigned long private[0] ____cacheline_aligned; }; struct sdhci_ops { int (*enable_dma)(struct sdhci_host *host); +#ifdef CONFIG_EMBEDDED_MMC_START_OFFSET + unsigned int (*get_startoffset)(struct sdhci_host *host); +#endif }; |