diff options
author | John Crispin <john@openwrt.org> | 2010-03-19 11:22:07 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2010-03-19 11:22:07 +0000 |
commit | 51c45acd0ec830580674393d3a5f7002cafbf721 (patch) | |
tree | cdb54a496381bace6e5bd0de75bb50626ed0abc1 /package/uboot-ifxmips/patches | |
parent | a1058204d0ad9e3cd5f46c6adcf6a0cf7b408176 (diff) | |
download | upstream-51c45acd0ec830580674393d3a5f7002cafbf721.tar.gz upstream-51c45acd0ec830580674393d3a5f7002cafbf721.tar.bz2 upstream-51c45acd0ec830580674393d3a5f7002cafbf721.zip |
adds support in uboot for eon flash chips
SVN-Revision: 20298
Diffstat (limited to 'package/uboot-ifxmips/patches')
-rw-r--r-- | package/uboot-ifxmips/patches/120-eon_flash.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/uboot-ifxmips/patches/120-eon_flash.patch b/package/uboot-ifxmips/patches/120-eon_flash.patch new file mode 100644 index 0000000000..0a2624c72b --- /dev/null +++ b/package/uboot-ifxmips/patches/120-eon_flash.patch @@ -0,0 +1,28 @@ +Index: u-boot-1.1.5/board/ifx/danube/flash.c +=================================================================== +--- u-boot-1.1.5.orig/board/ifx/danube/flash.c 2010-03-19 12:12:27.000000000 +0100 ++++ u-boot-1.1.5/board/ifx/danube/flash.c 2010-03-19 12:12:30.000000000 +0100 +@@ -477,7 +477,10 @@ + printf("%s:%s[%d]\n", __FILE__, __func__, __LINE__); + 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: + printf("%s:%s[%d]\n", __FILE__, __func__, __LINE__); + info->flash_id = FLASH_UNKNOWN; +Index: u-boot-1.1.5/include/flash.h +=================================================================== +--- u-boot-1.1.5.orig/include/flash.h 2010-03-19 12:16:23.000000000 +0100 ++++ u-boot-1.1.5/include/flash.h 2010-03-19 12:16:48.000000000 +0100 +@@ -130,6 +130,7 @@ + #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 |