Skip to content

Commit cb531ca

Browse files
vinodkoulandersson
authored andcommitted
soc: qcom: geni: move GENI_IF_DISABLE_RO to common header
GENI_IF_DISABLE_RO is used by geni spi driver as well to check the status if GENI, so move this to common header qcom-geni-se.h Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Vinod Koul <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 6feba6a commit cb531ca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/soc/qcom/qcom-geni-se.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ static const char * const icc_path_names[] = {"qup-core", "qup-config",
104104
#define GENI_OUTPUT_CTRL 0x24
105105
#define GENI_CGC_CTRL 0x28
106106
#define GENI_CLK_CTRL_RO 0x60
107-
#define GENI_IF_DISABLE_RO 0x64
108107
#define GENI_FW_S_REVISION_RO 0x6c
109108
#define SE_GENI_BYTE_GRAN 0x254
110109
#define SE_GENI_TX_PACKING_CFG0 0x260

include/linux/qcom-geni-se.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct geni_se {
6363
#define SE_GENI_STATUS 0x40
6464
#define GENI_SER_M_CLK_CFG 0x48
6565
#define GENI_SER_S_CLK_CFG 0x4c
66+
#define GENI_IF_DISABLE_RO 0x64
6667
#define GENI_FW_REVISION_RO 0x68
6768
#define SE_GENI_CLK_SEL 0x7c
6869
#define SE_GENI_DMA_MODE_EN 0x258
@@ -105,6 +106,9 @@ struct geni_se {
105106
#define CLK_DIV_MSK GENMASK(15, 4)
106107
#define CLK_DIV_SHFT 4
107108

109+
/* GENI_IF_DISABLE_RO fields */
110+
#define FIFO_IF_DISABLE (BIT(0))
111+
108112
/* GENI_FW_REVISION_RO fields */
109113
#define FW_REV_PROTOCOL_MSK GENMASK(15, 8)
110114
#define FW_REV_PROTOCOL_SHFT 8

0 commit comments

Comments
 (0)