Correction patch
[oweals/u-boot.git] / board / genietv / flash.c
index 2314a53e7367d412a5afa7dd10d771352981c829..1c1728bb4986f7fb2493e609b05881b7ada6da04 100644 (file)
@@ -55,7 +55,7 @@ unsigned long flash_init (void)
        /* Monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
                      CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+                     CFG_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -188,12 +188,11 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 #endif
        switch (value)
        {
-               case 0x01:
-               case AMD_MANUFACT:
+               case 0x1: /* AMD_MANUFACT */
                        info->flash_id = FLASH_MAN_AMD;
                break;
 
-               case FUJ_MANUFACT:
+               case 0x4: /* FUJ_MANUFACT */
                        info->flash_id = FLASH_MAN_FUJ;
                break;