Blame view

kernel/linux-rt-4.4.41/arch/arm/mach-omap1/include/mach/serial.h 1.34 KB
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  /*
   * Copyright (C) 2009 Texas Instruments
   * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   * GNU General Public License for more details.
   */
  
  #ifndef __ASM_ARCH_SERIAL_H
  #define __ASM_ARCH_SERIAL_H
  
  #include <linux/init.h>
  
  /*
   * Memory entry used for the DEBUG_LL UART configuration, relative to
   * start of RAM. See also uncompress.h and debug-macro.S.
   *
   * Note that using a memory location for storing the UART configuration
   * has at least two limitations:
   *
   * 1. Kernel uncompress code cannot overlap OMAP_UART_INFO as the
   *    uncompress code could then partially overwrite itself
   * 2. We assume printascii is called at least once before paging_init,
   *    and addruart has a chance to read OMAP_UART_INFO
   */
  #define OMAP_UART_INFO_OFS	0x3ffc
  
  #define OMAP_PORT_SHIFT		2
  #define OMAP7XX_PORT_SHIFT	0
  
  #define OMAP1510_BASE_BAUD	(12000000/16)
  #define OMAP16XX_BASE_BAUD	(48000000/16)
  
  /*
   * DEBUG_LL port encoding stored into the UART1 scratchpad register by
   * decomp_setup in uncompress.h
   */
  #define OMAP1UART1		11
  #define OMAP1UART2		12
  #define OMAP1UART3		13
  
  #ifndef __ASSEMBLER__
  extern void omap_serial_init(void);
  #endif
  
  #endif