projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872faf5
)
api: Define a default mmc max device
author
Emmanuel Vadot
<manu@bidouilliste.com>
Tue, 20 Jun 2017 06:09:40 +0000
(08:09 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 23 Jun 2017 14:38:06 +0000
(10:38 -0400)
Define a default number of 1 for mmc max device if board config didn't
specify one.
Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
api/api_storage.c
patch
|
blob
|
history
diff --git
a/api/api_storage.c
b/api/api_storage.c
index f858f09f1a0eabfefcb35a2d038fffa9a106b700..8bed2f3c91fd37a400c793d03cfae4d0669a3373 100644
(file)
--- a/
api/api_storage.c
+++ b/
api/api_storage.c
@@
-43,6
+43,9
@@
struct stor_spec {
static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, NULL }, };
+#ifndef CONFIG_SYS_MMC_MAX_DEVICE
+#define CONFIG_SYS_MMC_MAX_DEVICE 1
+#endif
void dev_stor_init(void)
{