Path: blob/master/arch/arm/mach-nuc93x/include/mach/uncompress.h
17840 views
/*1* arch/arm/mach-nuc93x/include/mach/uncompress.h2*3* Copyright (c) 2008 Nuvoton technology corporation4* All rights reserved.5*6* Wan ZongShun <[email protected]>7*8* Based on arch/arm/mach-s3c2410/include/mach/uncompress.h9*10* This program is free software; you can redistribute it and/or modify11* it under the terms of the GNU General Public License as published by12* the Free Software Foundation; either version 2 of the License, or13* (at your option) any later version.14*15*/1617#ifndef __ASM_ARCH_UNCOMPRESS_H18#define __ASM_ARCH_UNCOMPRESS_H1920/* Defines for UART registers */2122#include <mach/regs-serial.h>23#include <mach/map.h>24#include <linux/serial_reg.h>2526#define arch_decomp_wdog()2728#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)29static u32 * const uart_base = (u32 *)UART0_PA;3031static void putc(int ch)32{33/* Check THRE and TEMT bits before we transmit the character.34*/35while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)36barrier();3738*uart_base = ch;39}4041static inline void flush(void)42{43}4445static void arch_decomp_setup(void)46{47}4849#endif/* __ASM_NUC93X_UNCOMPRESS_H */505152