forked from len0rd/rockbox
imx233/sdmmc: add write protect pin config
The setting is currently unused but it provides some documentation and basic support for a more comprehensive implementation of read-only support. Change-Id: I353c33ef765ef6e6c09d59e943da6654a311ad84
This commit is contained in:
parent
17851f742e
commit
151fa30257
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,7 @@ struct sdmmc_config_t
|
|||
int flags; /* flags */
|
||||
int power_pin; /* power pin */
|
||||
int power_delay; /* extra power up delay */
|
||||
int wp_pin; /* write protect pin */
|
||||
int ssp; /* associated ssp block */
|
||||
int mode; /* mode (SD vs MMC) */
|
||||
};
|
||||
|
@ -70,6 +71,8 @@ struct sdmmc_config_t
|
|||
#define DETECT_INVERTED (1 << 3)
|
||||
#define POWER_DELAY (1 << 4)
|
||||
#define WINDOW (1 << 5)
|
||||
#define WP_PIN (1 << 6)
|
||||
#define WP_INVERTED (1 << 7)
|
||||
|
||||
/* modes */
|
||||
#define SD_MODE 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue