Merge branch 'master' of git://git.denx.de/u-boot-fdt
[platform/kernel/u-boot.git] / include / configs / at91sam9rlek.h
index 5bef1fe..a48f2cb 100644 (file)
 #define CONFIG_ATMEL_LCD_RGB565                1
 #define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
 
+/* LED */
+#define CONFIG_AT91_LED
+#define        CONFIG_RED_LED          AT91_PIN_PD14   /* this is the power led */
+#define        CONFIG_GREEN_LED        AT91_PIN_PD15   /* this is the user1 led */
+#define        CONFIG_YELLOW_LED       AT91_PIN_PD16   /* this is the user2 led */
+
 #define CONFIG_BOOTDELAY       3
 
 /*
  */
 #include <config_cmd_default.h>
 #undef CONFIG_CMD_BDI
-#undef CONFIG_CMD_IMI
-#undef CONFIG_CMD_AUTOSCRIPT
 #undef CONFIG_CMD_FPGA
-#undef CONFIG_CMD_LOADS
+#undef CONFIG_CMD_IMI
 #undef CONFIG_CMD_IMLS
+#undef CONFIG_CMD_LOADS
 #undef CONFIG_CMD_NET
+#undef CONFIG_CMD_SOURCE
 #undef CONFIG_CMD_USB
 
 #define CONFIG_CMD_NAND                1
 #define CONFIG_SYS_NO_FLASH                    1
 
 /* NAND flash */
+#ifdef CONFIG_CMD_NAND
+#define CONFIG_NAND_ATMEL
 #define CONFIG_SYS_MAX_NAND_DEVICE             1
 #define CONFIG_SYS_NAND_BASE                   0x40000000
 #define CONFIG_SYS_NAND_DBW_8                  1
+/* our ALE is AD21 */
+#define CONFIG_SYS_NAND_MASK_ALE               (1 << 21)
+/* our CLE is AD22 */
+#define CONFIG_SYS_NAND_MASK_CLE               (1 << 22)
+#define CONFIG_SYS_NAND_ENABLE_PIN             AT91_PIN_PB6
+#define CONFIG_SYS_NAND_READY_PIN              AT91_PIN_PD17
+#endif
 
 /* Ethernet - not present */