********************************************************/
int misc_init_r(void)
{
+#ifdef CONFIG_MMC
/* REMOVE!! for proto boards only */
/* set vaux2 to 2.8V */
unsigned char byte = 0x20;
i2c_write(0x4B, 0x79, 1, &byte, 1);
udelay(5000);
-
+#endif
return 0;
}
static int init_func_i2c (void)
{
+#ifdef CONFIG_MMC
i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+#endif
return 0;
}
print_info,
#endif
nand_init, /* board specific nand init */
+#ifdef CONFIG_MMC
init_func_i2c,
+#endif
NULL,
};
#endif
buf += size;
}
-#endif
}
+#endif
if (buf == (uchar *)CFG_LOADADDR) {
/* if no u-boot on mmc, try onenand or nand, depending upon sysboot */
if (!onenand_read_block(buf, i))
buf += ONENAND_BLOCK_SIZE;
}
- }
-
- if (get_mem_type() == GPMC_NAND){
+ } else if (get_mem_type() == GPMC_NAND){
#ifdef CFG_PRINTF
printf("Booting from nand\n");
#endif