Author: wmb Date: Mon Sep 20 21:34:18 2010 New Revision: 1957 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1957
Log: OLPC trac 10371 - Fixed regression caused by svn 1841, which had the unintended side effect of preventing the XO-1.5 HDAudio CODEC's vendor-specific registers from being configured correctly. That in turn prevented the thermal protection from being turned on, in addition to numerous other incorrect settings like amplifier power.
Modified: dev/hdaudio/olpc-ports.fth dev/hdaudio/start-cx2058x.fth
Modified: dev/hdaudio/olpc-ports.fth ============================================================================== --- dev/hdaudio/olpc-ports.fth Wed Sep 15 00:46:17 2010 (r1956) +++ dev/hdaudio/olpc-ports.fth Mon Sep 20 21:34:18 2010 (r1957) @@ -33,6 +33,25 @@ select-internal-mic then ; +: .2xuc ( n -- ) + push-hex + <# u# u# u#> + 2dup bounds ?do + i c@ h# 61 >= if + i c@ h# 20 - i c! + then + loop + type + pop-base +; +: .vendor-table ( -- ) + vendor + " "(a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b1 b2 b3 b4 b5 b6 b7 b8 b9 ba c1 c2 c3 c4 c5 c6 c7 c8 c9 cc)" + bounds ?do + ." [0x0" node .2xuc i c@ .2xuc ." 000] = " + i c@ d# 12 << cmd? .x cr + loop +;
\ LICENSE_BEGIN \ Copyright (c) 2010 FirmWorks
Modified: dev/hdaudio/start-cx2058x.fth ============================================================================== --- dev/hdaudio/start-cx2058x.fth Wed Sep 15 00:46:17 2010 (r1956) +++ dev/hdaudio/start-cx2058x.fth Mon Sep 20 21:34:18 2010 (r1957) @@ -68,9 +68,9 @@ porth config( unused line-out no-detect )config porti config( unused line-out no-detect )config portj config( unused line-out no-detect )config + portk config( unused line-out no-detect )config
vendor \ Vendor node - portk config( unused line-out no-detect )config
\ Codec registers 21000 place-verb \ Undocumented register @@ -81,13 +81,13 @@ 26000 place-verb \ Undocumented register 27000 place-verb \ Undocumented register 28000 place-verb \ Undocumented register - 290a8 place-verb \ high-pass filter, semi-manual mode, 600Hz cutoff + 290a8 place-verb \ high-pass filter, semi-manual mode, 600Hz cutoff \ Conexant: 29088 - 150Hz 2A000 place-verb \ low-pass filter (for subwoofers) off 2B002 place-verb \ Undocumented register 2C020 place-verb \ Undocumented register 2D000 place-verb \ Undocumented register 2E000 place-verb \ Undocumented register - 2F800 place-verb \ Undocumented register + 2F000 place-verb \ Undocumented register \ Conexant once recommended 2f800 but now are saying 2f000 \ Analog registers 31000 place-verb \ Undocumented register 32000 place-verb \ Undocumented register @@ -100,7 +100,7 @@ 39057 place-verb \ temperature protection at 79.5C 3A000 place-verb \ Undocumented register \ Digital registers - 41541 place-verb \ Undocumented register + 4154d place-verb \ Undocumented register \ Conexant once recommended 41541 but now are saying 4154d 42011 place-verb \ over-temperature shutdown of class-D amplifier 43000 place-verb \ This documented as a status register and thus is presumably read-only. Why write to it? 44000 place-verb \ Undocumented register
openfirmware@openfirmware.info