Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp177128rwb; Fri, 30 Sep 2022 20:10:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q5bpcgbSAwYZkzEhPKC2dz+ZAAcSFKK5v1ym2jqV/rFICIokxiRZ6TgaY78ymzHBih9O0 X-Received: by 2002:a17:902:db0a:b0:178:32b9:6f51 with SMTP id m10-20020a170902db0a00b0017832b96f51mr11741893plx.145.1664593835881; Fri, 30 Sep 2022 20:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664593835; cv=none; d=google.com; s=arc-20160816; b=kD7gSjEWogkPhZGNfPuYbOBeJMUezqbj0aTEAUBs0eMhdKpR/gorcBZYvokBNAgLQf xSfb9RPs28WASfebrOm5Tq2K9jTMW5RLBlEYm6nC+EySKi9JGLh0JGWmquErfO49PB6E wnEaaEW0IgrFNdbgkyVh3KPajk6MJl004mjmhhCUOWMl0R/vvxJkkU8OTBQIWDxVLWM2 adar4fkiPIr3KuWdpaMVXe+dOFRcfNG0BpIUTBqEyvzDgiDq6q9luX1w5fu+f8fWyruw ci09aOdQEThlU3eEgF4y7imK4moIsR7t7rtkU+wSfW0RGgBUGfjL41cWS6o4NcPB/tkY Mbnw== 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=nJ5xQYKUQaO0xTDVuI0a+cGf8oFR+0COgrbcWmyWzhk=; b=sGnDsjfIIsMI+ixkj1W+6H7iTuLLYEuCcaQcwuuBMzezJMw89PgtEz/klQeDc+F78S DbIpRGayxpLSWMr1VdVHLzsmZPCgdtEtaHRUJXP42kKe04M2SDGodHS0Xc1afSTFrdl9 YI7YVM1y5cDJwe9TTgVjvnWulN44+Rh3ULt7mfu/Ci0HmkX6E5NT7TVkFomeQG+vujit 58Ml28NtLh7PMu5Igt+XfU5XKYOnZoq4EDfJZqvcCug+gl9LkRtj6tOImPR5qrkKpp7H 4k/PH5lh600A8Wj7CjYipqVbAdVtd6DTL8AK5GRNjpb8HTKIdvXHBe7hAsRmG28JdIjR vQyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=SbqYbYmZ; 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 v18-20020a17090abb9200b00207f4e78cb8si4214463pjr.81.2022.09.30.20.10.22; Fri, 30 Sep 2022 20:10:35 -0700 (PDT) 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=SbqYbYmZ; 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 S232988AbiJADJ3 (ORCPT + 99 others); Fri, 30 Sep 2022 23:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232255AbiJADHg (ORCPT ); Fri, 30 Sep 2022 23:07:36 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1B995FE1; Fri, 30 Sep 2022 20:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1664593615; x=1696129615; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nJ5xQYKUQaO0xTDVuI0a+cGf8oFR+0COgrbcWmyWzhk=; b=SbqYbYmZ2KaBajtzmbogAbpn3T/5NUVfRH+2z8WaxBjwy9377eX+Wy1U 721KfHGmhMwmS+6ALCJDqgiizkLyoZx+RZRyk75J8cvcLkLCdXAShtmLE d6EuJIqfmKIFnOafw7FaW/0wqgdMRV5D7flw8+kzy8Nc9rIzYwiISmB5t E=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 30 Sep 2022 20:06:55 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 20:06:55 -0700 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 30 Sep 2022 20:06:55 -0700 From: Melody Olvera To: Andy Gross , Bjorn Andersson , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Ulf Hansson CC: Bhupesh Sharma , , , , , Melody Olvera Subject: [PATCH 4/5] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains Date: Fri, 30 Sep 2022 20:06:40 -0700 Message-ID: <20221001030641.29354-5-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221001030641.29354-1-quic_molvera@quicinc.com> References: <20221001030641.29354-1-quic_molvera@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Add the power domains exposed by RPMH in the Qualcomm QDU1000 and QRU1000 platforms. Signed-off-by: Melody Olvera --- drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 092f6ab09acf..f70573cbc636 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -353,6 +353,19 @@ static const struct rpmhpd_desc sm8450_desc = { .num_pds = ARRAY_SIZE(sm8450_rpmhpds), }; +/* QDU1000/QRU1000 RPMH powerdomains */ +static struct rpmhpd *qdru1000_rpmhpds[] = { + [QDRU1000_CX] = &cx, + [QDRU1000_EBI] = &ebi, + [QDRU1000_MSS] = &mss, + [QDRU1000_MX] = &mx, +}; + +static const struct rpmhpd_desc qdru1000_desc = { + .rpmhpds = qdru1000_rpmhpds, + .num_pds = ARRAY_SIZE(qdru1000_rpmhpds), +}; + /* SC7180 RPMH powerdomains */ static struct rpmhpd *sc7180_rpmhpds[] = { [SC7180_CX] = &cx_w_mx_parent, -- 2.37.3