Merge git://git.denx.de/u-boot-sh
[oweals/u-boot.git] / board / ti / am335x / board.c
index 499c872227b177b702527f0e006db57d67469261..3d7f73843c94e896e481a2a5fe3e7f79f99cf6b8 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <init.h>
 #include <spl.h>
 #include <serial.h>
 #include <asm/arch/cpu.h>
@@ -709,7 +710,7 @@ int board_init(void)
 #endif
 
        gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
-#if defined(CONFIG_NOR) || defined(CONFIG_NAND)
+#if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
        gpmc_init();
 #endif