Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom: geni-se: add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers

For UART devices the M_GP_LENGTH is the TX word count. For other
devices this is the transaction word count.

For UART devices the S_GP_LENGTH is the RX word count.

The IRQ_EN set/clear registers allow you to set or clear bits in the
IRQ_EN register without needing a read-modify-write.

Acked-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240610152420.v4.1.Ife7ced506aef1be3158712aa3ff34a006b973559@changeid
Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240906131336.23625-4-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Douglas Anderson and committed by
Greg Kroah-Hartman
b03ffc76 f97cdbbf

+9
+9
include/linux/soc/qcom/geni-se.h
··· 88 88 #define SE_GENI_M_IRQ_STATUS 0x610 89 89 #define SE_GENI_M_IRQ_EN 0x614 90 90 #define SE_GENI_M_IRQ_CLEAR 0x618 91 + #define SE_GENI_M_IRQ_EN_SET 0x61c 92 + #define SE_GENI_M_IRQ_EN_CLEAR 0x620 91 93 #define SE_GENI_S_CMD0 0x630 92 94 #define SE_GENI_S_CMD_CTRL_REG 0x634 93 95 #define SE_GENI_S_IRQ_STATUS 0x640 94 96 #define SE_GENI_S_IRQ_EN 0x644 95 97 #define SE_GENI_S_IRQ_CLEAR 0x648 98 + #define SE_GENI_S_IRQ_EN_SET 0x64c 99 + #define SE_GENI_S_IRQ_EN_CLEAR 0x650 96 100 #define SE_GENI_TX_FIFOn 0x700 97 101 #define SE_GENI_RX_FIFOn 0x780 98 102 #define SE_GENI_TX_FIFO_STATUS 0x800 ··· 105 101 #define SE_GENI_RX_WATERMARK_REG 0x810 106 102 #define SE_GENI_RX_RFR_WATERMARK_REG 0x814 107 103 #define SE_GENI_IOS 0x908 104 + #define SE_GENI_M_GP_LENGTH 0x910 105 + #define SE_GENI_S_GP_LENGTH 0x914 108 106 #define SE_DMA_TX_IRQ_STAT 0xc40 109 107 #define SE_DMA_TX_IRQ_CLR 0xc44 110 108 #define SE_DMA_TX_FSM_RST 0xc58 ··· 239 233 /* SE_GENI_IOS fields */ 240 234 #define IO2_DATA_IN BIT(1) 241 235 #define RX_DATA_IN BIT(0) 236 + 237 + /* SE_GENI_M_GP_LENGTH and SE_GENI_S_GP_LENGTH fields */ 238 + #define GP_LENGTH GENMASK(31, 0) 242 239 243 240 /* SE_DMA_TX_IRQ_STAT Register fields */ 244 241 #define TX_DMA_DONE BIT(0)