/* Called by nand_init_chip to initialize the board specific functions  */
void board_nand_init(void)
/* Called by nand_init_chip to initialize the board specific functions  */
void board_nand_init(void)
{
	struct misc_regs *const misc_regs_p =
		(struct misc_regs *)CONFIG_SPEAR_MISCBASE;
	struct nand_chip *nand = &nand_chip[0];
	if (!(readl(&misc_regs_p->auto_cfg_reg) & MISC_NANDDIS))
		fsmc_nand_init(nand);
}