Changeset 3180
- Timestamp:
- Aug 16, 2012 4:01:14 AM (9 months ago)
- Location:
- cpu/arm/olpc
- Files:
-
- 2 edited
-
build-fw.fth (modified) (1 diff)
-
edi.fth (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/build-fw.fth
r3127 r3180 203 203 : ignore-power-button ( -- ) 204 204 edi-spi-start 205 edi-open-active 205 206 ['] reset-8051 catch if 206 207 ['] reset-8051 catch if ." Write Protected EC" cr then -
cpu/arm/olpc/edi.fth
r3166 r3180 336 336 then 337 337 ; 338 339 \ Does a dummy ready and throws away the result. 340 \ required to get the EDI interface enabled 341 : edi-start ( -- ) 338 \ This is used to start EDI from routines where you do not want to 339 \ put the EC into reset. ie the mfg tag reading routines 340 : edi-open-active ( -- ) 341 spi-start 342 343 \ Does a dummy ready and throws away the result. 344 \ required to get the EDI interface enabled 342 345 h# ff22 ['] edi-b@ catch if noop else drop then 343 ; 344 346 347 set-chip-id 348 349 select-flash 350 ; 351 \ Full EDI startup sequece. Used when you want to reprogram the EC. 345 352 : edi-open ( -- ) 346 \ slow-edi-clock \ Target speed between 1 and 2 MHz 347 spi-start 348 349 edi-start 350 351 set-chip-id 352 353 \ The first operation often fails so retry it 354 ['] select-flash catch if select-flash then 353 edi-open-active 354 355 355 reset-8051 356 356 … … 361 361 trim-tune 362 362 then 363 \ fast-edi-clock \ Target speed up to 16 MHz 364 \ reset 365 ; 366 : edi-open-active ( -- ) 367 spi-start 368 ['] select-flash catch if select-flash then 369 ; 370 363 ; 371 364 \ LICENSE_BEGIN 372 365 \ Copyright (c) 2011 FirmWorks
Note: See TracChangeset
for help on using the changeset viewer.
