Author: quozl
Date: Mon Oct 31 10:10:14 2011
New Revision: 2658
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2658
Log:
OLPC XO-1.75 C1 - accelerometer, use 100 kHz SCL rate now that SDA and SCL pullups are present, continue to use 25 kHz SCL rate for older devices. #11367.
Modified:
cpu/arm/olpc/1.75/accelerometer.fth
Modified: cpu/arm/olpc/1.75/accelerometer.fth
==============================================================================
--- cpu/arm/olpc/1.75/accelerometer.fth Fri Oct 28 04:46:45 2011 (r2657)
+++ cpu/arm/olpc/1.75/accelerometer.fth Mon Oct 31 10:10:14 2011 (r2658)
@@ -298,9 +298,10 @@
;
: delay ( -- ) d# 30 ms ;
+d# 25,000 value bus-speed
: open ( -- flag )
my-unit " set-address" $call-parent
- d# 25,000 " set-bus-speed" $call-parent
+ bus-speed " set-bus-speed" $call-parent
['] accelerometer-on catch 0=
;
: close ( -- )
@@ -389,10 +390,11 @@
: probe ( -- )
h# 3a 6 " set-address" $call-parent
- d# 25,000 " set-bus-speed" $call-parent
+ d# 25,000 " set-bus-speed" $call-parent \ XO-1.75 B1 lacks pullups SCL SDA
['] accelerometer-on catch if
\ The attempt to talk at the old address failed, so we assume the new chip
\ Support for new LIS3DHTR chip
+ d# 100,000 to bus-speed
d# 50 to min-x d# 50 to min-y d# 50 to min-z
d# 150 to max-x d# 150 to max-y d# 450 to max-z
h# 32 6 encode-phys " reg" property
@@ -401,6 +403,7 @@
accelerometer-off
\ Something responded to the old address, so we assume it's the old chip
\ Support for old LIS33DE chip
+ d# 25,000 to bus-speed
d# 20 to min-x d# 20 to min-y d# 20 to min-z
d# 400 to max-x d# 400 to max-y d# 400 to max-z
h# 3a 6 encode-phys " reg" property
Author: quozl
Date: Fri Oct 28 04:46:45 2011
New Revision: 2657
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2657
Log:
OLPC XO-1.75 XO-1.5 - minor file comment fix
Modified:
cpu/arm/olpc/1.75/usb.fth
cpu/x86/pc/olpc/via/usb.fth
Modified: cpu/arm/olpc/1.75/usb.fth
==============================================================================
--- cpu/arm/olpc/1.75/usb.fth Thu Oct 27 03:53:58 2011 (r2656)
+++ cpu/arm/olpc/1.75/usb.fth Fri Oct 28 04:46:45 2011 (r2657)
@@ -1,4 +1,4 @@
-purpose: USB elaborations for the BIOS loaded OFW
+purpose: Platform-specific USB elaborations
\ See license at end of file
0 0 " d4208000" " /" begin-package \ USB Host Controller
Modified: cpu/x86/pc/olpc/via/usb.fth
==============================================================================
--- cpu/x86/pc/olpc/via/usb.fth Thu Oct 27 03:53:58 2011 (r2656)
+++ cpu/x86/pc/olpc/via/usb.fth Fri Oct 28 04:46:45 2011 (r2657)
@@ -1,4 +1,4 @@
-purpose: USB elaborations for the BIOS loaded OFW
+purpose: Platform-specific USB elaborations
\ See license at end of file
0 config-int usb-delay \ Milliseconds to wait before set-address
Author: quozl
Date: Tue Oct 25 08:16:34 2011
New Revision: 2654
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2654
Log:
OLPC XO-1.75, XO-1.5, XO-1 - battery state of charge did not properly show 100%. The cause was that a previous definition of 2.d was being used, which used (.2), truncating any higher digits.
This wasn't a problem until the XO-1.75 EC started using 100% instead of 97% in commit ea52c0c.
Batteries moved from XO-1.75 to XO-1.5 and XO-1 may show 00% in watch-battery or .bat until this fix is released.
Modified:
dev/olpc/kb3700/batstat.fth
Modified: dev/olpc/kb3700/batstat.fth
==============================================================================
--- dev/olpc/kb3700/batstat.fth Tue Oct 25 00:57:39 2011 (r2653)
+++ dev/olpc/kb3700/batstat.fth Tue Oct 25 08:16:34 2011 (r2654)
@@ -79,8 +79,7 @@
if ." MPPT" then
;
-\needs 2.d : 2.d ( n -- ) push-decimal <# u# u#s u#> type pop-base ;
-: .% ( n -- ) 2.d ." %" ;
+: .% ( n -- ) push-decimal <# [char] % hold u# u#s u#> type pop-base ;
: .bat ( -- )
bat-status@ ( stat )
." AC:" dup h# 10 and if ." on " else ." off " then ( stat )
Author: quozl
Date: Mon Oct 24 08:53:41 2011
New Revision: 2651
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2651
Log:
Q3B22
(note that this version was not svn head at this point, but rather svn
2478 [q3b19] with 2589 and 2597 [q3b20])
(that is, q3b21 with another EC version)
Modified:
cpu/x86/pc/olpc/via/ec-version.fth
cpu/x86/pc/olpc/via/fw-version.fth
Modified: cpu/x86/pc/olpc/via/ec-version.fth
==============================================================================
--- cpu/x86/pc/olpc/via/ec-version.fth Mon Oct 24 04:51:51 2011 (r2650)
+++ cpu/x86/pc/olpc/via/ec-version.fth Mon Oct 24 08:53:41 2011 (r2651)
@@ -1,5 +1,5 @@
\ The EC microcode
-macro: EC_VERSION 2_2_9
+macro: EC_VERSION 2_2_10
\ Alternate command for getting EC microcode, for testing new versions.
\ Temporarily uncomment the line and modify the path as necessary
Modified: cpu/x86/pc/olpc/via/fw-version.fth
==============================================================================
--- cpu/x86/pc/olpc/via/fw-version.fth Mon Oct 24 04:51:51 2011 (r2650)
+++ cpu/x86/pc/olpc/via/fw-version.fth Mon Oct 24 08:53:41 2011 (r2651)
@@ -1,3 +1,3 @@
\ The overall firmware revision
macro: FW_MAJOR B
-macro: FW_MINOR 21
+macro: FW_MINOR 22