sb/amd/pi/hudson/enable_usbdebug: use pm_io_write8

Use pm_io_write8 instead of open coding the same functionality.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I1d9397f2d85e48883f961adbbca0e1e71e825ce0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76462
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Felix Held 2023-07-14 19:36:20 +02:00
parent e4d660b2dc
commit 0f5f2ceb55
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,7 @@
#define __SIMPLE_DEVICE__ #define __SIMPLE_DEVICE__
#include <stdint.h> #include <stdint.h>
#include <arch/io.h> #include <amdblocks/acpimmio.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci_ehci.h> #include <device/pci_ehci.h>
#include <device/pci_def.h> #include <device/pci_def.h>
@ -15,8 +15,7 @@
pci_devfn_t pci_ehci_dbg_dev(unsigned int hcd_idx) pci_devfn_t pci_ehci_dbg_dev(unsigned int hcd_idx)
{ {
/* Enable all of the USB controllers */ /* Enable all of the USB controllers */
outb(0xEF, PM_INDEX); pm_io_write8(0xef, 0x7f);
outb(0x7F, PM_DATA);
if (hcd_idx == 3) if (hcd_idx == 3)
return PCI_DEV(0, 0x16, 0); return PCI_DEV(0, 0x16, 0);