diff options
Diffstat (limited to 'src/include/console/uart.h')
-rw-r--r-- | src/include/console/uart.h | 7 |
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); |