]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/kup4k/flash.c
* Patches by Udi Finkelstein, 2 June 2003:
[karo-tx-uboot.git] / board / kup4k / flash.c
index 7297c159e0e0d08243c2e11b107ba42767bacecc..619ccb942fcb95cc48e2b9d954e22cc653439483 100644 (file)
@@ -172,6 +172,9 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
        value = value|(value<<16);
 
        switch (value) {
+       case AMD_MANUFACT:
+               info->flash_id = FLASH_MAN_AMD;
+               break;
        case FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
@@ -191,6 +194,16 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
+       case AMD_ID_LV800T:
+               info->flash_id += FLASH_AM800T;
+               info->sector_count = 19;
+               info->size = 0x00200000;
+               break;                          /* => 2 MB              */
+       case AMD_ID_LV800B:
+               info->flash_id += FLASH_AM800B;
+               info->sector_count = 19;
+               info->size = 0x00200000;
+               break;                          /* => 2 MB              */
        default:
                info->flash_id = FLASH_UNKNOWN;
                return (0);                     /* => no or unknown flash */