summaryrefslogtreecommitdiffstats
path: root/include/mci.h
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2021-06-16 09:39:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-16 09:52:13 +0200
commit2778c17f92fbb5ea2451f62ebdd6a74afc938cb2 (patch)
tree32ae002e478e398aaf26c5fd2c9763993e9b701d /include/mci.h
parent0d1ad596030009864f1a97a5e108f97666ac82a5 (diff)
downloadbarebox-2778c17f92fbb5ea2451f62ebdd6a74afc938cb2.tar.gz
barebox-2778c17f92fbb5ea2451f62ebdd6a74afc938cb2.tar.xz
mci: mci-core: respect disable-wp property
Systems without write-protect pin should ignore the write protect logic and assume that an SD card is always read-write. This is expressed by the disable-wp dt property. Respect the disable-wp property and don't call the write protection check in these cases. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Link: https://lore.barebox.org/20210616073957.1872965-2-m.tretter@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r--include/mci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h
index df2437f618..922aeaecf3 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -406,6 +406,7 @@ struct mci_host {
int use_dsr; /**< optional dsr usage flag */
bool non_removable; /**< device is non removable */
bool no_sd; /**< do not send SD commands during initialization */
+ bool disable_wp; /**< ignore write-protect detection logic */
struct regulator *supply;
/** init the host interface */