Blame view

kernel/linux-rt-4.4.41/arch/arm/mach-iop13xx/include/mach/uncompress.h 400 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #include <asm/types.h>
  #include <linux/serial_reg.h>
  #include <mach/hardware.h>
  
  #define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
  #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
  
  static inline void putc(char c)
  {
  	while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
  		barrier();
  	UART_BASE[UART_TX] = c;
  }
  
  static inline void flush(void)
  {
  }
  
  /*
   * nothing to do
   */
  #define arch_decomp_setup()