Mercurial > flash_v2
changeset 1480:b657b20a6ea2
Support for STMicro chips
| author | gthomas |
|---|---|
| date | Mon, 26 Jan 2004 23:59:10 +0000 |
| parents | 7f22303e92aa |
| children | ba7fea8efa2f |
| files | packages/devs/flash/intel/strata/current/ChangeLog packages/devs/flash/intel/strata/current/src/strata.c packages/devs/flash/intel/strata/current/src/strata.h |
| diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/flash/intel/strata/current/ChangeLog +++ b/packages/devs/flash/intel/strata/current/ChangeLog @@ -1,3 +1,9 @@ +2005-01-26 Scott Wilkinson <scott@alliantnetworks.com> + * src/strata.h: + * src/strata.c: + Flash from STMicro is compatible with the Intel strata chips, + so detect them as well. Check for manuf id 0x20. + 2003-10-29 Jonathan Larmour <jifl@eCosCentric.com> * src/flash_unlock_block.c (flash_unlock_block): test lock bit
--- a/packages/devs/flash/intel/strata/current/src/strata.c +++ b/packages/devs/flash/intel/strata/current/src/strata.c @@ -74,7 +74,8 @@ flash_hwr_init(void) flash_dev_query(&data); qp = &data; - if ( (qp->manuf_code == FLASH_Intel_code) + if ( ((qp->manuf_code == FLASH_Intel_code) || + (qp->manuf_code == FLASH_STMicro_code)) #ifdef CYGOPT_FLASH_IS_BOOTBLOCK // device types go as follows: 0x90 for 16-bits, 0xD0 for 8-bits, // plus 0 or 1 for -T (Top Boot) or -B (Bottom Boot)
--- a/packages/devs/flash/intel/strata/current/src/strata.h +++ b/packages/devs/flash/intel/strata/current/src/strata.h @@ -156,6 +156,7 @@ // ------------------------------------------------------------------------ #define FLASH_Intel_code 0x89 // NOT mapped to 16+16 +#define FLASH_STMicro_code 0x20 // NOT mapped to 16+16 // Extended query information struct FLASH_query {
