mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Get rid of un-needed functions in initram.c
Comment out not-yet-supplied initialize_cpus. Fix missing ; in smbus.c Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1025 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
981c3652a1
commit
dd5e033e5f
3 changed files with 6 additions and 22 deletions
|
@ -43,25 +43,6 @@
|
|||
#define DIMM0 0x50
|
||||
#define DIMM1 0x51
|
||||
|
||||
/* this code is very mainboard dependent, sadly. */
|
||||
/**
|
||||
* no op at present
|
||||
*/
|
||||
static void memreset_setup(void)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* this is a no op on this platform.
|
||||
*/
|
||||
void memreset(int controllers, const struct mem_controller *ctrl)
|
||||
{
|
||||
}
|
||||
|
||||
void activate_spd_rom(const struct mem_controller *ctrl)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* read a byte from spd.
|
||||
* @param device device to read from
|
||||
|
|
|
@ -209,7 +209,8 @@ static void mc_read_resources(struct device * dev)
|
|||
resource->flags =
|
||||
IORESOURCE_MEM | IORESOURCE_FIXED | IORESOURCE_STORED |
|
||||
IORESOURCE_ASSIGNED;
|
||||
printk(BIOS_DEBUG, "Adding PCIe enhanced config space BAR 0x%08lx-0x%08llx.\n",
|
||||
|
||||
printk(BIOS_DEBUG, "Adding PCIe enhanced config space BAR 0x%08lx-0x%08lx.\n",
|
||||
(u64) resource->base, (u64) (resource->base + resource->size));
|
||||
}
|
||||
|
||||
|
@ -250,10 +251,12 @@ struct device_operations i945_mc_ops = {
|
|||
.ops_pci = &intel_pci_ops,
|
||||
};
|
||||
|
||||
|
||||
#warning need to write initialize_cpus
|
||||
static void cpu_bus_init(struct device * dev)
|
||||
{
|
||||
/* what to do here?
|
||||
initialize_cpus(&dev->link[0]);
|
||||
*/
|
||||
}
|
||||
|
||||
static void cpu_bus_noop(struct device * dev)
|
||||
|
|
|
@ -45,7 +45,7 @@ int smbus_read_byte(struct bus *bus, struct device * dev, u8 address)
|
|||
static struct smbus_bus_operations lops_smbus_bus = {
|
||||
.read_byte = smbus_read_byte,
|
||||
};
|
||||
void i82801gx_enable(struct device * dev)
|
||||
void i82801gx_enable(struct device * dev);
|
||||
|
||||
/* 82801GB/GR/GDH/GBM/GHM/GU (ICH7/ICH7R/ICH7DH/ICH7-M/ICH7-M DH/ICH7-U) */
|
||||
struct device_operations i82801gx_smbus = {
|
||||
|
|
Loading…
Add table
Reference in a new issue