blob: 9e3ce1c1cd3052db30cb6ba1144c9a6908805021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __MACH_DEBUG_LL_H__
#define __MACH_DEBUG_LL_H__
#include <io.h>
#include <mach/imx-regs.h>
#define UARTDBGDR 0x00
#define UARTDBGFR 0x18
# define TXFE (1 << 7)
# define TXFF (1 << 5)
static inline void PUTC_LL(int c)
{
void __iomem *base = (void *)IMX_DBGUART_BASE;
/* Wait for room in TX FIFO */
while (!(readl(base + UARTDBGFR) & TXFE));
writel(c, base + UARTDBGDR);
}
#endif /* __MACH_DEBUG_LL_H__ */
|