Author: wmb
Date: Thu Aug 30 18:37:19 2012
New Revision: 3251
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3251
Log:
OLPC ARM - RTC - Changed the name of the internal RTC from "/rtc" to "/wakeup-rtc" so existing procedures that use "/rtc" to mean the timekeeping RTC will work. OLPC Trac #12072
Modified:
cpu/arm/mmp2/rtc.fth
Modified: cpu/arm/mmp2/rtc.fth
==============================================================================
--- cpu/arm/mmp2/rtc.fth Thu Aug 30 05:04:15 2012 (r3250)
+++ cpu/arm/mmp2/rtc.fth Thu Aug 30 18:37:19 2012 (r3251)
@@ -2,7 +2,7 @@
purpose: Driver for MMP2 internal RTC
0 0 " d4010000" " /" begin-package
- " rtc" name
+ " wakeup-rtc" name
" mrvl,mmp-rtc" +compatible
my-address my-space h# 1000 reg
Author: quozl
Date: Thu Aug 30 05:04:15 2012
New Revision: 3250
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3250
Log:
OLPC XO-4 - Neonode, first pass at showing touch events graphically, multitouch not supported, X coordinate reflected due to a newly detected layout error that is not expected to be fixed. Not yet tested on IR PCB revision B.
Modified:
cpu/arm/olpc/nn-touchscreen.fth
Modified: cpu/arm/olpc/nn-touchscreen.fth
==============================================================================
--- cpu/arm/olpc/nn-touchscreen.fth Thu Aug 30 01:33:01 2012 (r3249)
+++ cpu/arm/olpc/nn-touchscreen.fth Thu Aug 30 05:04:15 2012 (r3250)
@@ -133,8 +133,10 @@
: stream-poll? ( -- false | x y buttons true )
in? if
+ \ FIXME: only handles one subpacket
pbuf 2+ c@ h# 04 = if
- pbuf 4 + w@ pbuf 6 + w@ ( x y )
+ screen-w pbuf 4 + w@ - ( x )
+ pbuf 6 + w@ ( x y )
pbuf 8 + c@ 3 and 0= ( x y down? )
true ( x y buttons true )
exit
@@ -521,6 +523,16 @@
key drop
;
+: scribble
+ cursor-off
+ background
+ begin
+ stream-poll? if drop dot then
+ key? until
+ cursor-on
+ \ FIXME: tune the event frequency with set scanning frequency request
+;
+
: selftest ( -- error? )
0 to faults
@@ -569,8 +581,7 @@
then
[ifdef] nn-ir-pcb-rev-b
- \ FIXME: graphically show data on screen until key
- \ ... waiting for revision B of IR PCB
+ scribble
[else]
." dumping events from touchscreen controller, press a key to stop" cr
dump-events