Răsfoiți Sursa

code clean

changed some value to macro and modified some files' attribution

Signed-off-by: Han Xu <b45815@freescale.com>
Han Xu 11 ani în urmă
părinte
comite
c5ce3cef95
2 a modificat fișierele cu 7 adăugiri și 2 ștergeri
  1. 7 2
      arch/arm/lib/board.c
  2. 0 0
      drivers/usb/gadget/arc_otg.h

+ 7 - 2
arch/arm/lib/board.c

@@ -59,6 +59,11 @@
 #include <miiphy.h>
 #endif
 
+#ifdef CONFIG_VF610
+#define VF610_LOWER_BANK_ADDR  0x3F000000
+#define VF610_MALLOC_SIZE      (400<<10)
+#endif
+
 DECLARE_GLOBAL_DATA_PTR;
 
 ulong monitor_flash_len;
@@ -557,8 +562,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
 	/* The Malloc area is immediately below the monitor copy in DRAM */
 	malloc_start = dest_addr - TOTAL_MALLOC_LEN;
 #ifdef CONFIG_VF610
-	malloc_start = 0x3F000000;
-    mem_malloc_init (malloc_start, 400<<10);
+	malloc_start = VF610_LOWER_BANK_ADDR;
+    mem_malloc_init (malloc_start, VF610_MALLOC_SIZE);
 #else
 	malloc_start = dest_addr - TOTAL_MALLOC_LEN;
 	mem_malloc_init (malloc_start, TOTAL_MALLOC_LEN);

+ 0 - 0
drivers/usb/gadget/arc_otg.h