summaryrefslogtreecommitdiff
path: root/src/include/console/uart.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-24 20:51:30 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-04-09 11:13:03 +0200
commitc2610a4a186c6e5a05f6518c2c7a734fde8f6cfd (patch)
tree21af900856344ac5a21ff6eca474d54fd7de97ac /src/include/console/uart.h
parente5760af3980ea4c55afd7e759e8ca2a078a4a1dc (diff)
downloadcoreboot-c2610a4a186c6e5a05f6518c2c7a734fde8f6cfd.tar.xz
uart: Prepare to support multiple base addresses
Prepare low-level register access to take UART base address as a parameter. This is done to support a list of base addresses defined in the platform. Change-Id: Ie630e55f2562f099b0ba9eb94b08c92d26dfdf2e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5309 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/include/console/uart.h')
-rw-r--r--src/include/console/uart.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/console/uart.h b/src/include/console/uart.h
index f0371a2a98..6a1251e5d0 100644
--- a/src/include/console/uart.h
+++ b/src/include/console/uart.h
@@ -48,6 +48,13 @@ int uart_can_rx_byte(void);
unsigned int uart_platform_base(int idx);
uint32_t uartmem_getbaseaddr(void);
+#if !defined(__ROMCC__)
+static inline void *uart_platform_baseptr(int idx)
+{
+ return (void *)uart_platform_base(idx);
+}
+#endif
+
void oxford_init(void);
void oxford_remap(unsigned int new_base);