summaryrefslogtreecommitdiff
path: root/src/mainboard/technexion/tim5690/tn_post_code.c
diff options
context:
space:
mode:
authorLibra Li <libra.li@technexion.com>2009-11-25 07:48:24 +0000
committerZheng Bao <Zheng.Bao@amd.com>2009-11-25 07:48:24 +0000
commit4cede7176770d8ab810cc6753b3e3a18cd423f34 (patch)
treec167e6c8a475e441d6f47acaed1c093bbcf7c1a2 /src/mainboard/technexion/tim5690/tn_post_code.c
parent46c920e13ac83513897bed1bc27529ff2cdbb436 (diff)
downloadcoreboot-4cede7176770d8ab810cc6753b3e3a18cd423f34.tar.xz
This patch is buzzer of TechNexion TIM-5690.
Change EARLY_STAGE into __PRE_RAM__. Signed-off-by: Libra Li <libra.li@technexion.com> Acked-by: Zheng Bao <zheng.bao@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4954 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/technexion/tim5690/tn_post_code.c')
-rw-r--r--src/mainboard/technexion/tim5690/tn_post_code.c26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/mainboard/technexion/tim5690/tn_post_code.c b/src/mainboard/technexion/tim5690/tn_post_code.c
index 5780eb4094..4605976435 100644
--- a/src/mainboard/technexion/tim5690/tn_post_code.c
+++ b/src/mainboard/technexion/tim5690/tn_post_code.c
@@ -1,5 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2009 Libra Li <libra.li@technexion.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
-#ifdef TECHNEXION_EARLY_SETUP
+#ifdef __PRE_RAM__
#include <arch/cpu.h>
#include "southbridge/amd/sb600/sb600.h"
@@ -14,7 +34,7 @@
#include "tn_post_code.h"
-#ifdef TECHNEXION_EARLY_SETUP
+#ifdef __PRE_RAM__
// TechNexion's Post Code Initially.
void technexion_post_code_init(void)
@@ -116,7 +136,7 @@ void technexion_post_code(uint8_t udata8)
device_t dev=0;
// SMBus Module and ACPI Block (Device 20, Function 0)
-#ifdef TECHNEXION_EARLY_SETUP
+#ifdef __PRE_RAM__
dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB600_SM), 0);
#else
dev = dev_find_device(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB600_SM, 0);