summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sdmmc-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-10-22 00:14:24 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-10-22 00:14:24 +0200
commit151fa30257c426e410293897f946b32d68e24897 (patch)
tree1bc172b784adb240a9a00bcf674d4a489ee218e8 /firmware/target/arm/imx233/sdmmc-imx233.c
parent17851f742ebfcb56705df8b8295f09ff1d07423f (diff)
downloadrockbox-151fa30257c426e410293897f946b32d68e24897.tar.gz
rockbox-151fa30257c426e410293897f946b32d68e24897.tar.bz2
rockbox-151fa30257c426e410293897f946b32d68e24897.zip
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
Diffstat (limited to 'firmware/target/arm/imx233/sdmmc-imx233.c')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index 978e5b7247..7caff7b466 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
@@ -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