2 * BCM63XX specific implementation parts
4 * Copyright (C) 2020 Álvaro Fernández Rojas <noltari@gmail.com>
5 * Copyright (C) 2014 Jonas Gorski <jogo@openwrt.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published
9 * by the Free Software Foundation.
15 #define READREG(r) *(volatile unsigned int *)(r)
16 #define WRITEREG(r,v) *(volatile unsigned int *)(r) = v
18 #define UART_IR_REG 0x10
19 #define UART_FIFO_REG 0x14
21 static void wait_xfered(void)
26 val
= READREG(UART_BASE
+ UART_IR_REG
);
32 void board_putc(int ch
)
38 WRITEREG(UART_BASE
+ UART_FIFO_REG
, ch
);