MIPS: qemu-malta: enable flash support
authorGabor Juhos <juhosg@openwrt.org>
Wed, 22 May 2013 03:57:39 +0000 (03:57 +0000)
committerTom Rini <trini@ti.com>
Wed, 24 Jul 2013 13:51:04 +0000 (09:51 -0400)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
arch/mips/include/asm/malta.h
include/configs/qemu-malta.h

index f2bbf0fc255939c56015cca9c75987d8edda7c06..ab951e6b6654f89c8763e460c180af00474f6c27 100644 (file)
@@ -16,4 +16,6 @@
 #define MALTA_RESET_BASE       0x1f000500
 #define GORESET                        0x42
 
+#define MALTA_FLASH_BASE       0x1fc00000
+
 #endif /* _MIPS_ASM_MALTA_H */
index c72c5dd8898c70bb19893a30e73e8f0c940f5f63..436bb4973ba2538458a29f7840fb7324848e4de6 100644 (file)
@@ -34,7 +34,7 @@
  * Memory map
  */
 #define CONFIG_SYS_TEXT_BASE           0xbfc00000 /* Rom version */
-#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
 #define CONFIG_SYS_SDRAM_BASE          0x80000000 /* Cached addr */
 #define CONFIG_SYS_MEM_SIZE            (256 * 1024 * 1024)
 /*
  * Flash configuration
  */
-#define CONFIG_SYS_NO_FLASH
+#define CONFIG_SYS_FLASH_BASE          (KSEG1 | MALTA_FLASH_BASE)
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      128
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_FLASH_CFI_DRIVER
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /*
  * Commands