From patchwork Wed Feb 10 10:45:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 380211 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1038604jah; Wed, 10 Feb 2021 02:49:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMWIrUSKiQY7HL/UH2pAEqRMT01ZdbCzrNAnhiPPxtdO7QjgdfZKmMckHVWmwRZrVZQO9R X-Received: by 2002:a50:cc4d:: with SMTP id n13mr2475964edi.337.1612954155105; Wed, 10 Feb 2021 02:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612954155; cv=none; d=google.com; s=arc-20160816; b=gaKfCrIZRGoRzV6ftAHsvN2VB80QoaVLhgi5knT5jq+70W1rD1DsqD6icIqMe7hfmM 30H37pZ5ojaUxrMy3Z+ThHisSOjtBWc9AeJO2TVCtw0Gjc+7VG7pjh5zQVR0syBqGNBG 08hrVwDTJhI/e3OxSlTjxMG7VqhLyZItSGxGuKpM7MY/JUwKj+G1As81UBHNj2gdbaw3 My9VPXgF3mqkzkvkWvo1fIhGhYtJ1oInyZCJwhRdcuUhZojuftIHpZZUZCaQ5ctrX5nc UKO8KuU+MKbjVAsxN9J56mGf7cMkh6dxLvd/I8uOYdpAAs47SGYBiHnZlkPTfOuVZ1Pv yizA== 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=CvNg+L8HkMW/u67UJzK2cqUKqEc26PZhqQ5iu8H/S1A=; b=c2tUj66nXiYEtO+HwcNURr5t3pbgY/QGBBQKDHXxnewYCcNNsRjmRK+D8++O+7vQ7T dYDUWf7rTNOONBWprAnoGVu1QgYUudtk7RonJOZvUfr7nqBK5yDUGaB2p4M8rcROYyom AoHUCWA3SMI9icTe8rxkik6pf3S6QX1sLliYZxfI36LZJaei5jGe9Y1I2hGKGRXOm00T iJD7vxYkH5oabmq7/R/oLeIRXgEfqjnH+U3yJtenuZGMpSQ8Wp//FWomGbAlkh4dLbun mVWKDRYWC4GSiNA8P+dXAV9sjJi5QZyt0ziHCBfk49sgOtCwBZMPS+9sj/kv+6kK6gY1 LRag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qbAgZzmg; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si1050938ejc.262.2021.02.10.02.49.14; Wed, 10 Feb 2021 02:49:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qbAgZzmg; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbhBJKse (ORCPT + 16 others); Wed, 10 Feb 2021 05:48:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:50750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbhBJKqb (ORCPT ); Wed, 10 Feb 2021 05:46:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A770D64E3E; Wed, 10 Feb 2021 10:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612953950; bh=ZGh3JblgSl3CcCDV0RuW+f5+tr+S9AWWy0tc8okYK9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qbAgZzmgZEnssJHK26tQVQVyoywt7CCRAwbc/c5nb4gpPTyXGv6LvlUz+pxqQH2oy aI7hi+Y1YFcfl8t/aaFrjvcvWdePTTVJo4l8OFNo4AlYfK7JukI38f5CY+swWU3zub AxI2+yRrgBi10d8skAbhiZ40LkuWbI22BD9oe+FD4rtuHh2Uyvi0yef1RXqCFgyTC1 s9gA0IoeUF7Q2a0j9w6kgKIgsnG9YguVBl8UemmONCozdKXwPKBvnCzwsf0IVtXUyc U8VJj9p/23PgZukytnvqy31tIOQn/T7BVY4+KNo99+6GYFbtZOBIYsrHxHu307n83P dfyWmyRmihrbA== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Ohad Ben-Cohen , Rob Herring , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] remoteproc: qcom: pas: Add SM8350 PAS remoteprocs Date: Wed, 10 Feb 2021 16:15:39 +0530 Message-Id: <20210210104539.340349-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210210104539.340349-1-vkoul@kernel.org> References: <20210210104539.340349-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add audio, compute, modem and sensor DSP resources to the Qualcomm PAS driver. Signed-off-by: Vinod Koul --- drivers/remoteproc/qcom_q6v5_pas.c | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) -- 2.26.2 diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index ee586226e438..e635454d6170 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -565,6 +565,26 @@ static const struct adsp_data sm8250_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data sm8350_adsp_resource = { + .crash_reason_smem = 423, + .firmware_name = "adsp.mdt", + .pas_id = 1, + .has_aggre2_clk = false, + .auto_boot = true, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; + static const struct adsp_data msm8998_adsp_resource = { .crash_reason_smem = 423, .firmware_name = "adsp.mdt", @@ -629,6 +649,25 @@ static const struct adsp_data sm8250_cdsp_resource = { .ssctl_id = 0x17, }; +static const struct adsp_data sm8350_cdsp_resource = { + .crash_reason_smem = 601, + .firmware_name = "cdsp.mdt", + .pas_id = 18, + .has_aggre2_clk = false, + .auto_boot = true, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "cdsp", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + static const struct adsp_data mpss_resource_init = { .crash_reason_smem = 421, .firmware_name = "modem.mdt", @@ -701,6 +740,26 @@ static const struct adsp_data sm8250_slpi_resource = { .ssctl_id = 0x16, }; +static const struct adsp_data sm8350_slpi_resource = { + .crash_reason_smem = 424, + .firmware_name = "slpi.mdt", + .pas_id = 12, + .has_aggre2_clk = false, + .auto_boot = true, + .active_pd_names = (char*[]){ + "load_state", + NULL + }, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .ssr_name = "dsps", + .sysmon_name = "slpi", + .ssctl_id = 0x16, +}; + static const struct adsp_data msm8998_slpi_resource = { .crash_reason_smem = 424, .firmware_name = "slpi.mdt", @@ -745,6 +804,10 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm8250-adsp-pas", .data = &sm8250_adsp_resource}, { .compatible = "qcom,sm8250-cdsp-pas", .data = &sm8250_cdsp_resource}, { .compatible = "qcom,sm8250-slpi-pas", .data = &sm8250_slpi_resource}, + { .compatible = "qcom,sm8350-adsp-pas", .data = &sm8350_adsp_resource}, + { .compatible = "qcom,sm8350-cdsp-pas", .data = &sm8350_cdsp_resource}, + { .compatible = "qcom,sm8350-slpi-pas", .data = &sm8350_slpi_resource}, + { .compatible = "qcom,sm8350-mpss-pas", .data = &mpss_resource_init}, { }, }; MODULE_DEVICE_TABLE(of, adsp_of_match);