From patchwork Wed Feb 8 09:13:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 54281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3349273wrn; Wed, 8 Feb 2023 01:16:33 -0800 (PST) X-Google-Smtp-Source: AK7set9HEe2NTySlFt/A9HSCApZCe055l6bSUWtuzwJWwfYzHgeTEwFqeWJjUF/rVT55FOjXhPhC X-Received: by 2002:a17:906:6a22:b0:878:711f:f3d0 with SMTP id qw34-20020a1709066a2200b00878711ff3d0mr9743630ejc.4.1675847793574; Wed, 08 Feb 2023 01:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675847793; cv=none; d=google.com; s=arc-20160816; b=MQmco0GMO5edAY1ahabQnt44pmjgm2G6UrHhpuSzQeaP0NCfZQawqsFUsysNHB9Eoo lmYNbPAGhDEnsIGMCEOUrajt37D4Lwn423yfvSm6G2LUlYNFNJ+akB1QP/gf3qkTdnmh 4jbmFNCjaudspIAFB6WoRUXrzX8oN6milemb0A6I1W+KdSgO1r9bC/eKAQwQzm2Pskbp pczgz+EQOEYrA5jogd0Z6CD1vBIdgaGjQeqHCNtUGnVye/VGoun7adSrOYgSeJTq8PXd APQ/vWfkSZsf9mbZygTeNjjMUohUxjc7SLgjvW8eXtcQEEGdfflV9ciEmtHRA4O3Tkft HE6Q== 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=mTdx2dHITQV8+kA5/WdkyW36pw2cffdM7pRJVj161AE=; b=xwvGfD0rIIRwvL3tomsne/Zyv4wqx1oPa/f864lCtvlDVzpIsf06eGI4zvw2r1Ev+j FCif6XeXXekoJvFsZ1CP2kxMn2cvEfBXts40Ksx1TTf8504l1aPu+XSs7tfHRu1gBrZJ SNKDGM/KB8H3Eo3EgMK31r+ltKATeT5ZnA+JhoQ5DX8n5tLe02UsKaxZwInDEKZkVbGB 5uZVsSFGGCEh64PC0+26zBL3ZudLLBdQ0afSiiap3g8IzhtpgCGYlXa/7/QxCFMsNXG/ Sf3rkwidN47FwosyXN1WCNZeGyfkoTuG0mLx1ChGHXUwTremtw48El7clPeHRWJC53w0 4hNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i9BwVLLx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id uk6-20020a170907ca0600b00886221b44e7si960855ejc.796.2023.02.08.01.16.10; Wed, 08 Feb 2023 01:16:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i9BwVLLx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbjBHJPs (ORCPT + 99 others); Wed, 8 Feb 2023 04:15:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbjBHJPN (ORCPT ); Wed, 8 Feb 2023 04:15:13 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D774609D for ; Wed, 8 Feb 2023 01:13:52 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id sa10so19163351ejc.9 for ; Wed, 08 Feb 2023 01:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mTdx2dHITQV8+kA5/WdkyW36pw2cffdM7pRJVj161AE=; b=i9BwVLLxEYfhVLyfIsJbZ2f4Lr7Ad8D8Nuv1j3FMdcPPvprsat3CNcwwzsVQtUZnS6 /L93kwaplEDymkqEbUSjCMtxAoJf4zWjW1X45zN0omBFgrbM970kypYmcca6bg6dZO9T u9L0W0bq3xfb1LjnTfrN1OqHjPEkgZ2d4yjuwY7Qq/MxE4Ck9FTdlHTD2lf2i59B1k5V jky6LmB4SsdOuIE0Xr5wi2FM/djikHrCbMgJzKyphgCwxawd34EZIT1hs0Tg0w+EOFGp qc+/xPhQYIixKNATSp0aGrv9uAv5Z7sah4TjKehXEWNcUuyQKVLosrbWcqgX+2ua7vZt Z1CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mTdx2dHITQV8+kA5/WdkyW36pw2cffdM7pRJVj161AE=; b=4NW93fRVI0vWPciYjpcDcfiQUn+QxECVVoP3izKpq/lNwO2qB6/4iIqMueMPTttd3t +q3BcexTIr+5rVoxUft+lRZ337EBkN8FGjb+kDreMzbtWLw5azD9aM5KB7d1aTlmBT9L HlvCCtdtvKtEL+bGKScg3fvgsuaFggKAZbH7Vt07TM7NIFi3Dm9676vmL7hDYLPEk4Bi qSULhbH8NmLdOHq0lv4rAakuqBRFxXjzH5XwUkd5egqwHngfb8H0TQm/mSinc6LUbIQq IEroVMjbXQhf/UtlPL9Td/qQ9/c7F4u9uhWKPEe3rI3/li1Trzz+Z/86iWDquxls2aea Se+A== X-Gm-Message-State: AO0yUKVwTWEE8XHYZBQaNABAurv3nGdX8P0VtnLJrIYLjpH6rn0R4DaJ bS8np9uGiSABVDENQWZOpJsE3Q== X-Received: by 2002:a17:906:f6cd:b0:8a9:8047:a5c with SMTP id jo13-20020a170906f6cd00b008a980470a5cmr6281123ejb.7.1675847628975; Wed, 08 Feb 2023 01:13:48 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id z2-20020a1709064e0200b00887a23bab85sm7987279eju.220.2023.02.08.01.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 01:13:48 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 03/10] clk: qcom: branch: Move CBCR bits definitions to the header file Date: Wed, 8 Feb 2023 10:13:33 +0100 Message-Id: <20230208091340.124641-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230208091340.124641-1-konrad.dybcio@linaro.org> References: <20230208091340.124641-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757253775923730520?= X-GMAIL-MSGID: =?utf-8?q?1757253775923730520?= Move the definitions of CBCR bits to the branch header file. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-branch.c | 5 ----- drivers/clk/qcom/clk-branch.h | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/clk/qcom/clk-branch.c b/drivers/clk/qcom/clk-branch.c index f869fc6aaed6..f2b577b07b7e 100644 --- a/drivers/clk/qcom/clk-branch.c +++ b/drivers/clk/qcom/clk-branch.c @@ -39,11 +39,6 @@ static bool clk_branch_check_halt(const struct clk_branch *br, bool enabling) return !!val == !enabling; } -#define BRANCH_CLK_OFF BIT(31) -#define BRANCH_NOC_FSM_STATUS_SHIFT 28 -#define BRANCH_NOC_FSM_STATUS_MASK 0x7 -#define BRANCH_NOC_FSM_STATUS_ON (0x2 << BRANCH_NOC_FSM_STATUS_SHIFT) - static bool clk_branch2_check_halt(const struct clk_branch *br, bool enabling) { u32 val; diff --git a/drivers/clk/qcom/clk-branch.h b/drivers/clk/qcom/clk-branch.h index b325f943c3e0..9bec563ab4ee 100644 --- a/drivers/clk/qcom/clk-branch.h +++ b/drivers/clk/qcom/clk-branch.h @@ -39,6 +39,10 @@ struct clk_branch { }; /* Branch clock common bits for HLOS-owned clocks */ +#define BRANCH_CLK_OFF BIT(31) +#define BRANCH_NOC_FSM_STATUS_SHIFT 28 +#define BRANCH_NOC_FSM_STATUS_MASK 0x7 +#define BRANCH_NOC_FSM_STATUS_ON (0x2 << BRANCH_NOC_FSM_STATUS_SHIFT) #define CBCR_FORCE_MEM_CORE_ON BIT(14) #define CBCR_FORCE_MEM_PERIPH_ON BIT(13) #define CBCR_FORCE_MEM_PERIPH_OFF BIT(12)