summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2012-12-03 02:19:46 +0000
committerTom Rini <trini@ti.com>2013-03-08 16:41:13 -0500
commitd23d8d7e069c3aca071b7f68d9c15d11f8d4c84d (patch)
tree936923cdc7450422639747e99a83e5ce9843198a /include
parent5c1214de8c7b8b3e807ec09508e653580872e599 (diff)
downloadu-boot-imx-d23d8d7e069c3aca071b7f68d9c15d11f8d4c84d.zip
u-boot-imx-d23d8d7e069c3aca071b7f68d9c15d11f8d4c84d.tar.gz
u-boot-imx-d23d8d7e069c3aca071b7f68d9c15d11f8d4c84d.tar.bz2
mmc: add support for write protection
Add generic mmc write protection functionality. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include')
-rw-r--r--include/mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index a13e2bd..de6d497 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -259,6 +259,7 @@ struct mmc {
void (*set_ios)(struct mmc *mmc);
int (*init)(struct mmc *mmc);
int (*getcd)(struct mmc *mmc);
+ int (*getwp)(struct mmc *mmc);
uint b_max;
};
@@ -274,6 +275,7 @@ int get_mmc_num(void);
int board_mmc_getcd(struct mmc *mmc);
int mmc_switch_part(int dev_num, unsigned int part_num);
int mmc_getcd(struct mmc *mmc);
+int mmc_getwp(struct mmc *mmc);
void spl_mmc_load(void) __noreturn;
#ifdef CONFIG_GENERIC_MMC