Author: wmb
Date: Fri Aug 19 07:02:58 2011
New Revision: 2471
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2471
Log:
OLPC XO-1.5 - removed last vestiges of the use of remote-mode for mouse tracking. stream-mode is it from now on.
Modified:
dev/olpc/touchpad/syntpad.fth
dev/olpc/touchpad/touchpad.fth
dev/ps2mouse.fth
Modified: dev/olpc/touchpad/syntpad.fth
==============================================================================
--- dev/olpc/touchpad/syntpad.fth Thu Aug 18 23:13:25 2011 (r2470)
+++ dev/olpc/touchpad/syntpad.fth Fri Aug 19 07:02:58 2011 (r2471)
@@ -43,12 +43,6 @@
stream-mode
;
-\ The normal mouse driver uses remote mode, but this device
-\ doesn't support remote mode, so patch the mouse driver
-\ "open" routine to substitute "start" for "remote-mode".
-
-patch start remote-mode open
-
0 value hw-cursor?
defer move-hw-cursor ( x y -- )
' 2drop to move-hw-cursor
Modified: dev/olpc/touchpad/touchpad.fth
==============================================================================
--- dev/olpc/touchpad/touchpad.fth Thu Aug 18 23:13:25 2011 (r2470)
+++ dev/olpc/touchpad/touchpad.fth Fri Aug 19 07:02:58 2011 (r2471)
@@ -106,15 +106,14 @@
olpc-touchpad? if
0 mode ! advanced-mode stream-on
else
- remote-mode 3 mode !
+ stream-mode 3 mode !
then
;
-\ The normal mouse driver uses remote mode, but this device
-\ doesn't support remote mode, so patch the mouse driver
-\ "open" routine to substitute "noop" for "remote-mode".
+\ Substitute "start" for "stream-mode" in the driver's open
+\ method, so we can use advance-mode for the ALPS touchpad.
-patch start remote-mode open
+patch start stream-mode open
\ I have been unable to get this to work. The response is always
Modified: dev/ps2mouse.fth
==============================================================================
--- dev/ps2mouse.fth Thu Aug 18 23:13:25 2011 (r2470)
+++ dev/ps2mouse.fth Fri Aug 19 07:02:58 2011 (r2471)
@@ -340,7 +340,7 @@
\ Reset the mouse and check the response codes
h# ff read2 0<> swap h# aa <> or if false exit then
- remote-mode
+ stream-mode
then
then
Author: wmb
Date: Thu Aug 18 22:46:27 2011
New Revision: 2469
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2469
Log:
ARM memory test - minor formatting change to align code with x86 version.
Modified:
cpu/arm/memtest.fth
Modified: cpu/arm/memtest.fth
==============================================================================
--- cpu/arm/memtest.fth Thu Aug 18 22:45:29 2011 (r2468)
+++ cpu/arm/memtest.fth Thu Aug 18 22:46:27 2011 (r2469)
@@ -89,6 +89,7 @@
2dup afill mask @ masked-atest
;
+
code random-fill ( adr len data index polynomial -- )
ldmia sp!,{r1,r2,r3,r4} \ tos:poly r1:index r2:data r3:len r4:adr
@@ -159,6 +160,7 @@
mov tos,#0
c;
+
\ Polynomials for maximal length LFSRs for different bit lengths
\ The values come from the Wikipedia article for Linear Feedback Shift Register and from
\ http://www.xilinx.com/support/documentation/application_notes/xapp052.pdf
@@ -206,6 +208,7 @@
defer .lfsr-mem-error
: (.lfsr-mem-error) ( adr len data index remain -- adr len data index remain )
push-hex
+ ??cr
." Error at address " 4 pick 2 pick la+ dup 8 u.r ( adr len data index remain err-adr )
." - expected " 3 pick 8 u.r ( adr len data index remain err-adr )
." got " l@ 8 u.r cr
@@ -232,6 +235,7 @@
repeat ( r: polynomial )
r> drop
;
+
\ Not truly random - uses LFSR sequences
: random-test ( adr len -- error? )
" Random address and data test" show-status