Changeset 3355


Ignore:
Timestamp:
Oct 10, 2012, 8:12:31 AM (2 years ago)
Author:
quozl
Message:

OLPC - adjust SPI and EC flash animation for larger parts, tested on XO-4

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/1.75/config-a1.fth

    r3118 r3355  
    3030 
    3131char 3 constant expected-ec-version 
    32 h# 10000 value /ec-flash 
     32h# 10000 constant /ec-flash 
     33d#     1 constant ec-scale 
    3334 
    3435h# 10000 constant l2-#sets 
  • cpu/arm/olpc/1.75/config.fth

    r3349 r3355  
    3333char 4 constant expected-ec-version 
    3434h# 8000 constant /ec-flash 
     35d#    0 constant ec-scale 
    3536h# 7e80 constant ec-flags-offset   \ don't program or verify this page 
    3637 
  • cpu/arm/olpc/3.0/config.fth

    r3349 r3355  
    3131 
    3232char 4 constant expected-ec-version 
    33 h# 8000 value /ec-flash 
     33h# 8000 constant /ec-flash 
     34d#    0 constant ec-scale 
    3435 
    3536h# 18000 constant console-uart-base 
  • cpu/arm/olpc/4.0/config.fth

    r3349 r3355  
    3030char 7 constant expected-ec-version 
    3131h# ec00 constant /ec-flash 
     32d#    1 constant ec-scale 
    3233h# eb80 constant ec-flags-offset   \ don't program or verify this page 
    3334 
  • cpu/arm/olpc/cl4/config.fth

    r3349 r3355  
    2929char 7 constant expected-ec-version 
    3030h# ec00 constant /ec-flash 
     31d#    1 constant ec-scale 
    3132h# eb80 constant ec-flags-offset   \ don't program or verify this page 
    3233 
  • cpu/arm/olpc/edi.fth

    r3180 r3355  
    204204         over i +  over i +  edi-program-page  ( adr offset ) 
    205205      then                                     ( adr offset ) 
    206       i edi-progress                           ( adr offset ) 
     206      i ec-scale rshift edi-progress           ( adr offset ) 
    207207   /flash-page +loop                           ( adr offset ) 
    208208   2drop                                       ( ) 
  • dev/olpc/spiflash/spiflash.fth

    r3304 r3355  
    298298\ of them, so it's a good starting point. 
    299299 
    300 : 2mb-flash  ( -- )  h# 20.0000 to /flash  ; 
    301 : 1mb-flash  ( -- )  h# 10.0000 to /flash  ; 
     3000 value flash-scale 
     301: 2mb-flash  ( -- )  h# 20.0000 to /flash  6 to flash-scale  ; 
     302: 1mb-flash  ( -- )  h# 10.0000 to /flash  5 to flash-scale  ; 
    302303 
    3033040 value spi-id# 
  • dev/olpc/spiflash/spiui.fth

    r3327 r3355  
    1212 
    1313: .progress  ( offset -- ) 
    14    5 rshift  dup spi-progress  h# 400 + spi-progress 
     14   flash-scale rshift  dup spi-progress  h# 400 + spi-progress 
    1515; 
    1616 
Note: See TracChangeset for help on using the changeset viewer.