xsengine: Fix no partition type specified, use DOS as default
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 19 Oct 2007 04:33:45 +0000 (06:33 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 23 Oct 2007 22:29:00 +0000 (00:29 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
board/xsengine/flash.c
include/configs/xsengine.h

index 2b9afc7a77bcfcac7063d2b7779291015a67b2ad..a188e244089e0e1a71e5e5c35ed40498fe324610 100644 (file)
@@ -46,11 +46,11 @@ unsigned long flash_init (void)
        for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
-                       flash_get_size ((long *) PHYS_FLASH_1, &flash_info[i]);
+                       flash_get_size ((vu_long *) PHYS_FLASH_1, &flash_info[i]);
                        flash_get_offsets (PHYS_FLASH_1, &flash_info[i]);
                        break;
                case 1:
-                       flash_get_size ((long *) PHYS_FLASH_2, &flash_info[i]);
+                       flash_get_size ((vu_long *) PHYS_FLASH_2, &flash_info[i]);
                        flash_get_offsets (PHYS_FLASH_2, &flash_info[i]);
                        break;
                default:
index 5733933d616906d697979a36cc71b915402d7114..766617e075311b98986e463d7ddd49683d283b00 100644 (file)
@@ -32,6 +32,7 @@
 #define CONFIG_PXA250                  1               /* This is an PXA250 CPU    */
 #define CONFIG_XSENGINE                        1
 #define CONFIG_MMC                     1
+#define CONFIG_DOS_PARTITION           1
 #define BOARD_POST_INIT                        1
 #undef  CONFIG_USE_IRQ                                 /* we don't need IRQ/FIQ stuff */
 #define CFG_HZ                         3686400         /* incrementer freq: 3.6864 MHz */