From 79313528cdba81538901721707b3cfee6c3e5220 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 16 Feb 2022 16:00:19 +0100 Subject: amd/common/block/spi/fch_spi_ctrl: use uintptr_t for addresses This fixes a build failure when trying to build the code in 64 bit mode. TEST=Timeless build for Chausie results in identical image. Signed-off-by: Felix Held Change-Id: If8fe7b626d9d72c0b8ed07ced93e46f795e36848 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62052 Tested-by: build bot (Jenkins) Reviewed-by: Aamir Bohra Reviewed-by: Fred Reitberger Reviewed-by: Jason Glenesk Reviewed-by: Elyes Haouas Reviewed-by: Raul Rangel --- src/soc/amd/common/block/spi/fch_spi_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/spi/fch_spi_ctrl.c b/src/soc/amd/common/block/spi/fch_spi_ctrl.c index f79024776c..b2fe13d107 100644 --- a/src/soc/amd/common/block/spi/fch_spi_ctrl.c +++ b/src/soc/amd/common/block/spi/fch_spi_ctrl.c @@ -38,7 +38,7 @@ enum spi_dump_state_phase { static void dump_state(enum spi_dump_state_phase phase) { u8 dump_size; - u32 addr; + uintptr_t addr; if (!CONFIG(SOC_AMD_COMMON_BLOCK_SPI_DEBUG)) return; -- cgit v1.2.3