projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7547f78
)
mpc837xerdb: "fix Calling __hwconfig without a buffer" warning
author
Sinan Akman
<sinan@writeme.com>
Wed, 21 Jan 2015 01:47:01 +0000
(20:47 -0500)
committer
Tom Rini
<trini@konsulko.com>
Mon, 2 Mar 2015 20:11:36 +0000
(15:11 -0500)
Signed-off-by: Sinan Akman <sinan@writeme.com>
board/freescale/mpc837xerdb/mpc837xerdb.c
patch
|
blob
|
history
diff --git
a/board/freescale/mpc837xerdb/mpc837xerdb.c
b/board/freescale/mpc837xerdb/mpc837xerdb.c
index e0a10313808d519206eb5b0df1f827973cff4152..565f8157812bd814b51da1048946d28c73000740 100644
(file)
--- a/
board/freescale/mpc837xerdb/mpc837xerdb.c
+++ b/
board/freescale/mpc837xerdb/mpc837xerdb.c
@@
-166,8
+166,13
@@
int board_early_init_f(void)
int board_mmc_init(bd_t *bd)
{
struct immap __iomem *im = (struct immap __iomem *)CONFIG_SYS_IMMR;
+ char buffer[HWCONFIG_BUFFER_SIZE] = {0};
+ int esdhc_hwconfig_enabled = 0;
- if (!hwconfig("esdhc"))
+ if (getenv_f("hwconfig", buffer, sizeof(buffer)) > 0)
+ esdhc_hwconfig_enabled = hwconfig_f("esdhc", buffer);
+
+ if (esdhc_hwconfig_enabled == 0)
return 0;
clrsetbits_be32(&im->sysconf.sicrl, SICRL_USB_B, SICRL_USB_B_SD);