diff options
Diffstat (limited to 'include/linux/serial_sci.h')
| -rw-r--r-- | include/linux/serial_sci.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index 369273a52679..78779074f6e8 100644 --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h | |||
| @@ -49,6 +49,10 @@ enum { | |||
| 49 | 49 | ||
| 50 | #define SCIF_DEFAULT_ERROR_MASK (SCIF_PER | SCIF_FER | SCIF_ER | SCIF_BRK) | 50 | #define SCIF_DEFAULT_ERROR_MASK (SCIF_PER | SCIF_FER | SCIF_ER | SCIF_BRK) |
| 51 | 51 | ||
| 52 | /* SCSPTR, optional */ | ||
| 53 | #define SCSPTR_RTSIO (1 << 7) | ||
| 54 | #define SCSPTR_CTSIO (1 << 5) | ||
| 55 | |||
| 52 | /* Offsets into the sci_port->irqs array */ | 56 | /* Offsets into the sci_port->irqs array */ |
| 53 | enum { | 57 | enum { |
| 54 | SCIx_ERI_IRQ, | 58 | SCIx_ERI_IRQ, |
| @@ -60,6 +64,17 @@ enum { | |||
| 60 | SCIx_MUX_IRQ = SCIx_NR_IRQS, /* special case */ | 64 | SCIx_MUX_IRQ = SCIx_NR_IRQS, /* special case */ |
| 61 | }; | 65 | }; |
| 62 | 66 | ||
| 67 | /* Offsets into the sci_port->gpios array */ | ||
| 68 | enum { | ||
| 69 | SCIx_SCK, | ||
| 70 | SCIx_RXD, | ||
| 71 | SCIx_TXD, | ||
| 72 | SCIx_CTS, | ||
| 73 | SCIx_RTS, | ||
| 74 | |||
| 75 | SCIx_NR_FNS, | ||
| 76 | }; | ||
| 77 | |||
| 63 | enum { | 78 | enum { |
| 64 | SCIx_PROBE_REGTYPE, | 79 | SCIx_PROBE_REGTYPE, |
| 65 | 80 | ||
| @@ -109,13 +124,20 @@ struct plat_sci_port_ops { | |||
| 109 | }; | 124 | }; |
| 110 | 125 | ||
| 111 | /* | 126 | /* |
| 127 | * Port-specific capabilities | ||
| 128 | */ | ||
| 129 | #define SCIx_HAVE_RTSCTS (1 << 0) | ||
| 130 | |||
| 131 | /* | ||
| 112 | * Platform device specific platform_data struct | 132 | * Platform device specific platform_data struct |
| 113 | */ | 133 | */ |
| 114 | struct plat_sci_port { | 134 | struct plat_sci_port { |
| 115 | unsigned long mapbase; /* resource base */ | 135 | unsigned long mapbase; /* resource base */ |
| 116 | unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */ | 136 | unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */ |
| 137 | unsigned int gpios[SCIx_NR_FNS]; /* SCK, RXD, TXD, CTS, RTS */ | ||
| 117 | unsigned int type; /* SCI / SCIF / IRDA */ | 138 | unsigned int type; /* SCI / SCIF / IRDA */ |
| 118 | upf_t flags; /* UPF_* flags */ | 139 | upf_t flags; /* UPF_* flags */ |
| 140 | unsigned long capabilities; /* Port features/capabilities */ | ||
| 119 | 141 | ||
| 120 | unsigned int scbrr_algo_id; /* SCBRR calculation algo */ | 142 | unsigned int scbrr_algo_id; /* SCBRR calculation algo */ |
| 121 | unsigned int scscr; /* SCSCR initialization */ | 143 | unsigned int scscr; /* SCSCR initialization */ |
