From 25866fe89321ca57aae4dde062db4c88086e187b Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 29 Sep 2022 16:06:45 +0200 Subject: soc/amd/cezanne,mendocino,picasso/uart: use write16p to avoid typecasts Signed-off-by: Felix Held Change-Id: I6e743068dfcf9d393096f775759181af1a1c470d Reviewed-on: https://review.coreboot.org/c/coreboot/+/67979 Reviewed-by: Raul Rangel Reviewed-by: Fred Reitberger Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/soc/amd/picasso/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/picasso') diff --git a/src/soc/amd/picasso/uart.c b/src/soc/amd/picasso/uart.c index 5763a5b17c..4ae4c5ced4 100644 --- a/src/soc/amd/picasso/uart.c +++ b/src/soc/amd/picasso/uart.c @@ -45,7 +45,7 @@ uintptr_t get_uart_base(unsigned int idx) void clear_uart_legacy_config(void) { - write16((void *)FCH_LEGACY_UART_DECODE, 0); + write16p(FCH_LEGACY_UART_DECODE, 0); } void set_uart_config(unsigned int idx) -- cgit v1.2.3