Skip to content

Commit

Permalink
drivers: serial: ns16550: Add IOPORT_ENABLED check condition
Browse files Browse the repository at this point in the history
io_map check to enable LPSS DMA initialization is kept under
condition IOPORT_ENABLED.

Signed-off-by: Anisetti Avinash Krishna <[email protected]>
  • Loading branch information
akanisetti authored and MaureenHelm committed Jan 9, 2024
1 parent 1c0b114 commit 14c68c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/serial/uart_ns16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,10 @@ static int uart_ns16550_init(const struct device *dev)
data->async.tx_dma_params.dma_cfg.head_block =
&data->async.tx_dma_params.active_dma_block;
#if defined(CONFIG_UART_NS16550_INTEL_LPSS_DMA)
if (!dev_cfg->io_map) {
#if UART_NS16550_IOPORT_ENABLED
if (!dev_cfg->io_map)
#endif
{
uintptr_t base;

base = DEVICE_MMIO_GET(dev) + DMA_INTEL_LPSS_OFFSET;
Expand Down

0 comments on commit 14c68c9

Please sign in to comment.