Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6015934pxb; Mon, 14 Feb 2022 13:11:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBolNmjnveWY8/LAhObcPzaY99jzA9XqZcINuL1LOfei+xTny2adKOJslfkvWXMsNGzMpP X-Received: by 2002:a17:90b:3809:: with SMTP id mq9mr620051pjb.114.1644873108418; Mon, 14 Feb 2022 13:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873108; cv=none; d=google.com; s=arc-20160816; b=04kHh+Urgy+H/fwYnmZFLYbjcSQ+PkErgw96C8JZeaVPjSqUmG5wP8lYWc1rKg4X5r gwmzw00GCU3VKiUTturMlouCXPHzpSme6d+MFu9oFU5u8mVVnYQLsZoVPs+mkpSMFReK bGWyRzjSl6+gzJ10eX83mZwj+l4YDE2dvrw0gAViAj/1/xbswgGqlO6ljExIdOfqLofl xMG0ZAZdU4c+9JwzFa+en0YOd299L6nlGt3iuaIlGrN68ED9MeevjGWuHBZXJQfjwOqJ 87t+tyeRaaU+u0eTgPNrpmpwilG3YWM7YiYYe/4LG5MlFtG7QeMmZzOV/q21CyVxVayT JzPQ== 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=jpDeUjRDsp/655wGJHvhHJTwEtScnmkP3LIzmC5nWqQ=; b=i85LC6sXN2pSr6cL2kX+TRmtGSiUXsI5dbEehebSHSxW88n1YrNMbA66Huwpi1Pd/C s+V2lVRkndrPbtx1pUdyUmstzVPoQoMtB7bPrCmosfFoekde4/wMLci0HkIdvRfgGkuG X/cGDvLqBgZ46zmXtz3rsYMXRCZqTsGEnCoTOqnsqzv84caaMzFTuqm31AfUVcRffOf2 oS7wgmJe2pqLdhr1Diq0DUzDlkcMOvXOOzK9bfXk6a9vXT3m3e+PyOwq84cbR67ap3Ru eQjJnstN0/Zbj9uIxBTDDLEGXJhKQ1vANapoG5hCtz/jY4/BKU2mwm14nBEXO448574r NuAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=yz5HVyPk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bh11si856953pgb.473.2022.02.14.13.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:11:48 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=yz5HVyPk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCA2220EB6A; Mon, 14 Feb 2022 12:30:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240959AbiBNG4K (ORCPT + 99 others); Mon, 14 Feb 2022 01:56:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240948AbiBNG4I (ORCPT ); Mon, 14 Feb 2022 01:56:08 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF67575C5; Sun, 13 Feb 2022 22:56:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644821761; x=1676357761; h=from:to:cc:subject:date:message-id; bh=jpDeUjRDsp/655wGJHvhHJTwEtScnmkP3LIzmC5nWqQ=; b=yz5HVyPkm6HMHXtXcdpK7s7d1SYFHV0LWj4cnQYXEyvDq7dr5tLCcdl7 cc/ngPqEqNfNp5+2505q48IP4dbYhzNYyC/8D5esldl+F8gTJjct/W1al iKLA3oW9E2ukufTfkVgJeYujFojPWL8p1VB4yaUyO2aJVC4Z+puKK4opG 4=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 13 Feb 2022 22:56:01 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 13 Feb 2022 22:56:00 -0800 X-QCInternal: smtphost Received: from hu-rohiagar-hyd.qualcomm.com (HELO hu-sgudaval-hyd.qualcomm.com) ([10.213.106.138]) by ironmsg01-blr.qualcomm.com with ESMTP; 14 Feb 2022 12:25:57 +0530 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 3970568) id 2625B4473; Mon, 14 Feb 2022 12:25:57 +0530 (+0530) From: Rohit Agarwal To: 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 2/8] mailbox: qcom: Add support for SDX65 APCS IPC Date: Mon, 14 Feb 2022 12:25:55 +0530 Message-Id: <1644821755-27059-1-git-send-email-quic_rohiagar@quicinc.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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..3f8612c 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-sdx65-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