southbridge/amd/cimx: Drop unused functions
Leftovers from attempts of using these with native (non-AGESA) amdfam10/15 support code. Change-Id: I8eaed338438e1de5baee462376e339e1439f72f1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30728 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
a96e66a76f
commit
dfd4ec2dbb
|
@ -21,25 +21,6 @@
|
||||||
#include "cfg.h" /*sb800_cimx_config*/
|
#include "cfg.h" /*sb800_cimx_config*/
|
||||||
#include "cbmem.h"
|
#include "cbmem.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get SouthBridge device number
|
|
||||||
* @param[in] bus target bus number
|
|
||||||
* @return southbridge device number
|
|
||||||
*/
|
|
||||||
u32 get_sbdn(u32 bus)
|
|
||||||
{
|
|
||||||
pci_devfn_t dev;
|
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "SB800 - %s - %s - Start.\n", __FILE__, __func__);
|
|
||||||
//dev = PCI_DEV(bus, 0x14, 0);
|
|
||||||
dev = pci_locate_device_on_bus(
|
|
||||||
PCI_ID(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SB800_SM),
|
|
||||||
bus);
|
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "SB800 - %s - %s - End.\n", __FILE__, __func__);
|
|
||||||
return (dev >> 15) & 0x1f;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief South Bridge CIMx romstage entry,
|
* @brief South Bridge CIMx romstage entry,
|
||||||
* wrapper of sbPowerOnInit entry point.
|
* wrapper of sbPowerOnInit entry point.
|
||||||
|
|
|
@ -364,22 +364,8 @@ static void sb800_enable(struct device *dev)
|
||||||
|
|
||||||
case PCI_DEVFN(0x14, 0): /* 0:14:0 SMBUS */
|
case PCI_DEVFN(0x14, 0): /* 0:14:0 SMBUS */
|
||||||
clear_ioapic(VIO_APIC_VADDR);
|
clear_ioapic(VIO_APIC_VADDR);
|
||||||
#if IS_ENABLED(CONFIG_CPU_AMD_AGESA)
|
|
||||||
/* Assign the ioapic ID the next available number after the processor core local APIC IDs */
|
/* Assign the ioapic ID the next available number after the processor core local APIC IDs */
|
||||||
setup_ioapic(VIO_APIC_VADDR, CONFIG_MAX_CPUS);
|
setup_ioapic(VIO_APIC_VADDR, CONFIG_MAX_CPUS);
|
||||||
#else
|
|
||||||
/* I/O APIC IDs are normally limited to 4-bits. Enforce this limit. */
|
|
||||||
#if (CONFIG_APIC_ID_OFFSET == 0 && CONFIG_MAX_CPUS * CONFIG_MAX_PHYSICAL_CPUS < 16)
|
|
||||||
/* Assign the ioapic ID the next available number after the processor core local APIC IDs */
|
|
||||||
setup_ioapic(VIO_APIC_VADDR,
|
|
||||||
CONFIG_MAX_CPUS * CONFIG_MAX_PHYSICAL_CPUS);
|
|
||||||
#elif (CONFIG_APIC_ID_OFFSET > 0)
|
|
||||||
/* Assign the ioapic ID the value 0. Processor APIC IDs follow. */
|
|
||||||
setup_ioapic(VIO_APIC_VADDR, 0);
|
|
||||||
#else
|
|
||||||
#error "The processor APIC IDs must be lifted to make room for the I/O APIC ID"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCI_DEVFN(0x14, 1): /* 0:14:1 IDE */
|
case PCI_DEVFN(0x14, 1): /* 0:14:1 IDE */
|
||||||
|
|
|
@ -34,10 +34,4 @@ void sb_After_Pci_Restore_Init(void);
|
||||||
*/
|
*/
|
||||||
void sb800_clk_output_48Mhz(void);
|
void sb800_clk_output_48Mhz(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get SouthBridge device number, called by finalize_node_setup()
|
|
||||||
* @param[in] bus target bus number
|
|
||||||
* @return southbridge device number
|
|
||||||
*/
|
|
||||||
u32 get_sbdn(u32 bus);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -25,25 +25,6 @@
|
||||||
#include <commonlib/loglevel.h>
|
#include <commonlib/loglevel.h>
|
||||||
#include "smbus.h"
|
#include "smbus.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get SouthBridge device number
|
|
||||||
* @param[in] bus target bus number
|
|
||||||
* @return southbridge device number
|
|
||||||
*/
|
|
||||||
u32 get_sbdn(u32 bus)
|
|
||||||
{
|
|
||||||
pci_devfn_t dev;
|
|
||||||
|
|
||||||
printk(BIOS_SPEW, "SB900 - Early.c - get_sbdn - Start.\n");
|
|
||||||
|
|
||||||
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_AMD,
|
|
||||||
PCI_DEVICE_ID_AMD_SB900_SM), bus);
|
|
||||||
|
|
||||||
printk(BIOS_SPEW, "SB900 - Early.c - get_sbdn - End.\n");
|
|
||||||
|
|
||||||
return (dev >> 15) & 0x1f;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief South Bridge CIMx romstage entry,
|
* @brief South Bridge CIMx romstage entry,
|
||||||
|
|
|
@ -32,13 +32,6 @@
|
||||||
#define REV_SB900_A11 0x11
|
#define REV_SB900_A11 0x11
|
||||||
#define REV_SB900_A12 0x12
|
#define REV_SB900_A12 0x12
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get SouthBridge device number, called by finalize_node_setup()
|
|
||||||
* @param[in] bus target bus number
|
|
||||||
* @return southbridge device number
|
|
||||||
*/
|
|
||||||
u32 get_sbdn(u32 bus);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* South Bridge CIMx romstage entry, sbPowerOnInit entry point wrapper.
|
* South Bridge CIMx romstage entry, sbPowerOnInit entry point wrapper.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue