2 * This file is part of the coreboot project.
4 * Copyright (C) 2010 Advanced Micro Devices, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #include <device/pci_ids.h>
24 #include <arch/io.h> /* inl, outl */
25 #include <arch/romcc_io.h> /* device_t */
26 #include "SBPLATFORM.h"
28 #include "sb800_cfg.h" /*sb800_cimx_config*/
32 * @brief Get SouthBridge device number
33 * @param[in] bus target bus number
34 * @return southbridge device number
40 //dev = PCI_DEV(bus, 0x14, 0);
41 dev = pci_locate_device_on_bus(
42 PCI_ID(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB800_SM),
45 return (dev >> 15) & 0x1f;
50 * @brief South Bridge CIMx romstage entry,
51 * wrapper of sbPowerOnInit entry point.
53 void sb_poweron_init(void)
55 AMDSBCFG sb_early_cfg;
57 sb800_cimx_config(&sb_early_cfg);
58 //sb_early_cfg.StdHeader.Func = SB_POWERON_INIT;
59 //AmdSbDispatcher(&sb_early_cfg);
61 //AMD_IMAGE_HEADER was missing, when using AmdSbDispatcher,
62 // VerifyImage() will fail, LocateImage() take minitues to find the image.
63 sbPowerOnInit(&sb_early_cfg);