From: Sandeep Paulraj Date: Wed, 9 Sep 2009 19:26:00 +0000 (-0400) Subject: TI DaVinci: DM6446: Fix Compilation error in NAND mode X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~202 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=418e5f435c40d673a3fef6883f202266cc111fbe;p=u-boot TI DaVinci: DM6446: Fix Compilation error in NAND mode The Default mode that is built for the Davinci DVEVM happens to be the NOR mode. When we want to build for the NAND mode, we get a compilation error. This is overcome by defining the CONFIG_MTD_DEVICE flag in the NAND mode. The image built for NAND mode was successfully tested on the DaVinci DM6446 EVM. Signed-off-by: Sandeep Paulraj --- diff --git a/include/configs/davinci_dvevm.h b/include/configs/davinci_dvevm.h index af669bcb8e..f7d23990c4 100644 --- a/include/configs/davinci_dvevm.h +++ b/include/configs/davinci_dvevm.h @@ -121,6 +121,7 @@ #define CONFIG_ENV_SECT_SIZE 512 /* Env sector Size */ #define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */ #define CONFIG_MTD_PARTITIONS +#define CONFIG_MTD_DEVICE #define CONFIG_CMD_MTDPARTS #define MTDIDS_DEFAULT \ "nand0=davinci_nand.0"