ARM: pl011: Add rs485 to the RP1 support
authorPhil Elwell <phil@raspberrypi.com>
Thu, 18 Jan 2024 11:08:03 +0000 (11:08 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:30 +0000 (11:35 +0000)
pl011_axi_probe, added for RP1 support, lacks the rs485 additions that
appeared during its development.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/tty/serial/amba-pl011.c

index c8bfa09..2133edd 100644 (file)
@@ -3033,6 +3033,8 @@ static int pl011_axi_probe(struct platform_device *pdev)
        uap->port.iotype = vendor->access_32b ? UPIO_MEM32 : UPIO_MEM;
        uap->port.irq = irq;
        uap->port.ops = &amba_pl011_pops;
+       uap->port.rs485_config = pl011_rs485_config;
+       uap->port.rs485_supported = pl011_rs485_supported;
 
        snprintf(uap->type, sizeof(uap->type), "PL011 AXI");