Author: quozl
Date: Fri May 18 03:50:24 2012
New Revision: 2980
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2980
Log:
OLPC XO-1.75 - fix svn 2978 requested by Chia-Hsiu, the address for over-current threshold is an index-address not a register address
Modified:
cpu/arm/olpc/alc5631.fth
Modified: cpu/arm/olpc/alc5631.fth
==============================================================================
--- cpu/arm/olpc/alc5631.fth Fri May 18 03:00:17 2012 (r2979)
+++ cpu/arm/olpc/alc5631.fth Fri May 18 03:50:24 2012 (r2980)
@@ -39,7 +39,7 @@
h# 1010 h# 38 codec! \ Divisors; the values in this register don't seem to make much
\ difference unless you set the divisors to very high values.
- h# f73c h# 48 codec! \ Increase the Class-D amp Over-Current Threshold per the datasheet
+ h# f73c h# 48 codec-i! \ Increase the Class-D amp Over-Current Threshold per the datasheet
;
: mic-bias-off ( -- ) h# 000c h# 3b codec-clr ;
: mic-bias-on ( -- ) h# 000c h# 3b codec-set ;
Author: quozl
Date: Wed May 16 13:03:21 2012
New Revision: 2977
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2977
Log:
OLPC XO-1.75 - IDT1338 DS1338 RTC SRAM clear, check for a two byte signature at the end of SRAM, and if it is missing clear the century byte (not maintained by the RTC), and the area we are using for "CMOS".
Modified:
cpu/arm/olpc/rtc.fth
Modified: cpu/arm/olpc/rtc.fth
==============================================================================
--- cpu/arm/olpc/rtc.fth Tue May 15 13:23:11 2012 (r2976)
+++ cpu/arm/olpc/rtc.fth Wed May 16 13:03:21 2012 (r2977)
@@ -21,6 +21,15 @@
headerless
+: ?clear
+ h# 3f rtc@ h# 3e rtc@ bwjoin h# 55aa <> if
+ h# 20 8 rtc! \ century
+ h# 20 h# 10 do 0 i rtc! loop \ wipe cmos@ cmos! area
+ h# 55aa wbsplit h# 3e rtc! h# 3f rtc!
+ ." RTC SRAM cleared" cr
+ then
+;
+
headers
: open ( -- okay )
0 ['] rtc@ catch if ( x )
@@ -29,8 +38,6 @@
\ Ensure that the Clock Halt bit is off
dup h# 80 and if ( value )
- \ Clear century
- h# 20 8 rtc!
\ Turn off Clock Halt
h# 7f and 0 rtc! ( )
\ Verify that it went off
@@ -40,6 +47,7 @@
else ( value )
drop true ( true )
then ( okay? )
+ ?clear
;
: close ( -- )
;
Author: quozl
Date: Tue May 15 13:23:11 2012
New Revision: 2976
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2976
Log:
OLPC XO-1.75 - clear the Open Firmware century register in the IDT1338 or DS1338 RTC when power on reset is detected.
Modified:
cpu/arm/olpc/rtc.fth
Modified: cpu/arm/olpc/rtc.fth
==============================================================================
--- cpu/arm/olpc/rtc.fth Sat May 12 04:47:45 2012 (r2975)
+++ cpu/arm/olpc/rtc.fth Tue May 15 13:23:11 2012 (r2976)
@@ -29,6 +29,8 @@
\ Ensure that the Clock Halt bit is off
dup h# 80 and if ( value )
+ \ Clear century
+ h# 20 8 rtc!
\ Turn off Clock Halt
h# 7f and 0 rtc! ( )
\ Verify that it went off
Author: quozl
Date: Sat May 12 04:47:45 2012
New Revision: 2975
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2975
Log:
OLPC XO-1 - do not report fail for external SD slot test if empty, related to svn 2855, and tickets #11844 #11612. An SDHCI device without a slot-name property only occurs on XO-1.
Modified:
dev/mmc/sdhci/selftest.fth
Modified: dev/mmc/sdhci/selftest.fth
==============================================================================
--- dev/mmc/sdhci/selftest.fth Fri May 4 04:39:20 2012 (r2974)
+++ dev/mmc/sdhci/selftest.fth Sat May 12 04:47:45 2012 (r2975)
@@ -46,7 +46,7 @@
;
: external? ( -- flag )
" slot-name" get-my-property if
- false
+ true
else
decode-string " external" $= nip nip
then