mb/apple: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I14d82b0463d184ae89d7137f2dc6732bbb608b73 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26074 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
committed by
Martin Roth
parent
9981177cb8
commit
a2e282b06a
@@ -70,12 +70,12 @@ int get_cst_entries(acpi_cstate_t **entries)
|
|||||||
return ARRAY_SIZE(cst_entries);
|
return ARRAY_SIZE(cst_entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mainboard_init(device_t dev)
|
static void mainboard_init(struct device *dev)
|
||||||
{
|
{
|
||||||
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, PANEL, 3);
|
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, PANEL, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
dev->ops->init = mainboard_init;
|
dev->ops->init = mainboard_init;
|
||||||
}
|
}
|
||||||
|
@@ -18,13 +18,13 @@
|
|||||||
#include <ec/acpi/ec.h>
|
#include <ec/acpi/ec.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
|
||||||
static void mainboard_init(device_t dev)
|
static void mainboard_init(struct device *dev)
|
||||||
{
|
{
|
||||||
RCBA32(0x38c8) = 0x00002005;
|
RCBA32(0x38c8) = 0x00002005;
|
||||||
RCBA32(0x38c4) = 0x00800000;
|
RCBA32(0x38c4) = 0x00800000;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
dev->ops->init = mainboard_init;
|
dev->ops->init = mainboard_init;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user