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/drivers/uart | |
parent | ff178beee572564dcfabd96d04071edcb3412e5d (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/drivers/uart')
-rw-r--r-- | src/drivers/uart/oxpcie_early.c | 2 | ||||
-rw-r--r-- | src/drivers/uart/uart8250io.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/uart/oxpcie_early.c b/src/drivers/uart/oxpcie_early.c index fd378068b3..343056cdb6 100644 --- a/src/drivers/uart/oxpcie_early.c +++ b/src/drivers/uart/oxpcie_early.c @@ -77,7 +77,7 @@ static int oxpcie_uart_active(void) return (car_get_var(oxpcie_present)); } -unsigned int uart_platform_base(int idx) +uintptr_t uart_platform_base(int idx) { if (idx == 0 && oxpcie_uart_active()) return uart0_base; diff --git a/src/drivers/uart/uart8250io.c b/src/drivers/uart/uart8250io.c index f4f4d010a5..60a8d86361 100644 --- a/src/drivers/uart/uart8250io.c +++ b/src/drivers/uart/uart8250io.c @@ -105,7 +105,7 @@ static void uart8250_init(unsigned base_port, unsigned divisor) static const unsigned bases[] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 }; -unsigned int uart_platform_base(int idx) +uintptr_t uart_platform_base(int idx) { if (idx < ARRAY_SIZE(bases)) return bases[idx]; |