summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2015-05-26 11:04:58 -0700
committerStefano Babic <sbabic@denx.de>2015-06-01 09:48:23 +0200
commitc2fd3f57040d4d8e858f0449afe46416cfad95da (patch)
tree97e4f10241281b0769c4becce0c468d75faece16 /board
parentfdead4be6ad29cce17b57e78a0f7e8a488aeba80 (diff)
downloadu-boot-imx-c2fd3f57040d4d8e858f0449afe46416cfad95da.zip
u-boot-imx-c2fd3f57040d4d8e858f0449afe46416cfad95da.tar.gz
u-boot-imx-c2fd3f57040d4d8e858f0449afe46416cfad95da.tar.bz2
imx: ventana: skip mtdparts fixup if no flash
This avoids an error message on NAND-less boards. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board')
-rw-r--r--board/gateworks/gw_ventana/gw_ventana.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 221069f..3b7c82b 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -811,9 +811,11 @@ int ft_board_setup(void *blob, bd_t *bd)
return 0;
}
- /* Update partition nodes using info from mtdparts env var */
- puts(" Updating MTD partitions...\n");
- fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
+ if (test_bit(EECONFIG_NAND, info->config)) {
+ /* Update partition nodes using info from mtdparts env var */
+ puts(" Updating MTD partitions...\n");
+ fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
+ }
/* Update display timings from display env var */
if (display) {