[openfirmware] r1409 - cpu/x86/pc/olpc/via
svn at openfirmware.info
svn at openfirmware.info
Fri Oct 9 22:23:36 CEST 2009
Author: wmb
Date: 2009-10-09 22:23:36 +0200 (Fri, 09 Oct 2009)
New Revision: 1409
Modified:
cpu/x86/pc/olpc/via/startcominit.fth
Log:
Via - Checkpoint startcominit.fth in preparation for revamping the
board type detection to use the EC's new fast-ID command.
Modified: cpu/x86/pc/olpc/via/startcominit.fth
===================================================================
--- cpu/x86/pc/olpc/via/startcominit.fth 2009-10-09 00:16:02 UTC (rev 1408)
+++ cpu/x86/pc/olpc/via/startcominit.fth 2009-10-09 20:23:36 UTC (rev 1409)
@@ -55,7 +55,13 @@
\ Wait until RTC PSON Gating is complete. See PG_VX855_VX875_092 page 139 (pdf page 160)
\ This takes about 48 mS in the power-on case, and is almost instantaneous in the
\ resume-from-S3 case due to the clearing of D17F0 Rx81[2] above.
- begin 8882 config-rb h# 40 # al and 0<> until
+ cx cx xor
+ begin cx inc 8882 config-rb h# 40 # al and 0<> until
+ cl al mov
+ h# 88 # al mov al h# 74 # out cl al mov al h# 75 # out
+ h# 89 # al mov al h# 74 # out ch al mov al h# 75 # out
+ d# 16 # cx shr
+ h# 8a # al mov al h# 74 # out cl al mov al h# 75 # out
\ As an optimization to avoid long waits for the EC to respond, read the board ID
\ that is cached in CMOS RAM.
More information about the openfirmware
mailing list