#include <common.h>
#include <env.h>
-#include <environment.h>
#include <spl.h>
#include <asm/cache.h>
#include <asm/io.h>
int board_init(void)
{
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
-#if defined(CONFIG_NAND)
+#if defined(CONFIG_MTD_RAW_NAND)
gpmc_init();
#endif
return 0;