<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Courier New";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Sorry, I forgot to svn add.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>R4955.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Zheng<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Libra Li<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, November 25, 2009
4:03 PM<br>
<b><span style='font-weight:bold'>To:</span></b> coreboot@coreboot.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [coreboot] [commit]
r4954 -trunk/src/mainboard/technexion/tim5690</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi, Zheng,<br>
<br>
    This version is loss speaker.c and speaker.h.<br>
    Thanks.<br>
<br>
    Signed-off-by: Libra Li <<a href="http://libra.li/"
target="_blank">libra.li</a>@<a href="http://technexion.com/" target="_blank">technexion.com</a>><br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2009/11/25 <<a href="mailto:svn@coreboot.org">svn@coreboot.org</a>><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Author: zbao<br>
Date: 2009-11-25 08:48:24 +0100 (Wed, 25 Nov 2009)<br>
New Revision: 4954<br>
<br>
Modified:<br>
  trunk/src/mainboard/technexion/tim5690/Config.lb<br>
  trunk/src/mainboard/technexion/tim5690/Makefile.inc<br>
  trunk/src/mainboard/technexion/tim5690/cache_as_ram_auto.c<br>
  trunk/src/mainboard/technexion/tim5690/mainboard.c<br>
  trunk/src/mainboard/technexion/tim5690/tn_post_code.c<br>
  trunk/src/mainboard/technexion/tim5690/tn_post_code.h<br>
Log:<br>
This patch is buzzer of TechNexion TIM-5690.<br>
<br>
Change EARLY_STAGE into __PRE_RAM__.<br>
<br>
Signed-off-by: Libra Li <<a href="http://libra.li" target="_blank">libra.li</a>@<a
href="http://technexion.com" target="_blank">technexion.com</a>><br>
Acked-by: Zheng Bao <<a href="mailto:zheng.bao@amd.com">zheng.bao@amd.com</a>><br>
<br>
<br>
Modified: trunk/src/mainboard/technexion/tim5690/Config.lb<br>
===================================================================<br>
--- trunk/src/mainboard/technexion/tim5690/Config.lb    2009-11-25
02:25:37 UTC (rev 4953)<br>
+++ trunk/src/mainboard/technexion/tim5690/Config.lb    2009-11-25
07:48:24 UTC (rev 4954)<br>
@@ -31,6 +31,7 @@<br>
<br>
 driver mainboard.o<br>
 object tn_post_code.o<br>
+object speaker.o<br>
<br>
 #dir /drivers/si/3114<br>
<br>
<br>
Modified: trunk/src/mainboard/technexion/tim5690/Makefile.inc<br>
===================================================================<br>
--- trunk/src/mainboard/technexion/tim5690/Makefile.inc 2009-11-25 02:25:37 UTC
(rev 4953)<br>
+++ trunk/src/mainboard/technexion/tim5690/Makefile.inc 2009-11-25 07:48:24 UTC
(rev 4954)<br>
@@ -32,6 +32,8 @@<br>
 # This is debug message for products of Technexion.<br>
 obj-y += tn_post_code.o<br>
<br>
+obj-y += speaker.o<br>
+<br>
 # This is part of the conversion to init-obj and away from included code.<br>
<br>
 initobj-y += crt0.o<br>
<br>
Modified: trunk/src/mainboard/technexion/tim5690/cache_as_ram_auto.c<br>
===================================================================<br>
--- trunk/src/mainboard/technexion/tim5690/cache_as_ram_auto.c  2009-11-25
02:25:37 UTC (rev 4953)<br>
+++ trunk/src/mainboard/technexion/tim5690/cache_as_ram_auto.c  2009-11-25
07:48:24 UTC (rev 4954)<br>
@@ -100,8 +100,8 @@<br>
<br>
 #include "cpu/amd/model_fxx/fidvid.c"<br>
<br>
-#define TECHNEXION_EARLY_SETUP<br>
 #include "tn_post_code.c"<br>
+#include "speaker.c"<br>
<br>
<br>
 #if CONFIG_USE_FALLBACK_IMAGE == 1<br>
@@ -249,6 +249,9 @@<br>
               soft_reset();<br>
       }<br>
<br>
+       speaker_init(255);<br>
+       speaker_on_nodelay();<br>
+<br>
       allow_all_aps_stop(bsp_apicid);<br>
<br>
       /* It's the time to set ctrl now; */<br>
@@ -261,6 +264,8 @@<br>
<br>
       sdram_initialize(sysinfo->nodes,
sysinfo->ctrl, sysinfo);<br>
<br>
+       speaker_off_nodelay();<br>
+<br>
       rs690_before_pci_init();<br>
       sb600_before_pci_init();<br>
<br>
<br>
Modified: trunk/src/mainboard/technexion/tim5690/mainboard.c<br>
===================================================================<br>
--- trunk/src/mainboard/technexion/tim5690/mainboard.c  2009-11-25
02:25:37 UTC (rev 4953)<br>
+++ trunk/src/mainboard/technexion/tim5690/mainboard.c  2009-11-25
07:48:24 UTC (rev 4954)<br>
@@ -28,6 +28,7 @@<br>
 #include <../southbridge/amd/sb600/sb600.h><br>
 #include "chip.h"<br>
 #include "tn_post_code.h"<br>
+//#include "speaker.h" // test buzzer<br>
<br>
 #define ADT7461_ADDRESS 0x4C<br>
 #define ARA_ADDRESS     0x0C /* Alert Response Address */<br>
@@ -184,6 +185,12 @@<br>
               uma_memory_base,
uma_memory_size);<br>
 #endif<br>
       technexion_post_code(LED_MESSAGE_FINISH);<br>
+        // test buzzer<br>
+       //speaker_on_delay();<br>
+       //speaker_off_delay();<br>
+       //speaker_on_delay();<br>
+       //speaker_off_nodelay();<br>
+<br>
 }<br>
<br>
 struct chip_operations mainboard_ops = {<br>
<br>
Modified: trunk/src/mainboard/technexion/tim5690/tn_post_code.c<br>
===================================================================<br>
--- trunk/src/mainboard/technexion/tim5690/tn_post_code.c      
2009-11-25 02:25:37 UTC (rev 4953)<br>
+++ trunk/src/mainboard/technexion/tim5690/tn_post_code.c      
2009-11-25 07:48:24 UTC (rev 4954)<br>
@@ -1,6 +1,26 @@<br>
+/*<br>
+ * This file is part of the coreboot project.<br>
+ *<br>
+ * Copyright (C) 2009 Libra Li <<a href="http://libra.li" target="_blank">libra.li</a>@<a
href="http://technexion.com" target="_blank">technexion.com</a>><br>
+ *<br>
+ * This program is free software; you can redistribute it and/or modify<br>
+ * it under the terms of the GNU General Public License as published by<br>
+ * the Free Software Foundation; either version 2 of the License, or<br>
+ * (at your option) any later version.<br>
+ *<br>
+ * This program is distributed in the hope that it will be useful,<br>
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>
+ * GNU General Public License for more details.<br>
+ *<br>
+ * You should have received a copy of the GNU General Public License<br>
+ * along with this program; if not, write to the Free Software<br>
+ * Foundation, Inc., <st1:Street w:st="on"><st1:address w:st="on">51 Franklin
  St</st1:address></st1:Street>, Fifth Floor, <st1:place w:st="on"><st1:City
 w:st="on">Boston</st1:City>, <st1:State w:st="on">MA</st1:State>  <st1:PostalCode
 w:st="on">02110-1301</st1:PostalCode> <st1:country-region w:st="on">USA</st1:country-region></st1:place><br>
+ */<br>
<br>
-#ifdef TECHNEXION_EARLY_SETUP<br>
<br>
+#ifdef __PRE_RAM__<br>
+<br>
 #include <arch/cpu.h><br>
 #include "southbridge/amd/sb600/sb600.h"<br>
<br>
@@ -14,7 +34,7 @@<br>
 #include "tn_post_code.h"<br>
<br>
<br>
-#ifdef TECHNEXION_EARLY_SETUP<br>
+#ifdef __PRE_RAM__<br>
<br>
 // TechNexion's Post Code Initially.<br>
 void technexion_post_code_init(void)<br>
@@ -116,7 +136,7 @@<br>
   device_t dev=0;<br>
<br>
   // SMBus Module and ACPI Block (Device 20, Function 0)<br>
-#ifdef TECHNEXION_EARLY_SETUP<br>
+#ifdef __PRE_RAM__<br>
   dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_ATI,
PCI_DEVICE_ID_ATI_SB600_SM), 0);<br>
 #else<br>
   dev = dev_find_device(PCI_VENDOR_ID_ATI,
PCI_DEVICE_ID_ATI_SB600_SM, 0);<br>
<br>
Modified: trunk/src/mainboard/technexion/tim5690/tn_post_code.h<br>
===================================================================<br>
--- trunk/src/mainboard/technexion/tim5690/tn_post_code.h      
2009-11-25 02:25:37 UTC (rev 4953)<br>
+++ trunk/src/mainboard/technexion/tim5690/tn_post_code.h      
2009-11-25 07:48:24 UTC (rev 4954)<br>
@@ -1,11 +1,29 @@<br>
+/*<br>
+ * This file is part of the coreboot project.<br>
+ *<br>
+ * Copyright (C) 2009 Libra Li <<a href="http://libra.li" target="_blank">libra.li</a>@<a
href="http://technexion.com" target="_blank">technexion.com</a>><br>
+ *<br>
+ * This program is free software; you can redistribute it and/or modify<br>
+ * it under the terms of the GNU General Public License as published by<br>
+ * the Free Software Foundation; either version 2 of the License, or<br>
+ * (at your option) any later version.<br>
+ *<br>
+ * This program is distributed in the hope that it will be useful,<br>
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>
+ * GNU General Public License for more details.<br>
+ *<br>
+ * You should have received a copy of the GNU General Public License<br>
+ * along with this program; if not, write to the Free Software<br>
+ * Foundation, Inc., <st1:Street w:st="on"><st1:address w:st="on">51 Franklin
  St</st1:address></st1:Street>, Fifth Floor, <st1:place w:st="on"><st1:City
 w:st="on">Boston</st1:City>, <st1:State w:st="on">MA</st1:State>  <st1:PostalCode
 w:st="on">02110-1301</st1:PostalCode> <st1:country-region w:st="on">USA</st1:country-region></st1:place><br>
+ */<br>
<br>
-<br>
 #define LED_MESSAGE_START       0xFF<br>
 #define LED_MESSAGE_FINISH      0x99<br>
 #define LED_MESSAGE_RAM         0x01<br>
<br>
<br>
-#ifdef TECHNEXION_EARLY_SETUP<br>
+#ifdef __PRE_RAM__<br>
<br>
 // TechNexion's Post Code Initially.<br>
 void technexion_post_code_init(void);<br>
<font color="#888888"><span style='color:#888888'><br>
<br>
--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="http://www.coreboot.org/mailman/listinfo/coreboot" target="_blank">http://www.coreboot.org/mailman/listinfo/coreboot</a></span></font><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>