diff options
| author | Olof Johansson <olof@lixom.net> | 2014-01-02 13:57:05 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-01-02 13:57:05 -0500 |
| commit | c7fed591a6d5ce080482e4237bd02c99857c0d4f (patch) | |
| tree | f697a76b366a228e21c222061bcef7000b973949 /include/linux | |
| parent | efcf3d38f128cfbfc7a62c3a5dc3fb42991c12e5 (diff) | |
| parent | 20bdcab8268cb05702e12ae9013be96ecc7ec3a6 (diff) | |
Merge tag 'renesas-sh-sci3-for-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/drivers
From Simon Horman:
Third Round of Renesas SH SCI Updates for v3.14
* Add Device Tree Support
* Remove platform data mapbase and irqs fields
* Remove platform data scbrr_algo_id field
* tag 'renesas-sh-sci3-for-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
serial: sh-sci: Add OF support
serial: sh-sci: Add device tree bindings documentation
serial: sh-sci: Remove platform data mapbase and irqs fields
serial: sh-sci: Remove platform data scbrr_algo_id field
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/serial_sci.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index af414e1895a5..22b3640c9424 100644 --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h | |||
| @@ -10,15 +10,6 @@ | |||
| 10 | 10 | ||
| 11 | #define SCIx_NOT_SUPPORTED (-1) | 11 | #define SCIx_NOT_SUPPORTED (-1) |
| 12 | 12 | ||
| 13 | enum { | ||
| 14 | SCBRR_ALGO_NONE, /* Compute sampling rate in the driver */ | ||
| 15 | SCBRR_ALGO_1, /* clk / (16 * bps) */ | ||
| 16 | SCBRR_ALGO_2, /* DIV_ROUND_CLOSEST(clk, 32 * bps) - 1 */ | ||
| 17 | SCBRR_ALGO_3, /* clk / (8 * bps) */ | ||
| 18 | SCBRR_ALGO_4, /* DIV_ROUND_CLOSEST(clk, 16 * bps) - 1 */ | ||
| 19 | SCBRR_ALGO_6, /* HSCIF variable sample rate algorithm */ | ||
| 20 | }; | ||
| 21 | |||
| 22 | #define SCSCR_TIE (1 << 7) | 13 | #define SCSCR_TIE (1 << 7) |
| 23 | #define SCSCR_RIE (1 << 6) | 14 | #define SCSCR_RIE (1 << 6) |
| 24 | #define SCSCR_TE (1 << 5) | 15 | #define SCSCR_TE (1 << 5) |
| @@ -59,17 +50,6 @@ enum { | |||
| 59 | /* HSSRR HSCIF */ | 50 | /* HSSRR HSCIF */ |
| 60 | #define HSCIF_SRE 0x8000 | 51 | #define HSCIF_SRE 0x8000 |
| 61 | 52 | ||
| 62 | /* Offsets into the sci_port->irqs array */ | ||
| 63 | enum { | ||
| 64 | SCIx_ERI_IRQ, | ||
| 65 | SCIx_RXI_IRQ, | ||
| 66 | SCIx_TXI_IRQ, | ||
| 67 | SCIx_BRI_IRQ, | ||
| 68 | SCIx_NR_IRQS, | ||
| 69 | |||
| 70 | SCIx_MUX_IRQ = SCIx_NR_IRQS, /* special case */ | ||
| 71 | }; | ||
| 72 | |||
| 73 | enum { | 53 | enum { |
| 74 | SCIx_PROBE_REGTYPE, | 54 | SCIx_PROBE_REGTYPE, |
| 75 | 55 | ||
| @@ -88,19 +68,6 @@ enum { | |||
| 88 | SCIx_NR_REGTYPES, | 68 | SCIx_NR_REGTYPES, |
| 89 | }; | 69 | }; |
| 90 | 70 | ||
| 91 | #define SCIx_IRQ_MUXED(irq) \ | ||
| 92 | { \ | ||
| 93 | [SCIx_ERI_IRQ] = (irq), \ | ||
| 94 | [SCIx_RXI_IRQ] = (irq), \ | ||
| 95 | [SCIx_TXI_IRQ] = (irq), \ | ||
| 96 | [SCIx_BRI_IRQ] = (irq), \ | ||
| 97 | } | ||
| 98 | |||
| 99 | #define SCIx_IRQ_IS_MUXED(port) \ | ||
| 100 | ((port)->irqs[SCIx_ERI_IRQ] == \ | ||
| 101 | (port)->irqs[SCIx_RXI_IRQ]) || \ | ||
| 102 | ((port)->irqs[SCIx_ERI_IRQ] && \ | ||
| 103 | ((port)->irqs[SCIx_RXI_IRQ] < 0)) | ||
| 104 | /* | 71 | /* |
| 105 | * SCI register subset common for all port types. | 72 | * SCI register subset common for all port types. |
| 106 | * Not all registers will exist on all parts. | 73 | * Not all registers will exist on all parts. |
| @@ -129,14 +96,11 @@ struct plat_sci_port_ops { | |||
| 129 | * Platform device specific platform_data struct | 96 | * Platform device specific platform_data struct |
| 130 | */ | 97 | */ |
| 131 | struct plat_sci_port { | 98 | struct plat_sci_port { |
| 132 | unsigned long mapbase; /* resource base */ | ||
| 133 | unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */ | ||
| 134 | unsigned int type; /* SCI / SCIF / IRDA / HSCIF */ | 99 | unsigned int type; /* SCI / SCIF / IRDA / HSCIF */ |
| 135 | upf_t flags; /* UPF_* flags */ | 100 | upf_t flags; /* UPF_* flags */ |
| 136 | unsigned long capabilities; /* Port features/capabilities */ | 101 | unsigned long capabilities; /* Port features/capabilities */ |
| 137 | 102 | ||
| 138 | unsigned int sampling_rate; | 103 | unsigned int sampling_rate; |
| 139 | unsigned int scbrr_algo_id; /* SCBRR calculation algo */ | ||
| 140 | unsigned int scscr; /* SCSCR initialization */ | 104 | unsigned int scscr; /* SCSCR initialization */ |
| 141 | 105 | ||
| 142 | /* | 106 | /* |
