Author: pgf
Date: Mon Jul 30 09:13:00 2012
New Revision: 3094
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3094
Log:
bbedi: clock faster on cl4
Modified:
cpu/arm/olpc/bbedi.fth
Modified: cpu/arm/olpc/bbedi.fth
==============================================================================
--- cpu/arm/olpc/bbedi.fth Mon Jul 30 09:12:55 2012 (r3093)
+++ cpu/arm/olpc/bbedi.fth Mon Jul 30 09:13:00 2012 (r3094)
@@ -106,10 +106,15 @@
begin
ands r3,tos,#0x80 \ Test bit
+[ifdef] olpc-cl4
+ strne r0,[r1,#0x18] \ Set MOSI if bit is non0
+ streq r0,[r1,#0x24] \ Clr MOSI if bit is 0
+[else]
strne r0,[r1,#0x18] \ Set MOSI if bit is non0
strne r0,[r1,#0x18] \ Set MOSI if bit is non0 \ Twice for delay - setup time to CLK
streq r0,[r1,#0x24] \ Clr MOSI if bit is 0
streq r0,[r1,#0x24] \ Clr MOSI if bit is 0 \ Twice for delay - setup time to CLK
+[then]
str r4,[r1,#0x18] \ Set CLK
str r4,[r1,#0x24] \ Clr CLK