sb/amd/agesa/hudson: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I85aafdc204731734ba4f02551ba5ccdd6535df77 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26408 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
committed by
Kyösti Mälkki
parent
ddfccb4b9a
commit
a93e754c36
@@ -77,14 +77,15 @@ static void hudson_disable_usb(u8 disable)
|
||||
pm_write8(PM_REG_USB_ENABLE, reg8);
|
||||
}
|
||||
|
||||
void hudson_enable(device_t dev)
|
||||
void hudson_enable(struct device *dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "hudson_enable()\n");
|
||||
switch (dev->path.pci.devfn) {
|
||||
case PCI_DEVFN(0x14, 5):
|
||||
if (dev->enabled == 0) {
|
||||
// read the VENDEV ID
|
||||
device_t usb_dev = dev_find_slot( 0, PCI_DEVFN( 0x14, 5));
|
||||
struct device *usb_dev =
|
||||
dev_find_slot( 0, PCI_DEVFN( 0x14, 5));
|
||||
u32 usb_device_id = pci_read_config32(usb_dev, 0) >> 16;
|
||||
u8 reg8;
|
||||
if (usb_device_id == PCI_DEVICE_ID_AMD_SB900_USB_20_5) {
|
||||
@@ -99,7 +100,8 @@ void hudson_enable(device_t dev)
|
||||
case PCI_DEVFN(0x14, 7):
|
||||
if (dev->enabled == 0) {
|
||||
// read the VENDEV ID
|
||||
device_t sd_dev = dev_find_slot( 0, PCI_DEVFN( 0x14, 7));
|
||||
struct device *sd_dev =
|
||||
dev_find_slot( 0, PCI_DEVFN( 0x14, 7));
|
||||
u32 sd_device_id = pci_read_config32( sd_dev, 0) >> 16;
|
||||
/* turn off the SDHC controller in the PM reg */
|
||||
u8 reg8;
|
||||
|
Reference in New Issue
Block a user