mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 19:11:31 +00:00
41 lines
741 B
C
41 lines
741 B
C
|
/*
|
||
|
* arch/arm/mach-prima2/include/mach/uncompress.h
|
||
|
*
|
||
|
* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
|
||
|
*
|
||
|
* Licensed under GPLv2 or later.
|
||
|
*/
|
||
|
|
||
|
#ifndef __ASM_ARCH_UNCOMPRESS_H
|
||
|
#define __ASM_ARCH_UNCOMPRESS_H
|
||
|
|
||
|
#include <linux/io.h>
|
||
|
#include <mach/hardware.h>
|
||
|
#include <mach/uart.h>
|
||
|
|
||
|
void arch_decomp_setup(void)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
#define arch_decomp_wdog()
|
||
|
|
||
|
static __inline__ void putc(char c)
|
||
|
{
|
||
|
/*
|
||
|
* during kernel decompression, all mappings are flat:
|
||
|
* virt_addr == phys_addr
|
||
|
*/
|
||
|
while (__raw_readl(SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_STATUS)
|
||
|
& SIRFSOC_UART1_TXFIFO_FULL)
|
||
|
barrier();
|
||
|
|
||
|
__raw_writel(c, SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_DATA);
|
||
|
}
|
||
|
|
||
|
static inline void flush(void)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|