Path: blob/master/arch/arm/mach-ks8695/include/mach/uncompress.h
15159 views
/*1* arch/arm/mach-ks8695/include/mach/uncompress.h2*3* Copyright (C) 2006 Ben Dooks <[email protected]>4* Copyright (C) 2006 Simtec Electronics5*6* KS8695 - Kernel uncompressor7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License version 2 as10* published by the Free Software Foundation.11*/1213#ifndef __ASM_ARCH_UNCOMPRESS_H14#define __ASM_ARCH_UNCOMPRESS_H1516#include <linux/io.h>17#include <mach/regs-uart.h>1819static void putc(char c)20{21while (!(__raw_readl(KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE))22barrier();2324__raw_writel(c, KS8695_UART_PA + KS8695_URTH);25}2627static inline void flush(void)28{29while (!(__raw_readl(KS8695_UART_PA + KS8695_URLS) & URLS_URTE))30barrier();31}3233#define arch_decomp_setup()34#define arch_decomp_wdog()3536#endif373839