aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/supermicro/h8scm_fam10
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-04 21:52:58 +0200
committerMartin Roth <martinroth@google.com>2018-05-08 14:22:39 +0000
commit66e602a7fab46b4879ad78edbb722a282b0ab53c (patch)
treede166e085fb72b7b9d97efc0cb6fad9e84d89ccf /src/mainboard/supermicro/h8scm_fam10
parent61e07f6ed6ffbadff82f2d4e1b21dcc111e33762 (diff)
mb/supermicro: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Icc633dc499568cf672f5e244e026e45a6eea5fd8 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26095 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/mainboard/supermicro/h8scm_fam10')
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/acpi_tables.c2
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c2
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/mainboard.c6
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/mptable.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/supermicro/h8scm_fam10/acpi_tables.c b/src/mainboard/supermicro/h8scm_fam10/acpi_tables.c
index 8560292897..165fd81e03 100644
--- a/src/mainboard/supermicro/h8scm_fam10/acpi_tables.c
+++ b/src/mainboard/supermicro/h8scm_fam10/acpi_tables.c
@@ -25,7 +25,7 @@
unsigned long acpi_fill_madt(unsigned long current)
{
- device_t dev;
+ struct device *dev;
u32 dword;
u32 gsi_base = 0;
/* create all subtables for processors */
diff --git a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c
index d1e8851dd6..25e8bb62a0 100644
--- a/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c
+++ b/src/mainboard/supermicro/h8scm_fam10/get_bus_conf.c
@@ -59,7 +59,7 @@ static u32 get_bus_conf_done = 0;
void get_bus_conf(void)
{
u32 apicid_base;
- device_t dev;
+ struct device *dev;
int i;
if (get_bus_conf_done == 1)
diff --git a/src/mainboard/supermicro/h8scm_fam10/mainboard.c b/src/mainboard/supermicro/h8scm_fam10/mainboard.c
index 42f80e431c..092f2e8c2d 100644
--- a/src/mainboard/supermicro/h8scm_fam10/mainboard.c
+++ b/src/mainboard/supermicro/h8scm_fam10/mainboard.c
@@ -45,7 +45,7 @@ u8 is_dev3_present(void)
***/
void set_pcie_reset(void)
{
- device_t pcie_core_dev;
+ struct device *pcie_core_dev;
pcie_core_dev = dev_find_slot(0, PCI_DEVFN(0, 0));
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x28282828);
@@ -54,7 +54,7 @@ void set_pcie_reset(void)
void set_pcie_dereset(void)
{
- device_t pcie_core_dev;
+ struct device *pcie_core_dev;
pcie_core_dev = dev_find_slot(0, PCI_DEVFN(0, 0));
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x6F6F6F6F);
@@ -65,7 +65,7 @@ void set_pcie_dereset(void)
* enable the dedicated function in h8scm board.
* This function called early than sr5650_enable.
*************************************************/
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard H8SCM Enable. dev=0x%p\n", dev);
diff --git a/src/mainboard/supermicro/h8scm_fam10/mptable.c b/src/mainboard/supermicro/h8scm_fam10/mptable.c
index 75a4544287..d0b6a13d4a 100644
--- a/src/mainboard/supermicro/h8scm_fam10/mptable.c
+++ b/src/mainboard/supermicro/h8scm_fam10/mptable.c
@@ -51,7 +51,7 @@ static void *smp_write_config_table(void *v)
mptable_write_buses(mc, NULL, &bus_isa);
/* I/O APICs: APIC ID Version State Address */
{
- device_t dev;
+ struct device *dev;
u32 *dword;
u8 byte;