aboutsummaryrefslogtreecommitdiff
path: root/src/soc/samsung
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2014-10-16 10:53:48 +0000
committerRonald G. Minnich <rminnich@gmail.com>2014-10-16 17:41:14 +0200
commit2adb297cf930ff5c2d78d828d801461feae3254b (patch)
treece8c7efa222f02c7a53d16222822b6596ecb4ca9 /src/soc/samsung
parentff178beee572564dcfabd96d04071edcb3412e5d (diff)
uarts: 32/64 cleanup
We had lots of casts that caused warnings when compiling on RISCV. Clean them up. Change-Id: I46fcb33147ad6bf75e49ebfdfa05990e8c7ae4eb Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/7066 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/samsung')
-rw-r--r--src/soc/samsung/exynos5250/uart.c2
-rw-r--r--src/soc/samsung/exynos5420/uart.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/samsung/exynos5250/uart.c b/src/soc/samsung/exynos5250/uart.c
index cc97291807..c02cdf74c0 100644
--- a/src/soc/samsung/exynos5250/uart.c
+++ b/src/soc/samsung/exynos5250/uart.c
@@ -157,7 +157,7 @@ static void exynos5_uart_tx_flush(struct s5p_uart *uart)
while (readl(&uart->ufstat) & 0x1ff0000);
}
-unsigned int uart_platform_base(int idx)
+uintptr_t uart_platform_base(int idx)
{
if (idx < 4)
return 0x12c00000 + idx * 0x10000;
diff --git a/src/soc/samsung/exynos5420/uart.c b/src/soc/samsung/exynos5420/uart.c
index be96d5b86c..b7ef0cb1bc 100644
--- a/src/soc/samsung/exynos5420/uart.c
+++ b/src/soc/samsung/exynos5420/uart.c
@@ -149,7 +149,7 @@ static void exynos5_uart_tx_byte(struct s5p_uart *uart, unsigned char data)
writeb(data, &uart->utxh);
}
-unsigned int uart_platform_base(int idx)
+uintptr_t uart_platform_base(int idx)
{
if (idx < 4)
return 0x12c00000 + idx * 0x10000;