Re: Does uart_pl011.c support non interrupt mode
Jaxson Han <Jaxson.Han@...>
Hi Ayan,
toggle quoted messageShow quoted text
-----Original Message-----Sure, it does support. You may try this: diff --git a/drivers/serial/uart_pl011.c b/drivers/serial/uart_pl011.c index d00d805f10..a39a562946 100644 --- a/drivers/serial/uart_pl011.c +++ b/drivers/serial/uart_pl011.c @@ -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 */ Regards, Jaxson IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
|
|