summaryrefslogtreecommitdiff
path: root/src/mainboard/inventec/transformers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/inventec/transformers')
-rw-r--r--src/mainboard/inventec/transformers/romstage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/inventec/transformers/romstage.c b/src/mainboard/inventec/transformers/romstage.c
index c04720a5e3..9299c7dc04 100644
--- a/src/mainboard/inventec/transformers/romstage.c
+++ b/src/mainboard/inventec/transformers/romstage.c
@@ -10,6 +10,7 @@
#include <defs_cxl.h>
#include <defs_iio.h>
#include <sprsp_ac_iio.h>
+#include <stdint.h>
#include "ipmi.h"
@@ -24,7 +25,7 @@ static void mainboard_config_iio(FSPM_UPD *mupd)
int port;
UPD_IIO_PCIE_PORT_CONFIG *PciePortConfig =
- (UPD_IIO_PCIE_PORT_CONFIG *)mupd->FspmConfig.IioPcieConfigTablePtr;
+ (UPD_IIO_PCIE_PORT_CONFIG *)(uintptr_t)mupd->FspmConfig.IioPcieConfigTablePtr;
/* Socket0: Array ac_iio_pci_port_skt0 only configures DMI, IOU0 ~ IOU4, the rest will be left zero */
for (port = 0; port < ARRAY_SIZE(ac_iio_pci_port_skt0); port++) {