tty: serial: qcom_geni_serial: Configure UART_IO_MACRO_CTRL register
Subsystems (5)
cover tty: serial: qcom_geni_serial: Configure UART_IO_MACRO_CTRL register
Configure UART_IO_MACRO_CTRL register if UART lines are swapped.
Roja Rani Yarubandi (1):
tty: serial: qcom_geni_serial: Configure UART_IO_MACRO_CTRL register
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 + drivers/tty/serial/qcom_geni_serial.c | 6 ++++++ 2 files changed, 7 insertions(+)
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation
PATCH 1/1 tty: serial: qcom_geni_serial: Configure UART_IO_MACRO_CTRL register
Configure UART_IO_MACRO_CTRL register if UART lines are swapped.
Change-Id I8e82c2395bf4cdc51b3677c3c54f5be3f390a888
Signed-off-by Roja Rani Yarubandi <[email protected]>
--- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 + drivers/tty/serial/qcom_geni_serial.c | 6 ++++++ 2 files changed, 7 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +1 -0
@@ -675,6 +675,7 @@ ap_spi_fp: &spi10 { &uart3 { status = "okay"; + qcom,pin_inverse = <0x4643>; bluetooth: bluetooth { compatible = "qcom,wcn3991-bt";
drivers/tty/serial/qcom_geni_serial.c +6 -0
@@ -25,6 +25,7 @@/* UART specific GENI registers */ #define SE_UART_LOOPBACK_CFG 0x22c +#define SE_UART_IO_MACRO_CTRL 0x240#define SE_UART_TX_TRANS_CFG 0x25c#define SE_UART_TX_WORD_LEN 0x268#define SE_UART_TX_STOP_BIT_LEN 0x26c
@@ -1240,6 +1241,7 @@ static int qcom_geni_serial_probe(struct platform_device *pdev)int irq;bool console = false;struct uart_driver *drv; +u32 val;if (of_device_is_compatible (pdev->dev.of_node,"qcom,geni-debug-uart" )) console = true;
@@ -1313,6 +1315,10 @@ static int qcom_geni_serial_probe(struct platform_device *pdev)if (ret)return ret; + ret =of_property_read_u32 (pdev->dev.of_node,"qcom,pin_inverse" , &val); +if (!ret) +writel (val, uport->membase +SE_UART_IO_MACRO_CTRL ); +irq_set_status_flags (uport->irq,IRQ_NOAUTOEN ); ret =devm_request_irq (uport->dev, uport->irq, qcom_geni_serial_isr,IRQF_TRIGGER_HIGH , port->name, uport);
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation
Greg Kroah-Hartman
maintainerQuoted 4 lines · Roja Rani Yarubandi
Configure
UART_IO_MACRO_CTRLregister if UART lines are swapped.Change-Id I8e82c2395bf4cdc51b3677c3c54f5be3f390a888Signed-off-by Roja Rani Yarubandi <[email protected]>
Always run checkpatch.pl on your patches so you do not get a grumpy maintainer asking you to run checkpatc.pl on your patches.
:)