Skip to content
Snippets Groups Projects
Commit c2fd3f57 authored by Tim Harvey's avatar Tim Harvey Committed by Stefano Babic
Browse files

imx: ventana: skip mtdparts fixup if no flash


This avoids an error message on NAND-less boards.

Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
parent fdead4be
No related branches found
No related tags found
No related merge requests found
...@@ -811,9 +811,11 @@ int ft_board_setup(void *blob, bd_t *bd) ...@@ -811,9 +811,11 @@ int ft_board_setup(void *blob, bd_t *bd)
return 0; return 0;
} }
/* Update partition nodes using info from mtdparts env var */ if (test_bit(EECONFIG_NAND, info->config)) {
puts(" Updating MTD partitions...\n"); /* Update partition nodes using info from mtdparts env var */
fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes)); puts(" Updating MTD partitions...\n");
fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
}
/* Update display timings from display env var */ /* Update display timings from display env var */
if (display) { if (display) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment