serial: 8250_dma: adjust DMA address of the UART
Some UARTs, e.g. one is used in Intel Quark, have a different address base for DMA operations. Introduce an additional field (per RX and TX DMA channels) in struct uart_8250_dma to cover those cases. Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

gecommit door
Greg Kroah-Hartman

bovenliggende
8d17047207
commit
d1834babe4
@@ -33,6 +33,11 @@ struct uart_8250_dma {
|
||||
struct dma_chan *rxchan;
|
||||
struct dma_chan *txchan;
|
||||
|
||||
/* Device address base for DMA operations */
|
||||
phys_addr_t rx_dma_addr;
|
||||
phys_addr_t tx_dma_addr;
|
||||
|
||||
/* DMA address of the buffer in memory */
|
||||
dma_addr_t rx_addr;
|
||||
dma_addr_t tx_addr;
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user