mb/siemens: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: If67ea25a9e1363dde8aefe62b92ee7a61f0458b0 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26097 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
This commit is contained in:
parent
66ea1654f2
commit
47503cd688
@ -196,7 +196,7 @@ static void mainboard_init(void *chip_info)
|
|||||||
static void mainboard_final(void *chip_info)
|
static void mainboard_final(void *chip_info)
|
||||||
{
|
{
|
||||||
uint16_t cmd = 0;
|
uint16_t cmd = 0;
|
||||||
device_t dev = NULL;
|
struct device *dev = NULL;
|
||||||
|
|
||||||
/* Do board specific things */
|
/* Do board specific things */
|
||||||
variant_mainboard_final();
|
variant_mainboard_final();
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
* mainboard_enable is executed as first thing after enumerate_buses().
|
* mainboard_enable is executed as first thing after enumerate_buses().
|
||||||
* This is the earliest point to add customization.
|
* This is the earliest point to add customization.
|
||||||
*/
|
*/
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -104,7 +104,7 @@ static void mainboard_enable(device_t dev)
|
|||||||
static void mainboard_init(void *chip_info)
|
static void mainboard_init(void *chip_info)
|
||||||
{
|
{
|
||||||
uint8_t actl = 0;
|
uint8_t actl = 0;
|
||||||
device_t dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
|
struct device *dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
|
||||||
|
|
||||||
/* Route SCI to IRQ 10 to free IRQ 9 slot. */
|
/* Route SCI to IRQ 10 to free IRQ 9 slot. */
|
||||||
actl = pci_read_config8(dev, ACPI_CNTL_OFFSET);
|
actl = pci_read_config8(dev, ACPI_CNTL_OFFSET);
|
||||||
@ -121,7 +121,7 @@ static void mainboard_final(void *chip_info)
|
|||||||
{
|
{
|
||||||
void *spi_base = NULL;
|
void *spi_base = NULL;
|
||||||
uint32_t rcba = 0;
|
uint32_t rcba = 0;
|
||||||
device_t dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
|
struct device *dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC));
|
||||||
|
|
||||||
/* Get address of SPI controller. */
|
/* Get address of SPI controller. */
|
||||||
rcba = (pci_read_config32(dev, 0xf0) & 0xffffc000);
|
rcba = (pci_read_config32(dev, 0xf0) & 0xffffc000);
|
||||||
|
@ -75,7 +75,7 @@ enum cb_err mainboard_get_mac_address(struct device *dev, uint8_t mac[6])
|
|||||||
* mainboard_enable is executed as first thing after enumerate_buses().
|
* mainboard_enable is executed as first thing after enumerate_buses().
|
||||||
* This is the earliest point to add customization.
|
* This is the earliest point to add customization.
|
||||||
*/
|
*/
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
setup_lcd_panel();
|
setup_lcd_panel();
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ typedef struct {
|
|||||||
|
|
||||||
static void acpi_write_gvars(global_vars_t *gvars)
|
static void acpi_write_gvars(global_vars_t *gvars)
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
|
||||||
memset((void *)gvars, 0, GLOBAL_VARS_SIZE);
|
memset((void *)gvars, 0, GLOBAL_VARS_SIZE);
|
||||||
@ -86,7 +86,7 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||||||
return current;
|
return current;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainboard_inject_dsdt(device_t device)
|
void mainboard_inject_dsdt(struct device *device)
|
||||||
{
|
{
|
||||||
global_vars_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, GLOBAL_VARS_SIZE);
|
global_vars_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, GLOBAL_VARS_SIZE);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ static u32 get_bus_conf_done = 0;
|
|||||||
void get_bus_conf(void)
|
void get_bus_conf(void)
|
||||||
{
|
{
|
||||||
u32 apicid_base;
|
u32 apicid_base;
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (get_bus_conf_done == 1)
|
if (get_bus_conf_done == 1)
|
||||||
|
@ -45,7 +45,7 @@ static void *smp_write_config_table(void *v)
|
|||||||
mptable_write_buses(mc, NULL, &isa_bus);
|
mptable_write_buses(mc, NULL, &isa_bus);
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
|
|
||||||
dev = dev_find_slot(bus_sb600[0], PCI_DEVFN(sbdn_sb600 + 0x14, 0));
|
dev = dev_find_slot(bus_sb600[0], PCI_DEVFN(sbdn_sb600 + 0x14, 0));
|
||||||
if (dev) {
|
if (dev) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user