Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4749911pxj; Tue, 22 Jun 2021 07:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXfL656/RbqV1M2fWFw4imJNiBHMZ0P0U5MKpF042tQua/vElkTwibjhAO42yv5H5KDuL1 X-Received: by 2002:a17:906:86cc:: with SMTP id j12mr4358628ejy.548.1624371350497; Tue, 22 Jun 2021 07:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624371350; cv=none; d=google.com; s=arc-20160816; b=alPadmyRlLjdkhgzG/XuWKXgtZjUWcpVmyandrSY9o/iLvuvHvMoI6qpur1JWYsj5v Em5ohDhLMKmNBybRi9aNoz/8IwP6KUg9srIqGIRIuGtEoEara1YfNmHPg5b1YgFPviGJ mz8z11y7ZkghHu+URP5452BkiLhkKqk5H9es0pV/onfW9dlHKYUIoI2nOPjwlTygilTk 1QEzbGqnQAcvhB5444SjRQRFK4vzyWc97UbnxKUYus9TZQVPleVfIKjHwXskLXG5bh+9 hW8J2VQ8rbbmWpsMNsUwPVL/PYRvAbEWO6PR9uh5VBXnhYOGeL8QrIBe825I0UKIjXcP WwNg== 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; bh=vmDSLj40l7MwcFejMdt3/Q4QzfPrwUzDPqd5PlCANiA=; b=a5pqkriaPlG7xhGgOh6w2NvhTZ6PFriIzaRMsMRnjYi1XFop2rk7hiEA2lbkEfLnbg bzu/V7IQt30dviPDgSArJR1NDnOiX6totjSvP49Wcy5uWi+sNc0mXVipeI904woQPPCu qfmMbNwGQYnTirPGMOhKIOMY26QbqvVAX48XfADEkc1EbFq4Jop7ZeLB1IRoHo0YWCef Q00nNggacNWx6ZPQOgUPVIpU4UB7KnncAKGX5o+ChO3RiykAmnEXCQj9k7Jm/6JmuaoA giEIZ/AWa+7+6Javx2p5l7xFK403rszJt2oGcph0OUi5ufEqBrGpC5A/95pLSwp5L2IH eeTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si4728003edq.591.2021.06.22.07.15.25; Tue, 22 Jun 2021 07:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231887AbhFVOOB (ORCPT + 99 others); Tue, 22 Jun 2021 10:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231621AbhFVONu (ORCPT ); Tue, 22 Jun 2021 10:13:50 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [IPv6:2001:4b7a:2000:18::165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD439C061787; Tue, 22 Jun 2021 07:11:29 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id E3D961FAF2; Tue, 22 Jun 2021 16:11:27 +0200 (CEST) From: AngeloGioacchino Del Regno To: bjorn.andersson@linaro.org Cc: agross@kernel.org, daniel.lezcano@linaro.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, jeffrey.l.hugo@gmail.com, jami.kettunen@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, devicetree@vger.kernel.org, robh+dt@kernel.org, stephan@gerhold.net, AngeloGioacchino Del Regno Subject: [PATCH v7 4/5] soc: qcom: spm: Add compatible for MSM8998 SAWv4.1 L2 Date: Tue, 22 Jun 2021 16:11:16 +0200 Message-Id: <20210622141117.358893-5-angelogioacchino.delregno@somainline.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210622141117.358893-1-angelogioacchino.delregno@somainline.org> References: <20210622141117.358893-1-angelogioacchino.delregno@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the SAWv4.1 parameters for MSM8998's Gold and Silver clusters. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/qcom/spm.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c index 1401db8373dd..8077e337ee7e 100644 --- a/drivers/soc/qcom/spm.c +++ b/drivers/soc/qcom/spm.c @@ -54,6 +54,18 @@ static const struct spm_reg_data spm_reg_660_silver_l2 = { .avs_limit = 0x4580458, }; +static const struct spm_reg_data spm_reg_8998_gold_l2 = { + .reg_offset = spm_reg_offset_v4_1, + .avs_ctl = 0x1010031, + .avs_limit = 0x4700470, +}; + +static const struct spm_reg_data spm_reg_8998_silver_l2 = { + .reg_offset = spm_reg_offset_v4_1, + .avs_ctl = 0x1010031, + .avs_limit = 0x4200420, +}; + static const u16 spm_reg_offset_v2_1[SPM_REG_NR] = { [SPM_REG_CFG] = 0x08, [SPM_REG_SPM_CTL] = 0x30, @@ -149,6 +161,10 @@ static const struct of_device_id spm_match_table[] = { .data = &spm_reg_660_gold_l2 }, { .compatible = "qcom,sdm660-silver-saw2-v4.1-l2", .data = &spm_reg_660_silver_l2 }, + { .compatible = "qcom,msm8998-gold-saw2-v4.1-l2", + .data = &spm_reg_8998_gold_l2 }, + { .compatible = "qcom,msm8998-silver-saw2-v4.1-l2", + .data = &spm_reg_8998_silver_l2 }, { .compatible = "qcom,msm8974-saw2-v2.1-cpu", .data = &spm_reg_8974_8084_cpu }, { .compatible = "qcom,apq8084-saw2-v2.1-cpu", -- 2.32.0