diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2024-03-21 14:00:19 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-03-22 13:41:08 +0000 |
commit | ceebacca0214a0f871fac91a1410e2fd3315bffd (patch) | |
tree | 8ca2698bb20921e321881583dabd80b570c1f4f3 /src | |
parent | 760b572e0dabcf014da7ae7a059c9e508369eb84 (diff) |
mb/lenovo/s230u: Fix compiling for 64bit mode
This fixes the warning when an integer is cast to a pointer of a
different size.
Change-Id: Ide2827ec1b86dcbd804be9f3269c6c968cb4257b
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81381
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/lenovo/s230u/ec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/lenovo/s230u/ec.h b/src/mainboard/lenovo/s230u/ec.h index 273f58bda1..7ef06e2f8c 100644 --- a/src/mainboard/lenovo/s230u/ec.h +++ b/src/mainboard/lenovo/s230u/ec.h @@ -5,7 +5,7 @@ void lenovo_s230u_ec_init(void); -#define ECMM(x) (*((volatile u8 *)(CONFIG_EC_BASE_ADDRESS + x))) +#define ECMM(x) (*((volatile u8 *)(uintptr_t)(CONFIG_EC_BASE_ADDRESS + x))) #define ec_mm_read(addr) (ECMM(0x100 + addr)) #define ec_mm_write(addr, data) (ECMM(0x100 + addr) = data) #define ec_mm_set_bit(addr, bit) (ECMM(0x100 + addr) |= 1 << bit) |