mirror of https://github.com/hak5/openwrt-owl.git
25 lines
841 B
Diff
25 lines
841 B
Diff
--- 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
|