Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6455452pxb; Tue, 15 Feb 2022 02:51:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyx7LL3mdCrCfqCkJ6INZI4UzdGEHPQDT9kqz9VEZGFW7yac+KAj+GOIslWHwRxiQpFZViS X-Received: by 2002:a17:903:40ce:: with SMTP id t14mr524091pld.113.1644922289735; Tue, 15 Feb 2022 02:51:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644922289; cv=none; d=google.com; s=arc-20160816; b=n/iuJTmyz9y3WXNeixlguOl3PU3dtXlaPD7ocdlhmRv3MB/4cEoBbRZpCFKF14S+kc 8GNSLTw10gwrhzP1dFENGshinZ3l8+i+1gkkmatM1CLwv0kOYYtXIhZa6gorQkpNl+Sf UOGxkCV8R05a5CIN+z7x6IUxyfoKZJO2oaI0IsWKJ9cOEXuIEJG3nWBdV4vw9klZ/VSZ D9Rt1uejqfzWob18meQG9odG3GIZoYnCqR149f/e5bcRw23p1OAN+s6g9Fc1aDYU+Rnq JTgWItTEtBG7y6Foy8bz7PszwvSsIO+/u+nHqbqfsHFLRnF2rj/4+BIK6vPCJ5jMoB14 KDOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=PX/WHKWbkuwa/EAALLC2/n7hI8uaF1SS9QQ5iBOgSbM=; b=oLBjAZ+BqPX4aYct508BQjtK8PAqVw8MAzEViICewNsJ8Hs5I6VuEiJAoCX2FbNkzo Z8vwTL3EP5ydRUsMeABPyCn1xl1OY9wkD6uV30mejnmVMFfZ4kmhu9Hb/6jT32HuW3Z5 I5pbsk96TwqAETfkbmhCwci1oxKfkJqJXseC4z5AB+5bilN3ASR32X328t5WAjaqZlYu +ahqfvwI1eeZcV5+ocGfL+3sMzG1ouVpc0/itSCM85aqiNQmYksw62SqFrY7AV8ArVq1 wo9dqMyJyWIw6ENbGO4eEYSfoTWxnH0BjgBN2yenB1e1v67g/Faki0aIMeloqQfqUQ4C ICRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=PcLjoarU; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q145si2424810pgq.438.2022.02.15.02.51.06; Tue, 15 Feb 2022 02:51:29 -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=@quicinc.com header.s=qcdkim header.b=PcLjoarU; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236195AbiBOKDp (ORCPT + 99 others); Tue, 15 Feb 2022 05:03:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230356AbiBOKDk (ORCPT ); Tue, 15 Feb 2022 05:03:40 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B978196; Tue, 15 Feb 2022 02:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644919409; x=1676455409; h=from:to:cc:subject:date:message-id; bh=PX/WHKWbkuwa/EAALLC2/n7hI8uaF1SS9QQ5iBOgSbM=; b=PcLjoarUW1XyjC9AU5rdloqvXO9IU2yd2QPVtLlsUITldfE31w83M89g 0pPobVntkMyppuz+Fb+LJei3stl7IzQW4nxnGOpPnOxdzdYU8He1Tu0wJ bIYxIX2XAn9GShg9ywpy7mPKTY7GGci/8kH3ZO8tpkZQS8sEsZ1SitrUJ 8=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 15 Feb 2022 02:03:29 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 15 Feb 2022 02:03:28 -0800 X-QCInternal: smtphost Received: from hu-rohiagar-hyd.qualcomm.com (HELO hu-sgudaval-hyd.qualcomm.com) ([10.213.106.138]) by ironmsg02-blr.qualcomm.com with ESMTP; 15 Feb 2022 15:33:26 +0530 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3970568) id 256EE466C; Tue, 15 Feb 2022 15:33:25 +0530 (+0530) From: Rohit Agarwal To: manivannan.sadhasivam@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rohit Agarwal Subject: [PATCH v2 2/7] mailbox: qcom: Add support for SDX65 APCS IPC Date: Tue, 15 Feb 2022 15:33:20 +0530 Message-Id: <1644919400-27487-1-git-send-email-quic_rohiagar@quicinc.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 In SDX65, the IPC bits are located in the APCS GCC block. Also, this block can provide clock functionality. Hence, add support for IPC with correct offset and name of the clock provider. Signed-off-by: Rohit Agarwal --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 9325d2a..54d7659 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -53,6 +53,10 @@ static const struct qcom_apcs_ipc_data sdx55_apcs_data = { .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk" }; +static const struct qcom_apcs_ipc_data sdx65_apcs_data = { + .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk" +}; + static const struct regmap_config apcs_regmap_config = { .reg_bits = 32, .reg_stride = 4, @@ -159,6 +163,7 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data }, { .compatible = "qcom,sm6115-apcs-hmss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data }, + { .compatible = "qcom,sdx65-apcs-gcc", .data = &sdx65_apcs_data }, {} }; MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match); -- 2.7.4