From patchwork Wed Feb 1 18:36:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 51513 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp443020wrn; Wed, 1 Feb 2023 10:37:56 -0800 (PST) X-Google-Smtp-Source: AK7set80ooClha32pIxWbEC64VWfzFC/A3LGyhpksRuXXG4vmsc02akekbsHZXeRIaFnh2SMvtqV X-Received: by 2002:a17:90a:1c:b0:22c:8662:869e with SMTP id 28-20020a17090a001c00b0022c8662869emr3268795pja.27.1675276676508; Wed, 01 Feb 2023 10:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675276676; cv=none; d=google.com; s=arc-20160816; b=XcPfEZtFwnj49ay/cSQEOQmIva8ZMolSOqZ9WCwG2FXfHD/c8ZujhV11QanXANzTPA H9pL69HGRJJGhH1vi5fmyHKX7MvuDm46+oNGJvcInb4m4qXKdTnRnwYHnb+d5f64KwxJ uzJfrOoXHXjRg9k9z9qOvUQ8UHN2WPXNj82Q+8Skozic7bUg2TW6/npbzURv4pu39Pd+ YjcI7DEvtw/A2KWhcA2CkQrK1EB8Mz+nK6RM6bULQg8TK5S4kayMhoy869OU0uhDWA75 N505vc6Ovh+VIqi9cJrMgs70dVTBoOtgvfObPrCa01Pw+XSywOby+RJYeHZ+8sxOOO82 6EBA== 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=z6IkYBzHRtP78kfNNlfDDoZLESVj7tG9rKk+4Qd2VXM=; b=x/yRzPWjAPrAdZU5jqLECdAr/rSVqZ4sT2bKX6sQshpIcdJQ2TE9hn2svYPduQO0FK eUrwPsM6kd088zqTO8HX3wzViurDRL+Oiqrfjb2hN2NqKmX+r18iZmwCxt/WGNM9dgPy nUj4ij15KhV0mtQaYJdsBs5n5J/6uAxKLjrRxIT5RjsQyTsaxiFrH0Eq+io73H3h0Br8 pT1wrUip6rwcwho6wBESf32zSzRr6uw79sMfAN7M/EFyvDrUGaGX5NLR4TahtOa/uygP t8NEGj5pucXWnASe0aZsTFAop4z8buDMlQPY6ImmbTGRtUopNJeWZ7rXd0MnkHewycUG RRdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KegFK2U/"; 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 m6-20020a17090ab78600b00219dbeefa87si2216865pjr.166.2023.02.01.10.37.44; Wed, 01 Feb 2023 10:37:56 -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="KegFK2U/"; 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 S230218AbjBAShV (ORCPT + 99 others); Wed, 1 Feb 2023 13:37:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjBAShQ (ORCPT ); Wed, 1 Feb 2023 13:37:16 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E75207FA21 for ; Wed, 1 Feb 2023 10:36:43 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id v13so18617939eda.11 for ; Wed, 01 Feb 2023 10:36:43 -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=z6IkYBzHRtP78kfNNlfDDoZLESVj7tG9rKk+4Qd2VXM=; b=KegFK2U/B4RmndOABI9a19JnrGK7nSS6Tc9XCPCEzK8Weeo6nle5akFanIEPCZ8L5/ /g4mdwbHw2jhToCgyOHDPnUjvDaW5Zx6V2bFsFUTROxs4tbg2JfbKU+0TjBbYnP951oI gik1lD+Is6F7bj2z6ze2lrhxXFxwbkwM9HBLqD/K/P0JU/q8JymFN5U5nSFgBU5EC2Ry P9sLjDnX7Tva+/iUhTbt0l2lLCMe0deR95raWSS0SmrGSv0UGv7na9xPjfBgH6xcFcte admvL6QDxMqH5hnfUxH+dRRvxuSnANwoYK+U66ldI/mgsxvgpN8geON5p4qIs6dQHh+2 zpZg== 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=z6IkYBzHRtP78kfNNlfDDoZLESVj7tG9rKk+4Qd2VXM=; b=x2hGFezUbA0hXHArZaEu2hsx0Q5Ubhd8zfDbyHv/2X+65zukLw34qISPrPqPd9IYAT IfG06+iwA+RszrnBN9X2nNqZoHRs7v4Gl7EYSFAVvUV5zFLjOv5umSswCnSgGUzTuB5Q nAJbFhwZrJ6YPjgHePz08dEcdJuEZTwQFFRIMBgtrRVkzCWjc63SV6P9NbEsJPsfljjH W6d9NGpH1hModtC/KCdnWTXUxTXiWhlBzRnuh28nDrtnAXkihU/azpzn7eqNC/jcdH5G 2B+OgSVGRYy03XbjU9zlJvdp9so31ZyHW42Av42QAZ6V0eC/0PA6AU5Mzk5X6gGwbazG 9gIw== X-Gm-Message-State: AO0yUKWaiipiFP02/2KEMJRk7bZErYXoToGCFgx0GuL+e8yJ6bwUc8tn gGGjfuDJLF6mqZDW9Y+5rogwng== X-Received: by 2002:aa7:d417:0:b0:4a0:dadc:c0c2 with SMTP id z23-20020aa7d417000000b004a0dadcc0c2mr3444923edq.27.1675276594967; Wed, 01 Feb 2023 10:36:34 -0800 (PST) Received: from localhost.localdomain (abyl20.neoplus.adsl.tpnet.pl. [83.9.31.20]) by smtp.gmail.com with ESMTPSA id t13-20020a50d70d000000b00458b41d9460sm10297508edi.92.2023.02.01.10.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 10:36:34 -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 v5 03/10] clk: qcom: branch: Move CBCR bits definitions to the header file Date: Wed, 1 Feb 2023 19:36:19 +0100 Message-Id: <20230201183626.351211-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230201183626.351211-1-konrad.dybcio@linaro.org> References: <20230201183626.351211-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=unavailable 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?1756654916409521460?= X-GMAIL-MSGID: =?utf-8?q?1756654916409521460?= Move the definitions of CBCR bits to the branch header file. Signed-off-by: Konrad Dybcio --- v4 -> v5: - New patch 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 fa90e150853b..cff9ed6653b8 100644 --- a/drivers/clk/qcom/clk-branch.h +++ b/drivers/clk/qcom/clk-branch.h @@ -38,6 +38,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)