summaryrefslogtreecommitdiffstats
path: root/include/mci.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-03-16 08:04:41 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 08:23:18 +0200
commit8aa89eaf2d2453bf63597b508ac22bca33889689 (patch)
tree7a2d465eccaf5fa7b46673b161f29210bed00e22 /include/mci.h
parent04c88ff32c242bb520662b3a2074707c0aaac2c1 (diff)
downloadbarebox-8aa89eaf2d2453bf63597b508ac22bca33889689.tar.gz
barebox-8aa89eaf2d2453bf63597b508ac22bca33889689.tar.xz
mci: Allow parsing for explicit DT node
Convert mci_of_parse into mci_of_parse_node, a function that takes explicit deivce tree node pointer to be used for SD/MMC related properties extraction. Implement original mci_of_parse as a wrapper around the call to new function. This is useful for controllers who specify parameter like bus witdth and GPIOs as a part of main controller's child nodes (e.g. AT91 SoCs). Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> 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 cc4712cfad..781e6e0f36 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -480,6 +480,7 @@ struct mci {
int mci_register(struct mci_host*);
void mci_of_parse(struct mci_host *host);
+void mci_of_parse_node(struct mci_host *host, struct device_node *np);
int mci_detect_card(struct mci_host *);
int mci_send_ext_csd(struct mci *mci, char *ext_csd);
int mci_switch(struct mci *mci, unsigned set, unsigned index,