[openfirmware] r1374 - cpu/x86/pc/olpc/via dev/olpc/kb3700
svn at openfirmware.info
svn at openfirmware.info
Thu Sep 24 08:10:34 CEST 2009
Author: wmb
Date: 2009-09-24 08:10:34 +0200 (Thu, 24 Sep 2009)
New Revision: 1374
Modified:
cpu/x86/pc/olpc/via/devices.fth
dev/olpc/kb3700/ecio.fth
Log:
Via - added uncache-flash so edits to manufacturing data are stable.
Modified: cpu/x86/pc/olpc/via/devices.fth
===================================================================
--- cpu/x86/pc/olpc/via/devices.fth 2009-09-24 06:09:14 UTC (rev 1373)
+++ cpu/x86/pc/olpc/via/devices.fth 2009-09-24 06:10:34 UTC (rev 1374)
@@ -216,6 +216,8 @@
: stand-init-io stand-init-io h# fff0.0000 to flash-base ;
warning !
+: uncache-flash ( -- ) h# 202 msr@ h# ff invert and h# 202 msr! ;
+
fload ${BP}/dev/olpc/spiflash/spiif.fth \ Generic low-level SPI bus access
fload ${BP}/dev/olpc/spiflash/spiflash.fth \ SPI FLASH programming
fload ${BP}/dev/olpc/kb3700/ecspi.fth \ EC chip SPI FLASH access
Modified: dev/olpc/kb3700/ecio.fth
===================================================================
--- dev/olpc/kb3700/ecio.fth 2009-09-24 06:09:14 UTC (rev 1373)
+++ dev/olpc/kb3700/ecio.fth 2009-09-24 06:10:34 UTC (rev 1374)
@@ -311,6 +311,7 @@
['] io-spi-reprogrammed to spi-reprogrammed
use-mem-flash-read
+ [ifdef] uncache-flash uncache-flash [then]
7 to spi-us \ Measured time for "1 fea9 ec!" is 7.9 uS
More information about the openfirmware
mailing list