~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to arch/arm/mach-nuc93x/include/mach/uncompress.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * arch/arm/mach-nuc93x/include/mach/uncompress.h
 
3
 *
 
4
 * Copyright (c) 2008 Nuvoton technology corporation
 
5
 * All rights reserved.
 
6
 *
 
7
 * Wan ZongShun <mcuos.com@gmail.com>
 
8
 *
 
9
 * Based on arch/arm/mach-s3c2410/include/mach/uncompress.h
 
10
 *
 
11
 * This program is free software; you can redistribute it and/or modify
 
12
 * it under the terms of the GNU General Public License as published by
 
13
 * the Free Software Foundation; either version 2 of the License, or
 
14
 * (at your option) any later version.
 
15
 *
 
16
 */
 
17
 
 
18
#ifndef __ASM_ARCH_UNCOMPRESS_H
 
19
#define __ASM_ARCH_UNCOMPRESS_H
 
20
 
 
21
/* Defines for UART registers */
 
22
 
 
23
#include <mach/regs-serial.h>
 
24
#include <mach/map.h>
 
25
#include <linux/serial_reg.h>
 
26
 
 
27
#define arch_decomp_wdog()
 
28
 
 
29
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
 
30
static u32 * uart_base = (u32 *)UART0_PA;
 
31
 
 
32
static void putc(int ch)
 
33
{
 
34
        /* Check THRE and TEMT bits before we transmit the character.
 
35
         */
 
36
        while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
 
37
                barrier();
 
38
 
 
39
        *uart_base = ch;
 
40
}
 
41
 
 
42
static inline void flush(void)
 
43
{
 
44
}
 
45
 
 
46
static void arch_decomp_setup(void)
 
47
{
 
48
}
 
49
 
 
50
#endif/* __ASM_NUC93X_UNCOMPRESS_H */