summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-imx
diff options
context:
space:
mode:
authorPavel Pisa <ppisa4lists@pikron.com>2007-09-23 22:59:01 +0200
committerPierre Ossman <drzeus@drzeus.cx>2007-09-24 19:33:14 +0200
commitfaf39ede5e6325d3e91b6e4e0017d27fbecb6022 (patch)
tree52c99935cda486c982f1ff6c238ceb12b7601498 /include/asm-arm/arch-imx
parentaf8350c756cb48a738474738f7bf8c0e572fa057 (diff)
arm: i.MX/MX1 SDHC implements SD cards read-only switch read-back
The patch enables to define MMC host get_ro() method through platform data. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/asm-arm/arch-imx')
-rw-r--r--include/asm-arm/arch-imx/mmc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-arm/arch-imx/mmc.h b/include/asm-arm/arch-imx/mmc.h
index 84c726934ace..4712f354dcca 100644
--- a/include/asm-arm/arch-imx/mmc.h
+++ b/include/asm-arm/arch-imx/mmc.h
@@ -3,8 +3,11 @@
#include <linux/mmc/host.h>
+struct device;
+
struct imxmmc_platform_data {
- int (*card_present)(void);
+ int (*card_present)(struct device *);
+ int (*get_ro)(struct device *);
};
extern void imx_set_mmc_info(struct imxmmc_platform_data *info);