Merge branch 'for-linus' of git://codeaurora.org/quic/kernel/dwalker/linux-msm
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-msm / include / mach / uncompress.h
index 026e8955ace9d4c47cc53bf1118d54ba862a3bc6..d94292c29d8e27ed6a736a8bb24b7d8f640d3dd0 100644 (file)
 #ifndef __ASM_ARCH_MSM_UNCOMPRESS_H
 
 #include "hardware.h"
+#include "linux/io.h"
+#include "mach/msm_iomap.h"
 
 static void putc(int c)
 {
+#if defined(MSM_DEBUG_UART_PHYS)
+       unsigned base = MSM_DEBUG_UART_PHYS;
+       while (!(readl(base + 0x08) & 0x04)) ;
+       writel(c, base + 0x0c);
+#endif
 }
 
 static inline void flush(void)