~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/serial_s3c.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/serial_s3c.h (Version linux-6.12-rc7) and /include/linux/serial_s3c.h (Version linux-5.15.171)


  1 /* SPDX-License-Identifier: GPL-2.0+ */             1 /* SPDX-License-Identifier: GPL-2.0+ */
  2 /*                                                  2 /*
  3  *  Internal header file for Samsung S3C2410 s      3  *  Internal header file for Samsung S3C2410 serial ports (UART0-2)
  4  *                                                  4  *
  5  *  Copyright (C) 2002 Shane Nay (shane@minirl      5  *  Copyright (C) 2002 Shane Nay (shane@minirl.com)
  6  *                                                  6  *
  7  *  Additional defines, Copyright 2003 Simtec       7  *  Additional defines, Copyright 2003 Simtec Electronics (linux@simtec.co.uk)
  8  *                                                  8  *
  9  *  Adapted from:                                   9  *  Adapted from:
 10  *                                                 10  *
 11  *  Internal header file for MX1ADS serial por     11  *  Internal header file for MX1ADS serial ports (UART1 & 2)
 12  *                                                 12  *
 13  *  Copyright (C) 2002 Shane Nay (shane@minirl     13  *  Copyright (C) 2002 Shane Nay (shane@minirl.com)
 14  */                                                14  */
 15                                                    15 
 16 #ifndef __ASM_ARM_REGS_SERIAL_H                    16 #ifndef __ASM_ARM_REGS_SERIAL_H
 17 #define __ASM_ARM_REGS_SERIAL_H                    17 #define __ASM_ARM_REGS_SERIAL_H
 18                                                    18 
 19 #define S3C2410_URXH      (0x24)                   19 #define S3C2410_URXH      (0x24)
 20 #define S3C2410_UTXH      (0x20)                   20 #define S3C2410_UTXH      (0x20)
 21 #define S3C2410_ULCON     (0x00)                   21 #define S3C2410_ULCON     (0x00)
 22 #define S3C2410_UCON      (0x04)                   22 #define S3C2410_UCON      (0x04)
 23 #define S3C2410_UFCON     (0x08)                   23 #define S3C2410_UFCON     (0x08)
 24 #define S3C2410_UMCON     (0x0C)                   24 #define S3C2410_UMCON     (0x0C)
 25 #define S3C2410_UBRDIV    (0x28)                   25 #define S3C2410_UBRDIV    (0x28)
 26 #define S3C2410_UTRSTAT   (0x10)                   26 #define S3C2410_UTRSTAT   (0x10)
 27 #define S3C2410_UERSTAT   (0x14)                   27 #define S3C2410_UERSTAT   (0x14)
 28 #define S3C2410_UFSTAT    (0x18)                   28 #define S3C2410_UFSTAT    (0x18)
 29 #define S3C2410_UMSTAT    (0x1C)                   29 #define S3C2410_UMSTAT    (0x1C)
                                                   >>  30 #define USI_CON           (0xC4)
                                                   >>  31 #define USI_OPTION        (0xC8)
                                                   >>  32 
                                                   >>  33 #define USI_CON_RESET                   (1<<0)
                                                   >>  34 #define USI_CON_RESET_MASK              (1<<0)
                                                   >>  35 
                                                   >>  36 #define USI_OPTION_HWACG_CLKREQ_ON      (1<<1)
                                                   >>  37 #define USI_OPTION_HWACG_CLKSTOP_ON     (1<<2)
                                                   >>  38 #define USI_OPTION_HWACG_MASK           (3<<1)
 30                                                    39 
 31 #define S3C2410_LCON_CFGMASK      ((0xF<<3)|(0     40 #define S3C2410_LCON_CFGMASK      ((0xF<<3)|(0x3))
 32                                                    41 
 33 #define S3C2410_LCON_CS5          (0x0)            42 #define S3C2410_LCON_CS5          (0x0)
 34 #define S3C2410_LCON_CS6          (0x1)            43 #define S3C2410_LCON_CS6          (0x1)
 35 #define S3C2410_LCON_CS7          (0x2)            44 #define S3C2410_LCON_CS7          (0x2)
 36 #define S3C2410_LCON_CS8          (0x3)            45 #define S3C2410_LCON_CS8          (0x3)
 37 #define S3C2410_LCON_CSMASK       (0x3)            46 #define S3C2410_LCON_CSMASK       (0x3)
 38                                                    47 
 39 #define S3C2410_LCON_PNONE        (0x0)            48 #define S3C2410_LCON_PNONE        (0x0)
 40 #define S3C2410_LCON_PEVEN        (0x5 << 3)       49 #define S3C2410_LCON_PEVEN        (0x5 << 3)
 41 #define S3C2410_LCON_PODD         (0x4 << 3)       50 #define S3C2410_LCON_PODD         (0x4 << 3)
 42 #define S3C2410_LCON_PMASK        (0x7 << 3)       51 #define S3C2410_LCON_PMASK        (0x7 << 3)
 43                                                    52 
 44 #define S3C2410_LCON_STOPB        (1<<2)           53 #define S3C2410_LCON_STOPB        (1<<2)
 45 #define S3C2410_LCON_IRM          (1<<6)           54 #define S3C2410_LCON_IRM          (1<<6)
 46                                                    55 
 47 #define S3C2440_UCON_CLKMASK      (3<<10)          56 #define S3C2440_UCON_CLKMASK      (3<<10)
 48 #define S3C2440_UCON_CLKSHIFT     (10)             57 #define S3C2440_UCON_CLKSHIFT     (10)
 49 #define S3C2440_UCON_PCLK         (0<<10)          58 #define S3C2440_UCON_PCLK         (0<<10)
 50 #define S3C2440_UCON_UCLK         (1<<10)          59 #define S3C2440_UCON_UCLK         (1<<10)
 51 #define S3C2440_UCON_PCLK2        (2<<10)          60 #define S3C2440_UCON_PCLK2        (2<<10)
 52 #define S3C2440_UCON_FCLK         (3<<10)          61 #define S3C2440_UCON_FCLK         (3<<10)
 53 #define S3C2443_UCON_EPLL         (3<<10)          62 #define S3C2443_UCON_EPLL         (3<<10)
 54                                                    63 
 55 #define S3C6400_UCON_CLKMASK    (3<<10)            64 #define S3C6400_UCON_CLKMASK    (3<<10)
 56 #define S3C6400_UCON_CLKSHIFT   (10)               65 #define S3C6400_UCON_CLKSHIFT   (10)
 57 #define S3C6400_UCON_PCLK       (0<<10)            66 #define S3C6400_UCON_PCLK       (0<<10)
 58 #define S3C6400_UCON_PCLK2      (2<<10)            67 #define S3C6400_UCON_PCLK2      (2<<10)
 59 #define S3C6400_UCON_UCLK0      (1<<10)            68 #define S3C6400_UCON_UCLK0      (1<<10)
 60 #define S3C6400_UCON_UCLK1      (3<<10)            69 #define S3C6400_UCON_UCLK1      (3<<10)
 61                                                    70 
 62 #define S3C2440_UCON2_FCLK_EN     (1<<15)          71 #define S3C2440_UCON2_FCLK_EN     (1<<15)
 63 #define S3C2440_UCON0_DIVMASK     (15 << 12)       72 #define S3C2440_UCON0_DIVMASK     (15 << 12)
 64 #define S3C2440_UCON1_DIVMASK     (15 << 12)       73 #define S3C2440_UCON1_DIVMASK     (15 << 12)
 65 #define S3C2440_UCON2_DIVMASK     (7 << 12)        74 #define S3C2440_UCON2_DIVMASK     (7 << 12)
 66 #define S3C2440_UCON_DIVSHIFT     (12)             75 #define S3C2440_UCON_DIVSHIFT     (12)
 67                                                    76 
 68 #define S3C2412_UCON_CLKMASK    (3<<10)            77 #define S3C2412_UCON_CLKMASK    (3<<10)
 69 #define S3C2412_UCON_CLKSHIFT   (10)               78 #define S3C2412_UCON_CLKSHIFT   (10)
 70 #define S3C2412_UCON_UCLK       (1<<10)            79 #define S3C2412_UCON_UCLK       (1<<10)
 71 #define S3C2412_UCON_USYSCLK    (3<<10)            80 #define S3C2412_UCON_USYSCLK    (3<<10)
 72 #define S3C2412_UCON_PCLK       (0<<10)            81 #define S3C2412_UCON_PCLK       (0<<10)
 73 #define S3C2412_UCON_PCLK2      (2<<10)            82 #define S3C2412_UCON_PCLK2      (2<<10)
 74                                                    83 
 75 #define S3C2410_UCON_CLKMASK    (1 << 10)          84 #define S3C2410_UCON_CLKMASK    (1 << 10)
 76 #define S3C2410_UCON_CLKSHIFT   (10)               85 #define S3C2410_UCON_CLKSHIFT   (10)
 77 #define S3C2410_UCON_UCLK         (1<<10)          86 #define S3C2410_UCON_UCLK         (1<<10)
 78 #define S3C2410_UCON_SBREAK       (1<<4)           87 #define S3C2410_UCON_SBREAK       (1<<4)
 79                                                    88 
 80 #define S3C2410_UCON_TXILEVEL     (1<<9)           89 #define S3C2410_UCON_TXILEVEL     (1<<9)
 81 #define S3C2410_UCON_RXILEVEL     (1<<8)           90 #define S3C2410_UCON_RXILEVEL     (1<<8)
 82 #define S3C2410_UCON_TXIRQMODE    (1<<2)           91 #define S3C2410_UCON_TXIRQMODE    (1<<2)
 83 #define S3C2410_UCON_RXIRQMODE    (1<<0)           92 #define S3C2410_UCON_RXIRQMODE    (1<<0)
 84 #define S3C2410_UCON_RXFIFO_TOI   (1<<7)           93 #define S3C2410_UCON_RXFIFO_TOI   (1<<7)
 85 #define S3C2443_UCON_RXERR_IRQEN  (1<<6)           94 #define S3C2443_UCON_RXERR_IRQEN  (1<<6)
 86 #define S3C2410_UCON_LOOPBACK     (1<<5)       !!  95 #define S3C2443_UCON_LOOPBACK     (1<<5)
 87                                                    96 
 88 #define S3C2410_UCON_DEFAULT      (S3C2410_UCO     97 #define S3C2410_UCON_DEFAULT      (S3C2410_UCON_TXILEVEL  | \
 89                                    S3C2410_UCO     98                                    S3C2410_UCON_RXILEVEL  | \
 90                                    S3C2410_UCO     99                                    S3C2410_UCON_TXIRQMODE | \
 91                                    S3C2410_UCO    100                                    S3C2410_UCON_RXIRQMODE | \
 92                                    S3C2410_UCO    101                                    S3C2410_UCON_RXFIFO_TOI)
 93                                                   102 
 94 #define S3C64XX_UCON_TXBURST_1          (0<<20    103 #define S3C64XX_UCON_TXBURST_1          (0<<20)
 95 #define S3C64XX_UCON_TXBURST_4          (1<<20    104 #define S3C64XX_UCON_TXBURST_4          (1<<20)
 96 #define S3C64XX_UCON_TXBURST_8          (2<<20    105 #define S3C64XX_UCON_TXBURST_8          (2<<20)
 97 #define S3C64XX_UCON_TXBURST_16         (3<<20    106 #define S3C64XX_UCON_TXBURST_16         (3<<20)
 98 #define S3C64XX_UCON_TXBURST_MASK       (0xf<<    107 #define S3C64XX_UCON_TXBURST_MASK       (0xf<<20)
 99 #define S3C64XX_UCON_RXBURST_1          (0<<16    108 #define S3C64XX_UCON_RXBURST_1          (0<<16)
100 #define S3C64XX_UCON_RXBURST_4          (1<<16    109 #define S3C64XX_UCON_RXBURST_4          (1<<16)
101 #define S3C64XX_UCON_RXBURST_8          (2<<16    110 #define S3C64XX_UCON_RXBURST_8          (2<<16)
102 #define S3C64XX_UCON_RXBURST_16         (3<<16    111 #define S3C64XX_UCON_RXBURST_16         (3<<16)
103 #define S3C64XX_UCON_RXBURST_MASK       (0xf<<    112 #define S3C64XX_UCON_RXBURST_MASK       (0xf<<16)
104 #define S3C64XX_UCON_TIMEOUT_SHIFT      (12)      113 #define S3C64XX_UCON_TIMEOUT_SHIFT      (12)
105 #define S3C64XX_UCON_TIMEOUT_MASK       (0xf<<    114 #define S3C64XX_UCON_TIMEOUT_MASK       (0xf<<12)
106 #define S3C64XX_UCON_EMPTYINT_EN        (1<<11    115 #define S3C64XX_UCON_EMPTYINT_EN        (1<<11)
107 #define S3C64XX_UCON_DMASUS_EN          (1<<10    116 #define S3C64XX_UCON_DMASUS_EN          (1<<10)
108 #define S3C64XX_UCON_TXINT_LEVEL        (1<<9)    117 #define S3C64XX_UCON_TXINT_LEVEL        (1<<9)
109 #define S3C64XX_UCON_RXINT_LEVEL        (1<<8)    118 #define S3C64XX_UCON_RXINT_LEVEL        (1<<8)
110 #define S3C64XX_UCON_TIMEOUT_EN         (1<<7)    119 #define S3C64XX_UCON_TIMEOUT_EN         (1<<7)
111 #define S3C64XX_UCON_ERRINT_EN          (1<<6)    120 #define S3C64XX_UCON_ERRINT_EN          (1<<6)
112 #define S3C64XX_UCON_TXMODE_DMA         (2<<2)    121 #define S3C64XX_UCON_TXMODE_DMA         (2<<2)
113 #define S3C64XX_UCON_TXMODE_CPU         (1<<2)    122 #define S3C64XX_UCON_TXMODE_CPU         (1<<2)
114 #define S3C64XX_UCON_TXMODE_MASK        (3<<2)    123 #define S3C64XX_UCON_TXMODE_MASK        (3<<2)
115 #define S3C64XX_UCON_RXMODE_DMA         (2<<0)    124 #define S3C64XX_UCON_RXMODE_DMA         (2<<0)
116 #define S3C64XX_UCON_RXMODE_CPU         (1<<0)    125 #define S3C64XX_UCON_RXMODE_CPU         (1<<0)
117 #define S3C64XX_UCON_RXMODE_MASK        (3<<0)    126 #define S3C64XX_UCON_RXMODE_MASK        (3<<0)
118                                                   127 
119 #define S3C2410_UFCON_FIFOMODE    (1<<0)          128 #define S3C2410_UFCON_FIFOMODE    (1<<0)
120 #define S3C2410_UFCON_TXTRIG0     (0<<6)          129 #define S3C2410_UFCON_TXTRIG0     (0<<6)
121 #define S3C2410_UFCON_RXTRIG8     (1<<4)          130 #define S3C2410_UFCON_RXTRIG8     (1<<4)
122 #define S3C2410_UFCON_RXTRIG12    (2<<4)          131 #define S3C2410_UFCON_RXTRIG12    (2<<4)
123                                                   132 
124 /* S3C2440 FIFO trigger levels */                 133 /* S3C2440 FIFO trigger levels */
125 #define S3C2440_UFCON_RXTRIG1     (0<<4)          134 #define S3C2440_UFCON_RXTRIG1     (0<<4)
126 #define S3C2440_UFCON_RXTRIG8     (1<<4)          135 #define S3C2440_UFCON_RXTRIG8     (1<<4)
127 #define S3C2440_UFCON_RXTRIG16    (2<<4)          136 #define S3C2440_UFCON_RXTRIG16    (2<<4)
128 #define S3C2440_UFCON_RXTRIG32    (3<<4)          137 #define S3C2440_UFCON_RXTRIG32    (3<<4)
129                                                   138 
130 #define S3C2440_UFCON_TXTRIG0     (0<<6)          139 #define S3C2440_UFCON_TXTRIG0     (0<<6)
131 #define S3C2440_UFCON_TXTRIG16    (1<<6)          140 #define S3C2440_UFCON_TXTRIG16    (1<<6)
132 #define S3C2440_UFCON_TXTRIG32    (2<<6)          141 #define S3C2440_UFCON_TXTRIG32    (2<<6)
133 #define S3C2440_UFCON_TXTRIG48    (3<<6)          142 #define S3C2440_UFCON_TXTRIG48    (3<<6)
134                                                   143 
135 #define S3C2410_UFCON_RESETBOTH   (3<<1)          144 #define S3C2410_UFCON_RESETBOTH   (3<<1)
136 #define S3C2410_UFCON_RESETTX     (1<<2)          145 #define S3C2410_UFCON_RESETTX     (1<<2)
137 #define S3C2410_UFCON_RESETRX     (1<<1)          146 #define S3C2410_UFCON_RESETRX     (1<<1)
138                                                   147 
139 #define S3C2410_UFCON_DEFAULT     (S3C2410_UFC    148 #define S3C2410_UFCON_DEFAULT     (S3C2410_UFCON_FIFOMODE | \
140                                    S3C2410_UFC    149                                    S3C2410_UFCON_TXTRIG0  | \
141                                    S3C2410_UFC    150                                    S3C2410_UFCON_RXTRIG8 )
142                                                   151 
143 #define S3C2410_UMCOM_AFC         (1<<4)          152 #define S3C2410_UMCOM_AFC         (1<<4)
144 #define S3C2410_UMCOM_RTS_LOW     (1<<0)          153 #define S3C2410_UMCOM_RTS_LOW     (1<<0)
145                                                   154 
146 #define S3C2412_UMCON_AFC_63    (0<<5)            155 #define S3C2412_UMCON_AFC_63    (0<<5)          /* same as s3c2443 */
147 #define S3C2412_UMCON_AFC_56    (1<<5)            156 #define S3C2412_UMCON_AFC_56    (1<<5)
148 #define S3C2412_UMCON_AFC_48    (2<<5)            157 #define S3C2412_UMCON_AFC_48    (2<<5)
149 #define S3C2412_UMCON_AFC_40    (3<<5)            158 #define S3C2412_UMCON_AFC_40    (3<<5)
150 #define S3C2412_UMCON_AFC_32    (4<<5)            159 #define S3C2412_UMCON_AFC_32    (4<<5)
151 #define S3C2412_UMCON_AFC_24    (5<<5)            160 #define S3C2412_UMCON_AFC_24    (5<<5)
152 #define S3C2412_UMCON_AFC_16    (6<<5)            161 #define S3C2412_UMCON_AFC_16    (6<<5)
153 #define S3C2412_UMCON_AFC_8     (7<<5)            162 #define S3C2412_UMCON_AFC_8     (7<<5)
154                                                   163 
155 #define S3C2410_UFSTAT_TXFULL     (1<<9)          164 #define S3C2410_UFSTAT_TXFULL     (1<<9)
156 #define S3C2410_UFSTAT_RXFULL     (1<<8)          165 #define S3C2410_UFSTAT_RXFULL     (1<<8)
157 #define S3C2410_UFSTAT_TXMASK     (15<<4)         166 #define S3C2410_UFSTAT_TXMASK     (15<<4)
158 #define S3C2410_UFSTAT_TXSHIFT    (4)             167 #define S3C2410_UFSTAT_TXSHIFT    (4)
159 #define S3C2410_UFSTAT_RXMASK     (15<<0)         168 #define S3C2410_UFSTAT_RXMASK     (15<<0)
160 #define S3C2410_UFSTAT_RXSHIFT    (0)             169 #define S3C2410_UFSTAT_RXSHIFT    (0)
161                                                   170 
162 /* UFSTAT S3C2443 same as S3C2440 */              171 /* UFSTAT S3C2443 same as S3C2440 */
163 #define S3C2440_UFSTAT_TXFULL     (1<<14)         172 #define S3C2440_UFSTAT_TXFULL     (1<<14)
164 #define S3C2440_UFSTAT_RXFULL     (1<<6)          173 #define S3C2440_UFSTAT_RXFULL     (1<<6)
165 #define S3C2440_UFSTAT_TXSHIFT    (8)             174 #define S3C2440_UFSTAT_TXSHIFT    (8)
166 #define S3C2440_UFSTAT_RXSHIFT    (0)             175 #define S3C2440_UFSTAT_RXSHIFT    (0)
167 #define S3C2440_UFSTAT_TXMASK     (63<<8)         176 #define S3C2440_UFSTAT_TXMASK     (63<<8)
168 #define S3C2440_UFSTAT_RXMASK     (63)            177 #define S3C2440_UFSTAT_RXMASK     (63)
169                                                   178 
170 #define S3C2410_UTRSTAT_TIMEOUT   (1<<3)          179 #define S3C2410_UTRSTAT_TIMEOUT   (1<<3)
171 #define S3C2410_UTRSTAT_TXE       (1<<2)          180 #define S3C2410_UTRSTAT_TXE       (1<<2)
172 #define S3C2410_UTRSTAT_TXFE      (1<<1)          181 #define S3C2410_UTRSTAT_TXFE      (1<<1)
173 #define S3C2410_UTRSTAT_RXDR      (1<<0)          182 #define S3C2410_UTRSTAT_RXDR      (1<<0)
174                                                   183 
175 #define S3C2410_UERSTAT_OVERRUN   (1<<0)          184 #define S3C2410_UERSTAT_OVERRUN   (1<<0)
176 #define S3C2410_UERSTAT_FRAME     (1<<2)          185 #define S3C2410_UERSTAT_FRAME     (1<<2)
177 #define S3C2410_UERSTAT_BREAK     (1<<3)          186 #define S3C2410_UERSTAT_BREAK     (1<<3)
178 #define S3C2443_UERSTAT_PARITY    (1<<1)          187 #define S3C2443_UERSTAT_PARITY    (1<<1)
179                                                   188 
180 #define S3C2410_UERSTAT_ANY       (S3C2410_UER    189 #define S3C2410_UERSTAT_ANY       (S3C2410_UERSTAT_OVERRUN | \
181                                    S3C2410_UER    190                                    S3C2410_UERSTAT_FRAME | \
182                                    S3C2410_UER    191                                    S3C2410_UERSTAT_BREAK)
183                                                   192 
184 #define S3C2410_UMSTAT_CTS        (1<<0)          193 #define S3C2410_UMSTAT_CTS        (1<<0)
185 #define S3C2410_UMSTAT_DeltaCTS   (1<<2)          194 #define S3C2410_UMSTAT_DeltaCTS   (1<<2)
186                                                   195 
187 #define S3C2443_DIVSLOT           (0x2C)          196 #define S3C2443_DIVSLOT           (0x2C)
188                                                   197 
189 /* S3C64XX interrupt registers. */                198 /* S3C64XX interrupt registers. */
190 #define S3C64XX_UINTP           0x30              199 #define S3C64XX_UINTP           0x30
191 #define S3C64XX_UINTSP          0x34              200 #define S3C64XX_UINTSP          0x34
192 #define S3C64XX_UINTM           0x38              201 #define S3C64XX_UINTM           0x38
193                                                   202 
194 #define S3C64XX_UINTM_RXD       (0)               203 #define S3C64XX_UINTM_RXD       (0)
195 #define S3C64XX_UINTM_ERROR     (1)               204 #define S3C64XX_UINTM_ERROR     (1)
196 #define S3C64XX_UINTM_TXD       (2)               205 #define S3C64XX_UINTM_TXD       (2)
197 #define S3C64XX_UINTM_RXD_MSK   (1 << S3C64XX_    206 #define S3C64XX_UINTM_RXD_MSK   (1 << S3C64XX_UINTM_RXD)
198 #define S3C64XX_UINTM_ERR_MSK   (1 << S3C64XX_    207 #define S3C64XX_UINTM_ERR_MSK   (1 << S3C64XX_UINTM_ERROR)
199 #define S3C64XX_UINTM_TXD_MSK   (1 << S3C64XX_    208 #define S3C64XX_UINTM_TXD_MSK   (1 << S3C64XX_UINTM_TXD)
200                                                   209 
201 /* Following are specific to S5PV210 */           210 /* Following are specific to S5PV210 */
202 #define S5PV210_UCON_CLKMASK    (1<<10)           211 #define S5PV210_UCON_CLKMASK    (1<<10)
203 #define S5PV210_UCON_CLKSHIFT   (10)              212 #define S5PV210_UCON_CLKSHIFT   (10)
204 #define S5PV210_UCON_PCLK       (0<<10)           213 #define S5PV210_UCON_PCLK       (0<<10)
205 #define S5PV210_UCON_UCLK       (1<<10)           214 #define S5PV210_UCON_UCLK       (1<<10)
206                                                   215 
207 #define S5PV210_UFCON_TXTRIG0   (0<<8)            216 #define S5PV210_UFCON_TXTRIG0   (0<<8)
208 #define S5PV210_UFCON_TXTRIG4   (1<<8)            217 #define S5PV210_UFCON_TXTRIG4   (1<<8)
209 #define S5PV210_UFCON_TXTRIG8   (2<<8)            218 #define S5PV210_UFCON_TXTRIG8   (2<<8)
210 #define S5PV210_UFCON_TXTRIG16  (3<<8)            219 #define S5PV210_UFCON_TXTRIG16  (3<<8)
211 #define S5PV210_UFCON_TXTRIG32  (4<<8)            220 #define S5PV210_UFCON_TXTRIG32  (4<<8)
212 #define S5PV210_UFCON_TXTRIG64  (5<<8)            221 #define S5PV210_UFCON_TXTRIG64  (5<<8)
213 #define S5PV210_UFCON_TXTRIG128 (6<<8)            222 #define S5PV210_UFCON_TXTRIG128 (6<<8)
214 #define S5PV210_UFCON_TXTRIG256 (7<<8)            223 #define S5PV210_UFCON_TXTRIG256 (7<<8)
215                                                   224 
216 #define S5PV210_UFCON_RXTRIG1   (0<<4)            225 #define S5PV210_UFCON_RXTRIG1   (0<<4)
217 #define S5PV210_UFCON_RXTRIG4   (1<<4)            226 #define S5PV210_UFCON_RXTRIG4   (1<<4)
218 #define S5PV210_UFCON_RXTRIG8   (2<<4)            227 #define S5PV210_UFCON_RXTRIG8   (2<<4)
219 #define S5PV210_UFCON_RXTRIG16  (3<<4)            228 #define S5PV210_UFCON_RXTRIG16  (3<<4)
220 #define S5PV210_UFCON_RXTRIG32  (4<<4)            229 #define S5PV210_UFCON_RXTRIG32  (4<<4)
221 #define S5PV210_UFCON_RXTRIG64  (5<<4)            230 #define S5PV210_UFCON_RXTRIG64  (5<<4)
222 #define S5PV210_UFCON_RXTRIG128 (6<<4)            231 #define S5PV210_UFCON_RXTRIG128 (6<<4)
223 #define S5PV210_UFCON_RXTRIG256 (7<<4)            232 #define S5PV210_UFCON_RXTRIG256 (7<<4)
224                                                   233 
225 #define S5PV210_UFSTAT_TXFULL   (1<<24)           234 #define S5PV210_UFSTAT_TXFULL   (1<<24)
226 #define S5PV210_UFSTAT_RXFULL   (1<<8)            235 #define S5PV210_UFSTAT_RXFULL   (1<<8)
227 #define S5PV210_UFSTAT_TXMASK   (255<<16)         236 #define S5PV210_UFSTAT_TXMASK   (255<<16)
228 #define S5PV210_UFSTAT_TXSHIFT  (16)              237 #define S5PV210_UFSTAT_TXSHIFT  (16)
229 #define S5PV210_UFSTAT_RXMASK   (255<<0)          238 #define S5PV210_UFSTAT_RXMASK   (255<<0)
230 #define S5PV210_UFSTAT_RXSHIFT  (0)               239 #define S5PV210_UFSTAT_RXSHIFT  (0)
231                                                   240 
232 #define S3C2410_UCON_CLKSEL0    (1 << 0)          241 #define S3C2410_UCON_CLKSEL0    (1 << 0)
233 #define S3C2410_UCON_CLKSEL1    (1 << 1)          242 #define S3C2410_UCON_CLKSEL1    (1 << 1)
234 #define S3C2410_UCON_CLKSEL2    (1 << 2)          243 #define S3C2410_UCON_CLKSEL2    (1 << 2)
235 #define S3C2410_UCON_CLKSEL3    (1 << 3)          244 #define S3C2410_UCON_CLKSEL3    (1 << 3)
236                                                   245 
237 /* Default values for s5pv210 UCON and UFCON u    246 /* Default values for s5pv210 UCON and UFCON uart registers */
238 #define S5PV210_UCON_DEFAULT    (S3C2410_UCON_    247 #define S5PV210_UCON_DEFAULT    (S3C2410_UCON_TXILEVEL |        \
239                                  S3C2410_UCON_    248                                  S3C2410_UCON_RXILEVEL |        \
240                                  S3C2410_UCON_    249                                  S3C2410_UCON_TXIRQMODE |       \
241                                  S3C2410_UCON_    250                                  S3C2410_UCON_RXIRQMODE |       \
242                                  S3C2410_UCON_    251                                  S3C2410_UCON_RXFIFO_TOI |      \
243                                  S3C2443_UCON_    252                                  S3C2443_UCON_RXERR_IRQEN)
244                                                   253 
245 #define S5PV210_UFCON_DEFAULT   (S3C2410_UFCON    254 #define S5PV210_UFCON_DEFAULT   (S3C2410_UFCON_FIFOMODE |       \
246                                  S5PV210_UFCON    255                                  S5PV210_UFCON_TXTRIG4 |        \
247                                  S5PV210_UFCON    256                                  S5PV210_UFCON_RXTRIG4)
248                                                   257 
249 #define APPLE_S5L_UCON_RXTO_ENA                !! 258 #define APPLE_S5L_UCON_RXTO_ENA         9
250 #define APPLE_S5L_UCON_RXTO_LEGACY_ENA         !! 259 #define APPLE_S5L_UCON_RXTHRESH_ENA     12
251 #define APPLE_S5L_UCON_RXTHRESH_ENA            !! 260 #define APPLE_S5L_UCON_TXTHRESH_ENA     13
252 #define APPLE_S5L_UCON_TXTHRESH_ENA            !! 261 #define APPLE_S5L_UCON_RXTO_ENA_MSK     (1 << APPLE_S5L_UCON_RXTO_ENA)
253 #define APPLE_S5L_UCON_RXTO_ENA_MSK            !! 262 #define APPLE_S5L_UCON_RXTHRESH_ENA_MSK (1 << APPLE_S5L_UCON_RXTHRESH_ENA)
254 #define APPLE_S5L_UCON_RXTO_LEGACY_ENA_MSK     !! 263 #define APPLE_S5L_UCON_TXTHRESH_ENA_MSK (1 << APPLE_S5L_UCON_TXTHRESH_ENA)
255 #define APPLE_S5L_UCON_RXTHRESH_ENA_MSK        << 
256 #define APPLE_S5L_UCON_TXTHRESH_ENA_MSK        << 
257                                                   264 
258 #define APPLE_S5L_UCON_DEFAULT          (S3C24    265 #define APPLE_S5L_UCON_DEFAULT          (S3C2410_UCON_TXIRQMODE | \
259                                          S3C24    266                                          S3C2410_UCON_RXIRQMODE | \
260                                          S3C24    267                                          S3C2410_UCON_RXFIFO_TOI)
261 #define APPLE_S5L_UCON_MASK             (APPLE !! 268 
262                                          APPLE !! 269 #define APPLE_S5L_UTRSTAT_RXTHRESH      (1<<4)
263                                          APPLE !! 270 #define APPLE_S5L_UTRSTAT_TXTHRESH      (1<<5)
264                                          APPLE !! 271 #define APPLE_S5L_UTRSTAT_RXTO          (1<<9)
265                                                !! 272 #define APPLE_S5L_UTRSTAT_ALL_FLAGS     (0x3f0)
266 #define APPLE_S5L_UTRSTAT_RXTO_LEGACY   BIT(3) << 
267 #define APPLE_S5L_UTRSTAT_RXTHRESH      BIT(4) << 
268 #define APPLE_S5L_UTRSTAT_TXTHRESH      BIT(5) << 
269 #define APPLE_S5L_UTRSTAT_RXTO          BIT(9) << 
270 #define APPLE_S5L_UTRSTAT_ALL_FLAGS     GENMAS << 
271                                                   273 
272 #ifndef __ASSEMBLY__                              274 #ifndef __ASSEMBLY__
273                                                   275 
274 #include <linux/serial_core.h>                    276 #include <linux/serial_core.h>
275                                                   277 
276 /* configuration structure for per-machine con    278 /* configuration structure for per-machine configurations for the
277  * serial port                                    279  * serial port
278  *                                                280  *
279  * the pointer is setup by the machine specifi    281  * the pointer is setup by the machine specific initialisation from the
280  * arch/arm/mach-s3c/ directory.                  282  * arch/arm/mach-s3c/ directory.
281 */                                                283 */
282                                                   284 
283 struct s3c2410_uartcfg {                          285 struct s3c2410_uartcfg {
284         unsigned char      hwport;       /* ha    286         unsigned char      hwport;       /* hardware port number */
285         unsigned char      unused;                287         unsigned char      unused;
286         unsigned short     flags;                 288         unsigned short     flags;
287         upf_t              uart_flags;   /* de    289         upf_t              uart_flags;   /* default uart flags */
288         unsigned int       clk_sel;               290         unsigned int       clk_sel;
289                                                   291 
290         unsigned int       has_fracval;           292         unsigned int       has_fracval;
291                                                   293 
292         unsigned long      ucon;         /* va    294         unsigned long      ucon;         /* value of ucon for port */
293         unsigned long      ulcon;        /* va    295         unsigned long      ulcon;        /* value of ulcon for port */
294         unsigned long      ufcon;        /* va    296         unsigned long      ufcon;        /* value of ufcon for port */
295 };                                                297 };
296                                                   298 
297 #endif /* __ASSEMBLY__ */                         299 #endif /* __ASSEMBLY__ */
298                                                   300 
299 #endif /* __ASM_ARM_REGS_SERIAL_H */              301 #endif /* __ASM_ARM_REGS_SERIAL_H */
300                                                   302 
301                                                   303 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php