mb/broadcom: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Icf7c99ca55d2bcbca2c974d59a63e89758ba5ea6 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26080 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
committed by
Patrick Rudolph
parent
8735d1bdc7
commit
092863b460
@@ -48,7 +48,7 @@ void get_bus_conf(void)
|
|||||||
|
|
||||||
unsigned apicid_base;
|
unsigned apicid_base;
|
||||||
|
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (get_bus_conf_done == 1)
|
if (get_bus_conf_done == 1)
|
||||||
|
@@ -34,7 +34,7 @@ static void *smp_write_config_table(void *v)
|
|||||||
|
|
||||||
/*I/O APICs: APIC ID Version State Address*/
|
/*I/O APICs: APIC ID Version State Address*/
|
||||||
{
|
{
|
||||||
device_t dev = 0;
|
struct device *dev = NULL;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
dev = dev_find_device(0x1166, 0x0235, dev);
|
dev = dev_find_device(0x1166, 0x0235, dev);
|
||||||
@@ -71,7 +71,7 @@ static void *smp_write_config_table(void *v)
|
|||||||
/* enable int */
|
/* enable int */
|
||||||
/* why here? must get the BAR and PCI command bit 1 set before enable it ....*/
|
/* why here? must get the BAR and PCI command bit 1 set before enable it ....*/
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
dev = dev_find_device(0x1166, 0x0205, 0);
|
dev = dev_find_device(0x1166, 0x0205, 0);
|
||||||
if(dev) {
|
if(dev) {
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
|
Reference in New Issue
Block a user