Author: quozl Date: Fri Sep 21 00:11:33 2012 New Revision: 3319 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3319
Log: OLPC XO-4 - Neonode, add support for numeric version comparisons in manufacturing scripts
Modified: cpu/arm/olpc/nn-touchscreen.fth
Modified: cpu/arm/olpc/nn-touchscreen.fth ============================================================================== --- cpu/arm/olpc/nn-touchscreen.fth Wed Sep 19 09:24:54 2012 (r3318) +++ cpu/arm/olpc/nn-touchscreen.fth Fri Sep 21 00:11:33 2012 (r3319) @@ -202,8 +202,7 @@ (.) type ;
-: .version ( addr -- ) - pbuf 2+ c@ h# 1e <> abort" bad response" +: .version ( -- ) pbuf 3 + 3 0 do ( addr ) (.version) 2+ [char] . emit @@ -214,6 +213,7 @@ : (version) ( -- ) h# 1e h# 01 h# ee 3 bytes-out h# 1e d# 30 anticipate + pbuf 2+ c@ h# 1e <> abort" bad response" ;
: test-version ( -- ) @@ -223,6 +223,11 @@ cr ;
+: get-version ( -- version.d ) + (version) + pbuf 9 + le-w@ pbuf 7 + le-w@ wljoin pbuf 5 + le-w@ pbuf 3 + le-w@ wljoin +; + [then]