2 * Copyright (C) 2010 Broadcom
3 * Copyright (C) 2003 ARM Limited
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #include <linux/amba/serial.h>
18 #include <mach/bcm2835_soc.h>
20 #define UART0_BASE BCM2835_DEBUG_PHYS
22 #define BCM2835_UART_DR IOMEM(UART0_BASE + UART01x_DR)
23 #define BCM2835_UART_FR IOMEM(UART0_BASE + UART01x_FR)
24 #define BCM2835_UART_CR IOMEM(UART0_BASE + UART011_CR)
26 static inline void putc(int c
)
28 while (__raw_readl(BCM2835_UART_FR
) & UART01x_FR_TXFF
)
31 __raw_writel(c
, BCM2835_UART_DR
);
34 static inline void flush(void)
39 fr
= __raw_readl(BCM2835_UART_FR
);
41 } while ((fr
& (UART011_FR_TXFE
| UART01x_FR_BUSY
)) != UART011_FR_TXFE
);
44 #define arch_decomp_setup()
45 #define arch_decomp_wdog()
This page took 0.032055 seconds and 5 git commands to generate.