/* called prior to booting kernel or by 'fdt boardsetup' command  */
int ft_board_setup(void *blob, bd_t *bd)
/* called prior to booting kernel or by 'fdt boardsetup' command  */
int ft_board_setup(void *blob, bd_t *bd)
{
	static const struct node_info nodes[] = {
		{ "physmap-flash.0", MTD_DEV_TYPE_NOR, },
		{ "mxc_nand", MTD_DEV_TYPE_NAND, },
	};
	if (env_get("fdt_noauto")) {
		puts("   Skiping ft_board_setup (fdt_noauto defined)\n");
		return 0;
	}
	fdt_fixup_mtdparts(blob, nodes, ARRAY_SIZE(nodes));
	return 0;
}