Author: quozl Date: Tue Sep 4 02:11:44 2012 New Revision: 3278 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3278
Log: OLPC XO-1 - avoid lid close shutdown after warm reboot from Linux, caused by GPIO invert input pin bit left set by Linux, fixes a regression introduced in r2991 ticket #11095, solves ticket #12077
Modified: cpu/x86/pc/olpc/fw.bth
Modified: cpu/x86/pc/olpc/fw.bth ============================================================================== --- cpu/x86/pc/olpc/fw.bth Mon Sep 3 10:41:03 2012 (r3277) +++ cpu/x86/pc/olpc/fw.bth Tue Sep 4 02:11:44 2012 (r3278) @@ -482,7 +482,7 @@
" dhcp" ' ip-address set-config-string-default
-: lid? ( -- flag ) h# 30 >hi gpio@ h# 400 and 0= ; +: lid? ( -- flag ) h# 30 >hi gpio@ h# 24 >hi gpio@ xor h# 400 and 0= ; fload ${BP}/dev/olpc/lid.fth
: c1-idle ( -- ) interrupts-enabled? if halt then do-lid ;