From 0f5f2ceb550c7c830950cd3e5b8f277c37dda185 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 14 Jul 2023 19:36:20 +0200 Subject: 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 Change-Id: I1d9397f2d85e48883f961adbbca0e1e71e825ce0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76462 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- src/southbridge/amd/pi/hudson/enable_usbdebug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/southbridge/amd/pi/hudson/enable_usbdebug.c b/src/southbridge/amd/pi/hudson/enable_usbdebug.c index 8462c2bc77..abec986dbe 100644 --- a/src/southbridge/amd/pi/hudson/enable_usbdebug.c +++ b/src/southbridge/amd/pi/hudson/enable_usbdebug.c @@ -4,7 +4,7 @@ #define __SIMPLE_DEVICE__ #include -#include +#include #include #include #include @@ -15,8 +15,7 @@ pci_devfn_t pci_ehci_dbg_dev(unsigned int hcd_idx) { /* Enable all of the USB controllers */ - outb(0xEF, PM_INDEX); - outb(0x7F, PM_DATA); + pm_io_write8(0xef, 0x7f); if (hcd_idx == 3) return PCI_DEV(0, 0x16, 0); -- cgit v1.2.3