mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
5c1214de8c
commit
d23d8d7e06
16 changed files with 39 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue