soc: qcom: geni: move GENI_IF_DISABLE_RO to common header
authorVinod Koul <vkoul@kernel.org>
Fri, 25 Jun 2021 05:22:09 +0000 (10:52 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 4 Aug 2021 19:23:27 +0000 (14:23 -0500)
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 <bjorn.andersson@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20210625052213.32260-2-vkoul@kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/qcom-geni-se.c
include/linux/qcom-geni-se.h

index 5bdfb1565c14d2334209d4aaa1927f7f4eff83ee..fe666ea0c487335c80000209d4556c77ed702a52 100644 (file)
@@ -104,7 +104,6 @@ static const char * const icc_path_names[] = {"qup-core", "qup-config",
 #define GENI_OUTPUT_CTRL               0x24
 #define GENI_CGC_CTRL                  0x28
 #define GENI_CLK_CTRL_RO               0x60
-#define GENI_IF_DISABLE_RO             0x64
 #define GENI_FW_S_REVISION_RO          0x6c
 #define SE_GENI_BYTE_GRAN              0x254
 #define SE_GENI_TX_PACKING_CFG0                0x260
index 7c811eebcaab8917f9ded5f1eee02292778ac27a..5114e2144b171ce5c96025e5106524a035470eb0 100644 (file)
@@ -63,6 +63,7 @@ struct geni_se {
 #define SE_GENI_STATUS                 0x40
 #define GENI_SER_M_CLK_CFG             0x48
 #define GENI_SER_S_CLK_CFG             0x4c
+#define GENI_IF_DISABLE_RO             0x64
 #define GENI_FW_REVISION_RO            0x68
 #define SE_GENI_CLK_SEL                        0x7c
 #define SE_GENI_DMA_MODE_EN            0x258
@@ -105,6 +106,9 @@ struct geni_se {
 #define CLK_DIV_MSK                    GENMASK(15, 4)
 #define CLK_DIV_SHFT                   4
 
+/* GENI_IF_DISABLE_RO fields */
+#define FIFO_IF_DISABLE                        (BIT(0))
+
 /* GENI_FW_REVISION_RO fields */
 #define FW_REV_PROTOCOL_MSK            GENMASK(15, 8)
 #define FW_REV_PROTOCOL_SHFT           8