mb/getac: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ie5ed621423315388e2b8eb3d5433ef2a7a47d602 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26083 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
6c5925909d
commit
5bb159a6cf
|
@ -81,7 +81,7 @@ static long acpi_create_ecdt(acpi_ecdt_t * ecdt)
|
||||||
return header->length;
|
return header->length;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long mainboard_write_acpi_tables(device_t device,
|
unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||||
unsigned long start,
|
unsigned long start,
|
||||||
acpi_rsdp_t *rsdp)
|
acpi_rsdp_t *rsdp)
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,7 +58,7 @@ static void pcie_limit_power(void)
|
||||||
// machine. It should set the slot numbers and enable power
|
// machine. It should set the slot numbers and enable power
|
||||||
// limitation for the PCIe slots.
|
// limitation for the PCIe slots.
|
||||||
|
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
|
|
||||||
dev = dev_find_slot(0, PCI_DEVFN(28,0));
|
dev = dev_find_slot(0, PCI_DEVFN(28,0));
|
||||||
if (dev) pci_write_config32(dev, 0x54, 0x0010a0e0);
|
if (dev) pci_write_config32(dev, 0x54, 0x0010a0e0);
|
||||||
|
@ -75,7 +75,7 @@ static void pcie_limit_power(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void mainboard_init(device_t dev)
|
static void mainboard_init(struct device *dev)
|
||||||
{
|
{
|
||||||
ec_enable();
|
ec_enable();
|
||||||
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_TXT_STRETCH, 0, 3);
|
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_TXT_STRETCH, 0, 3);
|
||||||
|
@ -83,7 +83,7 @@ static void mainboard_init(device_t dev)
|
||||||
|
|
||||||
// mainboard_enable is executed as first thing after
|
// mainboard_enable is executed as first thing after
|
||||||
// enumerate_buses(). Is there no mainboard_init()?
|
// enumerate_buses(). Is there no mainboard_init()?
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
dev->ops->init = mainboard_init;
|
dev->ops->init = mainboard_init;
|
||||||
dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
|
dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
struct acpi_rsdp;
|
struct acpi_rsdp;
|
||||||
|
|
||||||
unsigned long mainboard_write_acpi_tables(device_t device,
|
unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||||
unsigned long start,
|
unsigned long start,
|
||||||
struct acpi_rsdp *rsdp);
|
struct acpi_rsdp *rsdp);
|
||||||
|
|
Loading…
Reference in New Issue