summaryrefslogtreecommitdiffstats
path: root/package/uboot-ifxmips/patches/120-eon_flash.patch
blob: 0b0da3c69b71ff486291088f455eda905a323029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/board/ifx/danube/flash.c
+++ b/board/ifx/danube/flash.c
@@ -470,7 +470,10 @@ ulong flash_get_size (FPWV *addr, flash_
 	case (uchar)MX_MANUFACT:		// 0x00c2
 		info->flash_id = FLASH_MAN_MX ;//0x00030000
 		break;
-		
+	case (uchar)EON_MANUFACT:
+		printf("%s:%s[%d]\n", __FILE__, __func__, __LINE__);
+		info->flash_id = FLASH_MAN_AMD ;
+		break;
 	default:
 		info->flash_id = FLASH_UNKNOWN;
 		info->sector_count = 0;
--- a/include/flash.h
+++ b/include/flash.h
@@ -130,6 +130,7 @@ extern void flash_read_factory_serial(fl
 #define TOSH_MANUFACT	0x00980098	/* TOSHIBA manuf. ID in D23..D16, D7..D0 */
 #define MT2_MANUFACT	0x002C002C	/* alternate MICRON manufacturer ID*/
 #define EXCEL_MANUFACT	0x004A004A	/* Excel Semiconductor			*/
+#define EON_MANUFACT	0x0000007F
 
 #define	EON_ID_EN29LV320B 0x22f9
 #define FLASH_29LV320B	0xE0