From patchwork Fri Jun 9 20:19:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 105802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1169558vqr; Fri, 9 Jun 2023 13:36:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4OdPtGeygHD0neClYE12NqQsxd6TcYNgU205bz80kiAoMwzok8DFwhf2qmnv0IMzhd6Tep X-Received: by 2002:a17:902:f111:b0:1b1:b253:5428 with SMTP id e17-20020a170902f11100b001b1b2535428mr1645796plb.58.1686342966704; Fri, 09 Jun 2023 13:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686342966; cv=none; d=google.com; s=arc-20160816; b=HjoUlnu5qaYXOLG6gGJy+V5ylProtwQL0J4igf09jLBUEGaprmeJsHJHnaBPJpTUsD K9VA+av6sf6RolkC8EmRBhb9Oppm194VD71ubfnQX8BNDIR33ClHfhtmJvDgg81v2vJU bWnXyJ2n746Lcpp3GFAEVKd8RkSWmh/hMlPB4G8dz3OQmy6EIsryewY0S+PCnMPrzogx UcX4xtbbsQ3Z/q100yru5O6jdtQI6SX4p+SgzWeHCQLP+6pdaeeY/nGIJkSoYYJFPmiO T3ei1LzjSctNxZnGqi8dzajMONJgDS2NzhI5HiZPxYlEKP4SdEaQmi0A1E8JhEolgYxR zbbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=o0XnmH13ivRPPHGJLER9uxu6PJxvQI4F3jOrAVZw55g=; b=pZjXIJPv0hNHXTUrRyXYUDQ3Pkwp7h9OSVrcMSGQ9RmqKeoeUVQjIrP61YbSzRnZLl 3nVz2KkXuzyKcCzdjvs6VKY2sWzUTSYRobVrimRGG8oiV7sJbHDvoUmu+b7DoskCzXHX 4SdRJKwCAu0/VunlUETX8CLJcpXdzljX9Gf/nJG6188iyznd2pjeun+73dysZugiCatJ dnBLMBB2obzpJo7Jgp6V/KCG8TcU9oZL9+74M8eNQIJX2vd+Jd3G7+yRDfGkw1k0yFdx JzGj+YmJGnxrAiRdRmb76082pD42uElixHCiGrtJpAs6QybEAKr2kZizJoLSpOfqNhzM YfNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rpiwSdjf; 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 a10-20020a170902ee8a00b001aaef930752si2974672pld.647.2023.06.09.13.35.47; Fri, 09 Jun 2023 13:36:06 -0700 (PDT) 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=rpiwSdjf; 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 S232144AbjFIUUs (ORCPT + 99 others); Fri, 9 Jun 2023 16:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbjFIUT6 (ORCPT ); Fri, 9 Jun 2023 16:19:58 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCDA4422E for ; Fri, 9 Jun 2023 13:19:38 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b1afe57bdfso25026601fa.0 for ; Fri, 09 Jun 2023 13:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686341976; x=1688933976; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=o0XnmH13ivRPPHGJLER9uxu6PJxvQI4F3jOrAVZw55g=; b=rpiwSdjfQ9BdDP/DX1r4nfr6hYl7BNN/o18V710tW1zfKxDnABH+ogb2L+I7ZrMMmC 0oSGKB4qUpQWAXjkc2Hzf62TnRcQiBFgK8w/sjNssbPJsfaTkyFBilAHWZuW6o0bC1pl TAs/myDrtJUMhsGyH0rCdYx8DyTWggg+COUpJ4ghVyuKKEDsXUIi/DSZxY0GracGfWTV cr3bue8ofQ2wo8EfY5rRfIgjP6Y+DvUuTR52ZilctXM534WshJj9H7F1a6seqTkwbCbt gYXgbWnQoiyNwRqbQtLgjn71IbmYGWEhc2HsOl+WT9UmX+w5hjWelYZV0NcQvojxHNov 8+3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686341976; x=1688933976; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o0XnmH13ivRPPHGJLER9uxu6PJxvQI4F3jOrAVZw55g=; b=ge/O4m86gqtTnYXQvQNk2VzxiGQdKtZD9cX59dNfD+Ant+v75nIbEoab5dxOiqpVrD bABd7yPZzf4MBQCew8Xa32VxX/2Q4l71/rDlIQOc8/LolvSL+qlF3YEfhSMoQXjGKmDg 8dkUR1zzRYrFHjuCSF5KOGkO6Hl91Blpud5NtCboDC83DD4UhzPJqStXq0M9X7BupWZ4 C6KsFiRVsq1/9DnUaucBLyqk+rK3IAs/w2JarjqY9YAADPxkyNGbw0eexhh82jwRwv+r jqv2sakkhTem24qaSZay411vlUUCT6wfHI9EyYXL8tkts4Ln1iwyNclD4XS+XEr7lFqC exmw== X-Gm-Message-State: AC+VfDwOiDLpWrxYjNRzrSKDUuSnPyxfRV91aviwYw1YgbrsAxFAT64j nUtNVD4kgcolT2buT+l4kerr8g== X-Received: by 2002:a19:6550:0:b0:4f4:b218:e85f with SMTP id c16-20020a196550000000b004f4b218e85fmr1252389lfj.31.1686341975882; Fri, 09 Jun 2023 13:19:35 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id b18-20020ac25632000000b004f628eb7884sm641349lff.232.2023.06.09.13.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 13:19:35 -0700 (PDT) From: Konrad Dybcio Date: Fri, 09 Jun 2023 22:19:21 +0200 Subject: [PATCH v2 16/22] interconnect: qcom: qcm2290: Hook up RPM bus clk definitions MIME-Version: 1.0 Message-Id: <20230526-topic-smd_icc-v2-16-e5934b07d813@linaro.org> References: <20230526-topic-smd_icc-v2-0-e5934b07d813@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v2-0-e5934b07d813@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Georgi Djakov , Leo Yan , Evan Green Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1686341953; l=2388; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=tSBMAPt7cmsb0YEEInMBYypPFAnegUdevAoSi5GlaYA=; b=eij1jtJTLGM5s11Ad7Uh848QYLshxEG0qmBuSFdZUmvK1tri9NY7+/4nrvNJzksPHxbzOQpQ+ mjrGiBo/IIDBQEmpS2S777zDWxzZMhglGgXNSSwm9N4eswXh82tCq4d X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1768258762299289055?= X-GMAIL-MSGID: =?utf-8?q?1768258762299289055?= Assign the necessary definitions to migrate to the new bus clock handling mechanism. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/qcm2290.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/interconnect/qcom/qcm2290.c b/drivers/interconnect/qcom/qcm2290.c index cb636e67a5a4..2c7a76fab83c 100644 --- a/drivers/interconnect/qcom/qcm2290.c +++ b/drivers/interconnect/qcom/qcm2290.c @@ -1196,6 +1196,7 @@ static const struct qcom_icc_desc qcm2290_bimc = { .type = QCOM_ICC_BIMC, .nodes = qcm2290_bimc_nodes, .num_nodes = ARRAY_SIZE(qcm2290_bimc_nodes), + .bus_clk_desc = &bimc_clk, .regmap_cfg = &qcm2290_bimc_regmap_config, /* M_REG_BASE() in vendor msm_bus_bimc_adhoc driver */ .qos_offset = 0x8000, @@ -1251,6 +1252,7 @@ static const struct qcom_icc_desc qcm2290_cnoc = { .type = QCOM_ICC_NOC, .nodes = qcm2290_cnoc_nodes, .num_nodes = ARRAY_SIZE(qcm2290_cnoc_nodes), + .bus_clk_desc = &bus_1_clk, .regmap_cfg = &qcm2290_cnoc_regmap_config, }; @@ -1292,6 +1294,7 @@ static const struct qcom_icc_desc qcm2290_snoc = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_snoc_nodes, .num_nodes = ARRAY_SIZE(qcm2290_snoc_nodes), + .bus_clk_desc = &bus_2_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, /* Vendor DT node fab-sys_noc property 'qcom,base-offset' */ .qos_offset = 0x15000, @@ -1306,6 +1309,7 @@ static const struct qcom_icc_desc qcm2290_qup_virt = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_qup_virt_nodes, .num_nodes = ARRAY_SIZE(qcm2290_qup_virt_nodes), + .bus_clk_desc = &qup_clk, }; static struct qcom_icc_node * const qcm2290_mmnrt_virt_nodes[] = { @@ -1319,6 +1323,7 @@ static const struct qcom_icc_desc qcm2290_mmnrt_virt = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_mmnrt_virt_nodes, .num_nodes = ARRAY_SIZE(qcm2290_mmnrt_virt_nodes), + .bus_clk_desc = &mmaxi_0_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, .qos_offset = 0x15000, }; @@ -1333,6 +1338,7 @@ static const struct qcom_icc_desc qcm2290_mmrt_virt = { .type = QCOM_ICC_QNOC, .nodes = qcm2290_mmrt_virt_nodes, .num_nodes = ARRAY_SIZE(qcm2290_mmrt_virt_nodes), + .bus_clk_desc = &mmaxi_1_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, .qos_offset = 0x15000, };