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><br><div class="gmail_quote">2009/11/25  <span dir="ltr"><<a href="mailto:svn@coreboot.org">svn@coreboot.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA<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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA<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"><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><br>
</font></blockquote></div><br>