diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-12-04 16:06:02 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-12-06 19:53:34 +0000 |
commit | c4fbeacd01772ad297d5c508bc44e9fa3bc27fb6 (patch) | |
tree | 6239de26565da12d47102d12d5910642e5ab15b9 /src/soc/intel/common/block/xhci/xhci.c | |
parent | af776d8b660d6fbffd3bda1178e5f43457a4b5b0 (diff) |
soc/intel/common/block: Use readXXp/writeXXp()
Change-Id: I83d05ce0b26b01fdfc95d1442a4c930ed77bf25c
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70294
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/intel/common/block/xhci/xhci.c')
-rw-r--r-- | src/soc/intel/common/block/xhci/xhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/xhci/xhci.c b/src/soc/intel/common/block/xhci/xhci.c index a12f875bfe..9931fb641e 100644 --- a/src/soc/intel/common/block/xhci/xhci.c +++ b/src/soc/intel/common/block/xhci/xhci.c @@ -3,6 +3,7 @@ #include <acpi/acpi_device.h> #include <console/console.h> #include <device/device.h> +#include <device/mmio.h> #include <device/pci.h> #include <device/pci_ids.h> #include <drivers/usb/acpi/chip.h> @@ -68,7 +69,7 @@ static bool is_usb_port_connected(const struct xhci_usb_info *info, else port_sts_reg = (uintptr_t)res->base + info->usb3_port_status_reg + port_id * 0x10; - port_status = read32((void *)port_sts_reg); + port_status = read32p(port_sts_reg); /* Ensure that the status is not all 1s */ if (port_status == 0xffffffff) |