amba-pl011.c (84c3e03bdd1146191b7222ed62a08512199a45c7) amba-pl011.c (7ec758718920e5e5876d0d02ece6855128c8eb1e)
1/*
2 * Driver for AMBA serial ports
3 *
4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
5 *
6 * Copyright 1999 ARM Limited
7 * Copyright (C) 2000 Deep Blue Solutions Ltd.
8 * Copyright (C) 2010 ST-Ericsson SA

--- 157 unchanged lines hidden (view full) ---

166 .oversampling = true,
167 .dma_threshold = true,
168 .cts_event_workaround = true,
169 .always_enabled = false,
170 .fixed_options = false,
171 .get_fifosize = get_fifosize_st,
172};
173
1/*
2 * Driver for AMBA serial ports
3 *
4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
5 *
6 * Copyright 1999 ARM Limited
7 * Copyright (C) 2000 Deep Blue Solutions Ltd.
8 * Copyright (C) 2010 ST-Ericsson SA

--- 157 unchanged lines hidden (view full) ---

166 .oversampling = true,
167 .dma_threshold = true,
168 .cts_event_workaround = true,
169 .always_enabled = false,
170 .fixed_options = false,
171 .get_fifosize = get_fifosize_st,
172};
173
174static const u16 pl011_zte_offsets[REG_ARRAY_SIZE] = {
175 [REG_DR] = ZX_UART011_DR,
176 [REG_FR] = ZX_UART011_FR,
177 [REG_LCRH_RX] = ZX_UART011_LCRH,
178 [REG_LCRH_TX] = ZX_UART011_LCRH,
179 [REG_IBRD] = ZX_UART011_IBRD,
180 [REG_FBRD] = ZX_UART011_FBRD,
181 [REG_CR] = ZX_UART011_CR,
182 [REG_IFLS] = ZX_UART011_IFLS,
183 [REG_IMSC] = ZX_UART011_IMSC,
184 [REG_RIS] = ZX_UART011_RIS,
185 [REG_MIS] = ZX_UART011_MIS,
186 [REG_ICR] = ZX_UART011_ICR,
187 [REG_DMACR] = ZX_UART011_DMACR,
188};
189
190static struct vendor_data vendor_zte = {
191 .reg_offset = pl011_zte_offsets,
192 .access_32b = true,
193 .ifls = UART011_IFLS_RX4_8|UART011_IFLS_TX4_8,
194 .get_fifosize = get_fifosize_arm,
195};
196
174/* Deals with DMA transactions */
175
176struct pl011_sgbuf {
177 struct scatterlist sg;
178 char *buf;
179};
180
181struct pl011_dmarx_data {

--- 2451 unchanged lines hidden ---
197/* Deals with DMA transactions */
198
199struct pl011_sgbuf {
200 struct scatterlist sg;
201 char *buf;
202};
203
204struct pl011_dmarx_data {

--- 2451 unchanged lines hidden ---