Commit 25ed2875 authored by Ayan Kumar Halder's avatar Ayan Kumar Halder Committed by Fabio Baltieri
Browse files

serial: uart_pl011: Fix compile error for CONFIG_UART_INTERRUPT_DRIVEN=n



When the uart is configured in non interrupt mode, then the mmio address
should be provided via DEVICE_MMIO_ROM_INIT.

Signed-off-by: default avatarAyan Kumar Halder <ayankuma@amd.com>
parent 722b2418
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -467,7 +467,7 @@ void pl011_isr(const struct device *dev)
#else
#define PL011_CONFIG_PORT(n)								\
	static struct pl011_config pl011_cfg_port_##n = {				\
		.uart = (volatile struct pl011_regs *)DT_INST_REG_ADDR(n),		\
		DEVICE_MMIO_ROM_INIT(DT_DRV_INST(n)),					\
		.sys_clk_freq = DT_INST_PROP_BY_PHANDLE(n, clocks, clock_frequency),	\
	};
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */