From patchwork Thu Apr 8 17:12:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12192021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBB50C433B4 for ; Thu, 8 Apr 2021 17:12:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ABE9B610A8 for ; Thu, 8 Apr 2021 17:12:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbhDHRMa (ORCPT ); Thu, 8 Apr 2021 13:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231566AbhDHRM3 (ORCPT ); Thu, 8 Apr 2021 13:12:29 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE6A6C061762 for ; Thu, 8 Apr 2021 10:12:17 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id t20so1371560plr.13 for ; Thu, 08 Apr 2021 10:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NbF124KRasDzZQm0mjKapmMYmH1JJyipVNq4bCxuJZo=; b=xyQOevybRhccvFEmSeWlIHeszjmibVH6JCYi/z24DTj6q+C/KOG7t6hK4XsyQ+utBI 17XOgIX5ycSJUn8MjsweS81ajtsgR4Xr5W18dueJPi4g1gGhDmFLfJ8tmUE0vq3Ty9qf 5UOTiVgEbVZiMeurt/x67xw2eTcw/HRcyWK5Ufa4TWzYRWx22vNIuUbzz+L3m17AF1ZV VnFKs5cyLl8nYxZk7wVNTisXi5ZTFQZYKlra8KHrH6IDU+6oFxFkU6b+mlUJK4DeDJJ3 25KhsMUmWxHdQ7u/7gIXHkrVh2SU+MA4bmUGdYDNxZBesiThTURpBtnL6mX+8/n22qG7 4xpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NbF124KRasDzZQm0mjKapmMYmH1JJyipVNq4bCxuJZo=; b=l3mj36HI0O9ik1TtLuaZrLMQutEtRoeFbHQETyCclJITxv6AT2u25Brlnxc3m0kLJN HVGKK+w3mCnOFtbqnsoHjcJKuTIxvKcOdCIbLq9fZTfHLuBLU+VTZI6rBdmH44vrpK4Q 83AMGsCuC+T1A3k1ES4tlWlKZbAcg2ypoZNW+zHaiIORa845OpS+rjbTVj4SxhYPzX8t 52vg6xVs1/H05IFDSLn6XG7qgitBbR99N4ZMSlIEn0YiK1Du+WOzUiYzZLe+QnPqPCUD KI+uvIVBTntgkORbwyEHAwoCjGFvf1EDRjHkQg6uF81KRzVR4u/iygP0UPmeIRX7bwiL NUqA== X-Gm-Message-State: AOAM532ooOGhH0yzLRYwGnUMn9cYGEqX/ZdJemLdYDXGDAXZU28KlAgX AIwvej6sAKGpekY9838KXk2bblJLybFl X-Google-Smtp-Source: ABdhPJya7nSzcUaXFinDbTdfWS0l9ypjD89LH9KIQB6IAMzmSAES0j+15MK1y2AhdTPBU1Lo9xUPeA== X-Received: by 2002:a17:902:9f8f:b029:e9:944d:ea99 with SMTP id g15-20020a1709029f8fb02900e9944dea99mr3427565plq.45.1617901937299; Thu, 08 Apr 2021 10:12:17 -0700 (PDT) Received: from localhost.localdomain ([103.77.37.191]) by smtp.gmail.com with ESMTPSA id 205sm52749pfc.201.2021.04.08.10.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 10:12:16 -0700 (PDT) From: Manivannan Sadhasivam To: bjorn.andersson@linaro.org Cc: ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH] remoteproc: qcom: pas: Add modem support for SDX55 Date: Thu, 8 Apr 2021 22:42:11 +0530 Message-Id: <20210408171211.92141-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Add remoteproc support for Hexagon modem found on the Qualcomm SDX55 platform. Signed-off-by: Manivannan Sadhasivam --- drivers/remoteproc/qcom_q6v5_pas.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index e635454d6170..292141877260 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -785,6 +785,22 @@ static const struct adsp_data wcss_resource_init = { .ssctl_id = 0x12, }; +static const struct adsp_data sdx55_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .pas_id = 4, + .has_aggre2_clk = false, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mss", + NULL + }, + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x22, +}; + static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,msm8974-adsp-pil", .data = &adsp_resource_init}, { .compatible = "qcom,msm8996-adsp-pil", .data = &adsp_resource_init}, @@ -797,6 +813,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sdm845-adsp-pas", .data = &adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &cdsp_resource_init}, + { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource}, { .compatible = "qcom,sm8150-adsp-pas", .data = &sm8150_adsp_resource}, { .compatible = "qcom,sm8150-cdsp-pas", .data = &sm8150_cdsp_resource}, { .compatible = "qcom,sm8150-mpss-pas", .data = &mpss_resource_init},