From 4cede7176770d8ab810cc6753b3e3a18cd423f34 Mon Sep 17 00:00:00 2001 From: Libra Li Date: Wed, 25 Nov 2009 07:48:24 +0000 Subject: This patch is buzzer of TechNexion TIM-5690. Change EARLY_STAGE into __PRE_RAM__. Signed-off-by: Libra Li Acked-by: Zheng Bao git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4954 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/technexion/tim5690/tn_post_code.c | 26 ++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'src/mainboard/technexion/tim5690/tn_post_code.c') 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 + * + * 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 #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); -- cgit v1.2.3