soc/amd/cezanne,mendocino,picasso/uart: use write16p to avoid typecasts
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I6e743068dfcf9d393096f775759181af1a1c470d Reviewed-on: https://review.coreboot.org/c/coreboot/+/67979 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
f69cb29c20
commit
25866fe893
|
@ -37,7 +37,7 @@ uintptr_t get_uart_base(unsigned int idx)
|
||||||
|
|
||||||
void clear_uart_legacy_config(void)
|
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)
|
void set_uart_config(unsigned int idx)
|
||||||
|
|
|
@ -49,7 +49,7 @@ uintptr_t get_uart_base(unsigned int idx)
|
||||||
|
|
||||||
void clear_uart_legacy_config(void)
|
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)
|
void set_uart_config(unsigned int idx)
|
||||||
|
|
|
@ -45,7 +45,7 @@ uintptr_t get_uart_base(unsigned int idx)
|
||||||
|
|
||||||
void clear_uart_legacy_config(void)
|
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)
|
void set_uart_config(unsigned int idx)
|
||||||
|
|
Loading…
Reference in New Issue