summaryrefslogtreecommitdiffstats
path: root/kernel/arch/mips/jz4740/prom.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/mips/jz4740/prom.c')
-rw-r--r--kernel/arch/mips/jz4740/prom.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/arch/mips/jz4740/prom.c b/kernel/arch/mips/jz4740/prom.c
index 5a93f3815..6984683c9 100644
--- a/kernel/arch/mips/jz4740/prom.c
+++ b/kernel/arch/mips/jz4740/prom.c
@@ -53,16 +53,3 @@ void __init prom_init(void)
void __init prom_free_prom_memory(void)
{
}
-
-#define UART_REG(_reg) ((void __iomem *)CKSEG1ADDR(JZ4740_UART0_BASE_ADDR + (_reg << 2)))
-
-void prom_putchar(char c)
-{
- uint8_t lsr;
-
- do {
- lsr = readb(UART_REG(UART_LSR));
- } while ((lsr & UART_LSR_TEMT) == 0);
-
- writeb(c, UART_REG(UART_TX));
-}