diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-16 10:53:48 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-16 17:41:14 +0200 |
commit | 2adb297cf930ff5c2d78d828d801461feae3254b (patch) | |
tree | ce8c7efa222f02c7a53d16222822b6596ecb4ca9 /src/cpu | |
parent | ff178beee572564dcfabd96d04071edcb3412e5d (diff) | |
download | coreboot-2adb297cf930ff5c2d78d828d801461feae3254b.tar.xz |
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/cpu')
-rw-r--r-- | src/cpu/allwinner/a10/uart_console.c | 2 | ||||
-rw-r--r-- | src/cpu/ti/am335x/uart.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/allwinner/a10/uart_console.c b/src/cpu/allwinner/a10/uart_console.c index b787961d39..ff8634856e 100644 --- a/src/cpu/allwinner/a10/uart_console.c +++ b/src/cpu/allwinner/a10/uart_console.c @@ -12,7 +12,7 @@ #include "memmap.h" -unsigned int uart_platform_base(int idx) +uintptr_t uart_platform_base(int idx) { /* UART blocks are mapped 0x400 bytes apart */ if (idx < 8) diff --git a/src/cpu/ti/am335x/uart.c b/src/cpu/ti/am335x/uart.c index d398d9aba6..57568341c2 100644 --- a/src/cpu/ti/am335x/uart.c +++ b/src/cpu/ti/am335x/uart.c @@ -153,7 +153,7 @@ unsigned int uart_platform_refclk(void) return 48000000; } -unsigned int uart_platform_base(int idx) +uintptr_t uart_platform_base(int idx) { const unsigned int bases[] = { 0x44e09000, 0x48022000, 0x48024000, |