projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
board_r: Detect ifc-nor flash at run-time
[oweals/u-boot.git]
/
common
/
board_r.c
diff --git
a/common/board_r.c
b/common/board_r.c
index 96034b874e560f832a7f1f338b848fa2a850a30e..b04e6ad2a9b52af975d70ac990ca2a89f99b0c12 100644
(file)
--- a/
common/board_r.c
+++ b/
common/board_r.c
@@
-369,11
+369,19
@@
static int initr_binman(void)
}
#if defined(CONFIG_MTD_NOR_FLASH)
+__weak int is_flash_available(void)
+{
+ return 1;
+}
+
static int initr_flash(void)
{
ulong flash_size = 0;
bd_t *bd = gd->bd;
+ if (!is_flash_available())
+ return 0;
+
puts("Flash: ");
if (board_flash_wp_on())