summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/bd82x6x/smihandler.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-04 09:09:49 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-06 19:51:17 +0000
commitaf776d8b660d6fbffd3bda1178e5f43457a4b5b0 (patch)
tree01002038174af337e6a4d95709550e2e1aa4cf79 /src/southbridge/intel/bd82x6x/smihandler.c
parent067642d939bd083dd1aa314dd3c4982530e290c5 (diff)
sb/intel/bd82x6x: Use {read,write}32p
While on it, sort includes. Change-Id: Iacc858fbad89b54b1f5891c18cd3043b3963d53f Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70292 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/southbridge/intel/bd82x6x/smihandler.c')
-rw-r--r--src/southbridge/intel/bd82x6x/smihandler.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/southbridge/intel/bd82x6x/smihandler.c b/src/southbridge/intel/bd82x6x/smihandler.c
index 28337f6913..bf03b1a51d 100644
--- a/src/southbridge/intel/bd82x6x/smihandler.c
+++ b/src/southbridge/intel/bd82x6x/smihandler.c
@@ -1,20 +1,21 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <types.h>
#include <arch/io.h>
-#include <device/pci_ops.h>
-#include <console/console.h>
#include <commonlib/region.h>
-#include <device/pci_def.h>
-#include <cpu/x86/smm.h>
+#include <console/console.h>
#include <cpu/intel/em64t101_save_state.h>
+#include <cpu/intel/model_206ax/model_206ax.h>
+#include <cpu/x86/smm.h>
+#include <device/mmio.h>
+#include <device/pci_def.h>
+#include <device/pci_ops.h>
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <soc/nvs.h>
#include <southbridge/intel/bd82x6x/me.h>
+#include <southbridge/intel/common/finalize.h>
#include <southbridge/intel/common/gpio.h>
-#include <cpu/intel/model_206ax/model_206ax.h>
#include <southbridge/intel/common/pmutil.h>
-#include <southbridge/intel/common/finalize.h>
+#include <types.h>
#include "pch.h"
@@ -168,7 +169,7 @@ static void xhci_a0_suspend_smm_workaround(void)
/* Steps 3 to 6: If USB3 PORTSC current connect status (bit 0) is set, do IOBP magic */
for (unsigned int port = 0; port < 4; port++) {
- if (read32((void *)(xhci_bar + XHCI_PORTSC_x_USB3(port))) & (1 << 0))
+ if (read32p((xhci_bar + XHCI_PORTSC_x_USB3(port))) & (1 << 0))
pch_iobp_update(0xec000082 + 0x100 * port, ~0, 3 << 2);
}