Author: wmb Date: Wed Oct 12 03:40:18 2011 New Revision: 2595 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2595
Log: OLPC XO-1.75 - Minor cleanups in accelerometer driver.
Modified: cpu/arm/olpc/1.75/accelerometer.fth
Modified: cpu/arm/olpc/1.75/accelerometer.fth ============================================================================== --- cpu/arm/olpc/1.75/accelerometer.fth Wed Oct 12 02:48:03 2011 (r2594) +++ cpu/arm/olpc/1.75/accelerometer.fth Wed Oct 12 03:40:18 2011 (r2595) @@ -8,7 +8,6 @@ \ This is for the stand-alone accelerometer chip LIS33DETR
\ We could call this just once in open if we had a TWSI parent node -: set-address ( -- ) h# 3a 6 set-twsi-target ; : acc-reg@ ( reg# -- b ) 1 1 " smbus-out-in" $call-parent ; : acc-reg! ( b reg# -- ) 2 0 " smbus-out-in" $call-parent ; : ctl1! ( b -- ) h# 20 acc-reg! ; @@ -46,7 +45,7 @@
: delay ( -- ) d# 30 ms ; : open ( -- flag ) - my-address my-space " set-address" $call-parent + my-unit " set-address" $call-parent d# 25,000 " set-bus-speed" $call-parent ['] accelerometer-on catch 0= ;
openfirmware@openfirmware.info