From patchwork Fri Jun 18 14:18:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 463058 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp1518967jae; Fri, 18 Jun 2021 07:18:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlYV+YJ7KGLK0ayTwjvn+eID4aw7C14dtqJuUrrl5vqf2uR81mebAtsE7cbkICz0RNKGsL X-Received: by 2002:a17:906:6bd8:: with SMTP id t24mr11473362ejs.501.1624025936971; Fri, 18 Jun 2021 07:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624025936; cv=none; d=google.com; s=arc-20160816; b=m4Oev+cNdLUODk96F7eD+dm/CH+ERg9rj7fby7lM1SNwi1t7/l3F5QDMSaA2+MT9bB njcbWpPJXX8gOiGX9yHW4Ru5QL/rTSUBHTN2iTLgB12F1UVFj/gnYf5i7uMpIymUIfJe vIJKDtfskldpsTAvLZlKLUA8jwzAaDiSRbeF0NAfNdc3NDR25l7+XP08GwacBjaymFVs FrNN9aoytJ2yYGfhuOEJoeyL10MRGKJt2uwX7hi+EkgDlcXIxvU6z5kV4dqYXjdDM4xM yTDAndKXyIyOkEvoY59qR2C7UkDRtMUFeVxXef/JU4PVfnoN8lXgXgxTozNFQu0trlhw HYpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6AeLT2Q0JFDidzI/l24L/m5xco3Bn2pJW1gR61nstSM=; b=Z4Ns0Fs8lob51A8cFaKsLSf3VnjqbDtnBqq5nRjaiG8sYBM9/5l9y9adJxkuOX3+2d EQrMQk3q32u6aftc48/T12GOG9wBWi3ItBZ++wOCHos7yBXLWMzKATxR1/mR93amZHCI jS+fvqUqNqqMUhaqcBSZiwYyoRtsPVVghX3Aw8Naso+JRJLhr74m1nmRB7IvnbdHPKnm Af6WFxc+WVU/HnqyrQDxA3ra1Ge713NUTsjvyb1IR5nxbygLeWUV00yLCjxI5PEhfzA9 s/bxjcpMqU4av06n55J1aDDKASoiIkt/aMjTSe6lvFIdN+HZmeP2plSlxhf+682Qfjyf LFJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UAjF/7OM"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yc17si1376809ejb.627.2021.06.18.07.18.56; Fri, 18 Jun 2021 07:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UAjF/7OM"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234400AbhFROVE (ORCPT + 17 others); Fri, 18 Jun 2021 10:21:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:58610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbhFROVD (ORCPT ); Fri, 18 Jun 2021 10:21:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 29DA061222; Fri, 18 Jun 2021 14:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624025933; bh=6a9wcBqh2xCp1n07Nk+C27uAXtGZHswKD0RQYiHlEpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UAjF/7OMb9oUg2UVHy3HEXnU3+GaAxIeW3wMuhSE5ZP0RK57jTJkaoAmlRR7kqTLl kCTgXHpFxU6zraMaQxp86IPWrQYLSxu+09CTdp3t7hDu4t+70gXp5Ammn09xEVzyBT tMsKj2ujBz3unjCx+5dSjBhIgVyJkh1yQ6yOA9xqcNEwotLkJXyLswfsHjEkAf/SjD hcn1fJ+XGQkDlT6hCUVM2Cw4uXSq2cEVFrB38vRifRpv6Vfd3ukqBO1PuP68Iecf+l YUSXsuoaPJsHZ0BLyHCYBryONt4QFQyHyyeUvUS2qOZkRgZPc8DFXj0NeWSAg2HHtC SAiZ6FkLhAWgw== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Matthias Kaehlcke , Douglas Anderson , Sumit Semwal , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] soc: qcom: geni: move GENI_IF_DISABLE_RO to common header Date: Fri, 18 Jun 2021 19:48:37 +0530 Message-Id: <20210618141839.3777270-2-vkoul@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210618141839.3777270-1-vkoul@kernel.org> References: <20210618141839.3777270-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Also, add FIFO_IF_DISABLE define. Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul --- drivers/soc/qcom/qcom-geni-se.c | 1 - include/linux/qcom-geni-se.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.31.1 diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 5bdfb1565c14..fe666ea0c487 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -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 diff --git a/include/linux/qcom-geni-se.h b/include/linux/qcom-geni-se.h index 7c811eebcaab..5114e2144b17 100644 --- a/include/linux/qcom-geni-se.h +++ b/include/linux/qcom-geni-se.h @@ -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