Author: wmb Date: Sat Oct 22 05:39:56 2011 New Revision: 2629 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2629
Log: OLPC XO-1.75 - turn off timer interrupts when entering Linux.
Modified: cpu/arm/mmp2/timer.fth cpu/arm/olpc/1.75/fw.bth
Modified: cpu/arm/mmp2/timer.fth ============================================================================== --- cpu/arm/mmp2/timer.fth Sat Oct 22 05:39:50 2011 (r2628) +++ cpu/arm/mmp2/timer.fth Sat Oct 22 05:39:56 2011 (r2629) @@ -161,6 +161,11 @@ ; ' (set-tick-limit) to set-tick-limit
+: timers-off ( -- ) + 0 timer0-ier! 0 timer1-ier! 0 timer2-ier! \ Disable timer interrupts + 7 timer0-icr! 7 timer1-icr! 7 timer2-icr! \ Clear pending interrupts +; + : can-idle? ( -- flag ) interrupts-enabled? if d# 15 interrupt-enabled?
Modified: cpu/arm/olpc/1.75/fw.bth ============================================================================== --- cpu/arm/olpc/1.75/fw.bth Sat Oct 22 05:39:50 2011 (r2628) +++ cpu/arm/olpc/1.75/fw.bth Sat Oct 22 05:39:56 2011 (r2629) @@ -33,6 +33,7 @@ " /usb" " reset-usb" execute-device-method drop ; : quiesce ( -- ) + timers-off usb-quiet close-ec ;