Changeset 3086


Ignore:
Timestamp:
Jul 27, 2012, 4:55:18 AM (21 months ago)
Author:
wmb
Message:

OLPC SPIFLASH driver - handle 2 MB parts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dev/olpc/spiflash/spiflash.fth

    r2510 r3086  
    199199   3drop 
    200200; 
     201 
     202: null-write  ( adr len offset -- )  3drop  ; 
    201203 
    202204\ This version is for SST parts, which use an auto-increment 
     
    307309      h# 34  of  ['] common-write  endof 
    308310      h# bf  of  ['] sst-write     endof 
    309       h# 14  of 
    310          ." The SPI FLASH ID reads as 14.  This is due to an infrequent hardware problem."  cr 
    311          ." If you power cycle and try again, it will probably work the next time." cr 
    312          abort 
    313       endof 
    314       ( default )  true abort" Unsupported SPI FLASH ID" 
     311      h# 14  of  ['] common-write  endof      
     312\ On some old board the ID would read as 14 when it should have been something else. 
     313\ On CL4, 14 is the expected ID. 
     314\         ." The SPI FLASH ID reads as 14.  This is due to an infrequent hardware problem."  cr 
     315\         ." If you power cycle and try again, it will probably work the next time." cr 
     316\         abort 
     317\      endof 
     318 
     319\      ( default )  true abort" Unsupported SPI FLASH ID" 
     320       ( default )  ." Bad SPI FLASH ID " dup . cr  ['] null-write swap 
    315321   endcase 
    316322   to write-spi-flash 
     
    327333      spi-id#  case 
    328334         h# 13  of  ." type 13 - Spansion, Winbond, or ST"  endof 
     335         h# 14  of  ." type 14 - 2 MB"  endof 
    329336         h# 34  of  ." type 34 - Macronyx"  endof 
    330337      endcase 
Note: See TracChangeset for help on using the changeset viewer.