From patchwork Fri Sep 15 09:19:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBE27EE6447 for ; Fri, 15 Sep 2023 09:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jb4ZJ6HUeV55IFUmOqxW8IOXJVIRbXVytiTKp/MHrAQ=; b=UYx7Zf+xqYAKcl llulmMkxEHdlanEvO8u0TRaC0MMYTXoasXXMP6ya9xfwD8j6hjNPiClchOQLKZ46URWr/h5L/mKNA ch2gWyf3/uvpvErzE7N3iI8FQ5NiPG66zmE9cuee0Y5uxN+h0FpkOCuhQH57G/DLqEgDweKz1O2pY SStTRrdXyeC+zAgb8Yhi+rW6Jcf9UuG6rMfDtg1MRQprG/GRPnw2wYTSz7mSS73QVK2/yraSoq63e W84y//tBNU6OFR0WErAKBvkUNEW1ONo6RE73f8jKrMb++zGI1euVCDlrUolrDjA1JCFy/ITfXnCEI fhQEu1LXuoAGFO77u6Cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50e-00AFRY-1N; Fri, 15 Sep 2023 09:21:08 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50c-00AFNA-0Z for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:07 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so29721181fa.3 for ; Fri, 15 Sep 2023 02:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769663; x=1695374463; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wbUDGne8XHRV8NpnbXLwkauduLPIsEvNE20ti9xIZAo=; b=N0aEvMX5ZWrHAij5eJ46BhXVb20hBLOYN2qMTTsTG/mtASv27lI1CG4aX9JEgs/Es5 mDzcSh/9bF6wOUiL05miFmxxT3lcHLLE3VH1y7ST+J2RL6TCA51YeG8qQoMZPHee4x3o V8EE53/uqi2la0uKZL/uk3PULHAU0AhKnOy8kI0CTENe3/VQJ7bKRJxkZqVQmaYbOx7w sibHzTXP12ORyUsKgoHAgSKso0gQ44YbGp9gJLT6AytXyX6dZP3vJf8YKVEMVYsu/H3m Qv3rDMPcI65/ueuvNT6Ysm+pKYGuWYTV+L7JnhUC7XDWxN6sdd+iL+ul+qnxQUgNiHuC /4Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769663; x=1695374463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wbUDGne8XHRV8NpnbXLwkauduLPIsEvNE20ti9xIZAo=; b=j2aoUOwxId9S30/cvzf8egbF2SwSVhrCYYwKtkC8qii6E8ALGjKIomnTwnAGFnsmz0 c7p8CNUuNYfMDM0WCYbrqqmDihQaRDGfD13dgjHV08RiSXUlEwNHTEkgpJdSb8WzoYte +Nt8xPrMF71O5Uzrm9X55ppJFBWT0aUMoxZbVPowjbEOv3s3jx3Nv0Td2Wxg3w8LGN+p vUtox9vJER1dkp6hsUXzjY13lcT6Gz24p6ZJHIn8nbNGk2BNSDcnCEfOptPcKPpNtyPH 6YPHBD1hbiYNnNPJkmY246lxc4wSm0zDKrJN0JF8lXxrp2Osvt6c9P62VYvGEio09Ke8 wC9Q== X-Gm-Message-State: AOJu0YxuTAIEIkIUUhhEaDmOTkzhmj74URQ73G5zZynCevZR1ZXqoe7t jh5dLFxckfoR6hTPsR/1RWLTPg== X-Google-Smtp-Source: AGHT+IEsFFzgCYn8PouRFC8Fe+yd5/XaogKCqWlR4itAeqKHd4Y1JMjP5DV2XaM1YZLja2cku1VJnQ== X-Received: by 2002:a2e:740b:0:b0:2b9:5eae:814f with SMTP id p11-20020a2e740b000000b002b95eae814fmr1003250ljc.50.1694769663077; Fri, 15 Sep 2023 02:21:03 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:02 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Michal Simek , Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren , Thierry Reding , Jonathan Hunter , Mikko Perttunen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Walker Chen , Conor Dooley , Krzysztof Kozlowski , Alim Akhtar , Heiko Stuebner , Geert Uytterhoeven , Magnus Damm , Bjorn Andersson , Konrad Dybcio , Andy Gross , Matthias Brugger , AngeloGioacchino Del Regno , Shawn Guo , Sascha Hauer , Fabio Estevam , Florian Fainelli , Ray Jui , Scott Branden , Hector Martin , Sven Peter , Alyssa Rosenzweig , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Andreas Farber , Manivannan Sadhasivam Subject: [PATCH v2 01/17] pmdomain: Prepare to move Kconfig files into the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:47 +0200 Message-Id: <20230915092003.658361-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022106_216021_AF37F84A X-CRM114-Status: GOOD ( 16.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Rather than having the various Kconfig files for the genpd providers sprinkled across subsystems, let's prepare to move them into the pmdomain subsystem along with the implementations. Signed-off-by: Ulf Hansson Reviewed-by: Geert Uytterhoeven --- drivers/Kconfig | 2 ++ drivers/pmdomain/Kconfig | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 drivers/pmdomain/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index efb66e25fa2d..3aebffb2efe9 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -175,6 +175,8 @@ source "drivers/soundwire/Kconfig" source "drivers/soc/Kconfig" +source "drivers/pmdomain/Kconfig" + source "drivers/devfreq/Kconfig" source "drivers/extcon/Kconfig" diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig new file mode 100644 index 000000000000..ac77cf4271a7 --- /dev/null +++ b/drivers/pmdomain/Kconfig @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "PM Domains" + +endmenu From patchwork Fri Sep 15 09:19:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B8C9EE6447 for ; Fri, 15 Sep 2023 09:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=w66Wtg3IfCY2iLE3Ix68Bx5QuztH+quWVSvpuxpof3o=; b=y13NPn6MpD/eb2 3KdbdZ50nqcgU9JpXydFDexcklk4m6c9Y0E545p0hnK7P/0bFdaHsu02ZGM6lM3zBdAs/yrivuGPc WPn8qzp1XWDqnfJ8vxF4Nkp2f3TggYAWc0FUK6HouhIbkK5y5eLsG8AmEtTqalgpBMcSUOUQyucoC Rbe8XNmIfSCOfLu4PNeGvu+wpLozrrLAFptZ4gP2myciKA6Z8TQ7AKkmke5dliCfEdtKibS0kCBaf vdDYTvhG2axFM1vgx7XuWbRdEjok/fm5KkzTQV2HUeOoHJHMPVQXRNvf874jvhUXVsReGFtMsXvZf lFfEFydRtGcJTGu7w7SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50p-00AFfz-2l; Fri, 15 Sep 2023 09:21:19 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50o-00AFYa-0Q for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:19 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b962535808so30850141fa.0 for ; Fri, 15 Sep 2023 02:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769676; x=1695374476; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r0f8HYWIP8RQszKUCt76U7MT1CQn8pw64XBqFbFs3p8=; b=ttLnG6dJvjI3fvdlO5qE/NjX4TYSuNPFGeWZDWgWF+RLoSkOwc4Xx3bbJIvI38PewS q4c4yt+Ze5LYXW+ZzEqrl2i0JdsJQoSOvkHHswY/d1rk32+JSX6cVSov8fRWc+MZ3yRs JzGU0bB1Ge3yKjUwJPA7PDPn0kwfqIv2ogHHCY6MLESFp0PYi5s5LHHP/n9l7LylqcUW hDc4yMBrt2x78Ggu3AgmuFZ9VlCm0xiUlPUfyXllgDbscCZI1F/XqUxw31XNF49NxKb6 0MM5yRg7tGELCIWwsFeENSMjdA60Vzu4t1mwG7BTaYcBzfprgUUCArnkzt2E/1WCIh+A Qe0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769676; x=1695374476; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r0f8HYWIP8RQszKUCt76U7MT1CQn8pw64XBqFbFs3p8=; b=ql/JLmQjtGb8YZDC8yjBYGyjHEBUO7TtuAxhIDJ2EAU/tT1eWkq45L7CUElCjkk+Zn OBq3DzbG941Ezlr31Rp7ga+Vik5uASBkfoGtao6uEjR5zVq+QglhF7sWgvHEDEMLx6Vo VBRR2Vyu97kACuVzwxnSFKhHpWPct5aEPcQPxj7wCWXJio884+D0sU6SE5NCuV896fD+ HLMagifaP2QSt13sDwzD+G412Uq5HLyO6dQNkN0v17OFx0J5ynOikyikWJGN90UDcVZ0 r9/hEMcq1/sCkzZ+rsuDSe5zVotRm4rI0G4wHIJa6XcngALGxt0punu/zLkpSvjFDYfi i9Sw== X-Gm-Message-State: AOJu0Yz1TGhqjVcKUGH/sY1BNaYfqKemIXe9HFDN/70cvjUabkjJNbTO fhWRUbVjUy1Lanrzuq8Gb5/IGA== X-Google-Smtp-Source: AGHT+IF3jn2rX7BSo7/mQIQtEFNNUVozn4k4rgi9dwjpA3yU2noJTaFIESdGvNZ9WGO5sODrVSbXSw== X-Received: by 2002:a2e:8912:0:b0:2bb:b56b:f67e with SMTP id d18-20020a2e8912000000b002bbb56bf67emr1014952lji.19.1694769676813; Fri, 15 Sep 2023 02:21:16 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:16 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , linux-actions@lists.infradead.org Subject: [PATCH v2 02/17] pmdomain: actions: Move Kconfig file to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:48 +0200 Message-Id: <20230915092003.658361-3-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022118_172340_CC36DC56 X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: "Andreas Färber" Cc: Manivannan Sadhasivam Cc: Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- drivers/pmdomain/Kconfig | 2 ++ drivers/{soc => pmdomain}/actions/Kconfig | 0 drivers/soc/Kconfig | 1 - 4 files changed, 3 insertions(+), 2 deletions(-) rename drivers/{soc => pmdomain}/actions/Kconfig (100%) diff --git a/MAINTAINERS b/MAINTAINERS index f1c34484c9b2..6b491ebcf790 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1788,7 +1788,7 @@ F: drivers/irqchip/irq-owl-sirq.c F: drivers/mmc/host/owl-mmc.c F: drivers/net/ethernet/actions/ F: drivers/pinctrl/actions/* -F: drivers/soc/actions/ +F: drivers/pmdomain/actions/ F: include/dt-bindings/power/owl-* F: include/dt-bindings/reset/actions,* F: include/linux/soc/actions/ diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index ac77cf4271a7..e410c4b8071a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -1,4 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "PM Domains" +source "drivers/pmdomain/actions/Kconfig" + endmenu diff --git a/drivers/soc/actions/Kconfig b/drivers/pmdomain/actions/Kconfig similarity index 100% rename from drivers/soc/actions/Kconfig rename to drivers/pmdomain/actions/Kconfig diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index d21e75d69294..8b46da40f107 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "SOC (System On Chip) specific Drivers" -source "drivers/soc/actions/Kconfig" source "drivers/soc/amlogic/Kconfig" source "drivers/soc/apple/Kconfig" source "drivers/soc/aspeed/Kconfig" From patchwork Fri Sep 15 09:19:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386680 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 644D4EE6456 for ; Fri, 15 Sep 2023 09:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sM4owoyZSmMUExhODjQSnrHgp/wOjli7UomlODwPIOE=; b=CT3t80LQ0GobSg wuGmDRGP23LXb2ksH5yPO6kXK7sLYk9WLLMz2DdHqBSqSFR/XnQAbnZgdwsGxoyIQSCS682omYBJM K5NTPDU6yAXjxLyyBRtMHwncaQX00KqPLsZTRjgNKsU7D7tSoYs6swF3oYPp1Sc0FvqYNioTOIY+D rC61vgI/I/IJOYJAF4vxEXmw3Ep10Dso5sehjHAHCaNWnWu/ONVfrUeoZNiD2eC8hbwE0lKz6RC0G yqtZg7zMw7Cnf/QydZFPxiIcHrcRzSabIkLticEalw+NVCNPHq7YMxh69PKfUCKbF5bH/Q0FtuTTJ gdHnXt9MwURSv/H/gxBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50u-00AFlx-3D; Fri, 15 Sep 2023 09:21:25 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50p-00AFey-0T for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:20 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bcb89b4767so29023281fa.3 for ; Fri, 15 Sep 2023 02:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769678; x=1695374478; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mtEkXdqn2AKXcoldY8q7JCFJLuqJ45MWZNi1FoZm5Ic=; b=K0wCOz5bZhC14mP3eRpamJJqVXlGOk6IRChvmD+2QQklj7c6Cz0e1Vz9VAiV33ifzT wX/JUgUvLG/bzDj8/mSPBHtQBJ4y2T3hjcFD/QxHcubP6CmFwQDTKqXMsXs5LW48gmGt wQhtSIxMAZkWdJSC8GIVjZcJVnKkvk0AXb5T49rD3yp1afRSjDcrxZW74988BEAeaqdm UFT155IlnMWtybkFAy9kmuBWfgE0R0b7PQL8IlpdH79GLzNEcchINIttpFauOwjFyxKn T+J7gSbQeUpdKKonruNm1NQhFp4FnxhOgIr/CsfVYpkK5AFQWTTS+Otpa9f41y+GQdhN 50MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769678; x=1695374478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mtEkXdqn2AKXcoldY8q7JCFJLuqJ45MWZNi1FoZm5Ic=; b=PKuzOx83USdf30TIp2a6Wi3LrzYg76N1yGXkYkh/hjzegkIcPFEog7EMruUYedxhio F5uu8hBluJVafaL/MkjnEa1iifEC6fmkRt5JtcHjEYlqo7ma0ccU+A6RVT9h7/JNqdR/ sWDJAy5+1GwG4SB5h3PQK4DMuaF0qUGyWnvm/tFr/bL/hCQdrNapiSK1Wt87TBqi+J9O L7bN64C2leThzIL7m/ZCCIpufbWMfvXIas0tZiOKewDuYUj+GfHOwy1NTn33NYZ+Q7oO bWBRv/Ht6bdwheQvc9SD0C4Aju9jlQBflZjwrEDeHTVQG0u2T3ECOC7mmPGu2nq6ZeW6 B+7w== X-Gm-Message-State: AOJu0YwVoGyRPUPBk2f4UodXOBq7eICf5atSedHYkWC78dJXNvzanuQF 3t/e8Ky5rAQ8Mxm8xN1PnwdvuQ== X-Google-Smtp-Source: AGHT+IFx5SAj9k17uZVn4NqPVoiWz/nsVg3nOnzOEp+JkWLtAilL3VHRVFLGDM2LReEURtgNYbQOYg== X-Received: by 2002:a2e:9987:0:b0:2bc:daa2:7838 with SMTP id w7-20020a2e9987000000b002bcdaa27838mr1012473lji.19.1694769677864; Fri, 15 Sep 2023 02:21:17 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:17 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-amlogic@lists.infradead.org Subject: [PATCH v2 03/17] pmdomain: amlogic: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:49 +0200 Message-Id: <20230915092003.658361-4-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022119_192931_72B9123B X-CRM114-Status: GOOD ( 15.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Neil Armstrong Cc: Kevin Hilman Cc: Jerome Brunet Cc: Martin Blumenstingl Cc: Acked-by: Neil Armstrong Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/amlogic/Kconfig | 39 ++++++++++++++++++++++++++++++++ drivers/soc/amlogic/Kconfig | 35 ---------------------------- 3 files changed, 40 insertions(+), 35 deletions(-) create mode 100644 drivers/pmdomain/amlogic/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index e410c4b8071a..03c8991ad0fd 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -2,5 +2,6 @@ menu "PM Domains" source "drivers/pmdomain/actions/Kconfig" +source "drivers/pmdomain/amlogic/Kconfig" endmenu diff --git a/drivers/pmdomain/amlogic/Kconfig b/drivers/pmdomain/amlogic/Kconfig new file mode 100644 index 000000000000..2108729909b5 --- /dev/null +++ b/drivers/pmdomain/amlogic/Kconfig @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Amlogic PM Domains" + +config MESON_GX_PM_DOMAINS + tristate "Amlogic Meson GX Power Domains driver" + depends on ARCH_MESON || COMPILE_TEST + depends on PM && OF + default ARCH_MESON + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + Say yes to expose Amlogic Meson GX Power Domains as + Generic Power Domains. + +config MESON_EE_PM_DOMAINS + tristate "Amlogic Meson Everything-Else Power Domains driver" + depends on ARCH_MESON || COMPILE_TEST + depends on PM && OF + default ARCH_MESON + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + Say yes to expose Amlogic Meson Everything-Else Power Domains as + Generic Power Domains. + +config MESON_SECURE_PM_DOMAINS + tristate "Amlogic Meson Secure Power Domains driver" + depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM + depends on PM && OF + depends on HAVE_ARM_SMCCC + default ARCH_MESON + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + Support for the power controller on Amlogic A1/C1 series. + Say yes to expose Amlogic Meson Secure Power Domains as Generic + Power Domains. + +endmenu diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 174a9b011461..d08e398bdad4 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -26,41 +26,6 @@ config MESON_GX_SOCINFO Say yes to support decoding of Amlogic Meson GX SoC family information about the type, package and version. -config MESON_GX_PM_DOMAINS - tristate "Amlogic Meson GX Power Domains driver" - depends on ARCH_MESON || COMPILE_TEST - depends on PM && OF - default ARCH_MESON - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - Say yes to expose Amlogic Meson GX Power Domains as - Generic Power Domains. - -config MESON_EE_PM_DOMAINS - tristate "Amlogic Meson Everything-Else Power Domains driver" - depends on ARCH_MESON || COMPILE_TEST - depends on PM && OF - default ARCH_MESON - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - Say yes to expose Amlogic Meson Everything-Else Power Domains as - Generic Power Domains. - -config MESON_SECURE_PM_DOMAINS - tristate "Amlogic Meson Secure Power Domains driver" - depends on (ARCH_MESON || COMPILE_TEST) && MESON_SM - depends on PM && OF - depends on HAVE_ARM_SMCCC - default ARCH_MESON - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - Support for the power controller on Amlogic A1/C1 series. - Say yes to expose Amlogic Meson Secure Power Domains as Generic - Power Domains. - config MESON_MX_SOCINFO bool "Amlogic Meson MX SoC Information driver" depends on (ARM && ARCH_MESON) || COMPILE_TEST From patchwork Fri Sep 15 09:19:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8AE30EE6454 for ; Fri, 15 Sep 2023 09:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S5rekeb9ObJgV7daEsgWZ4/I6wruT4jFxWV4k/gvcOU=; b=ulx18ubF7pf/sd p29Ncd4HP6Kbz0e1T2MpY9JbWsA3TfdeQ2NxXbtN31zgLnbOLQna94So7l0kpZuc6himZdsbhEb5F QqN1B+n2xMM3JEl1DdPblDNC2FiOdcYHldw89BXmIp/AOjnGq01Asq14qhbQtqchgcE4bAvyLfrT/ Ru63Q7M5TmxyG2z8qpKFvebWaVceRCM3Z2CtUTW1TKofQlmc2V0aGZFgvUCY4GCEwFLiq09iRLfM7 ZGzAvDenqzUWpL7seqsq+0yM46BKd+JDHzaCQwvXSe3jZCOa7hY5Nt+ffeuFsKW2xotF0c06IvxR9 cqC2QlFgUholpuy7x7Ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50w-00AFn8-24; Fri, 15 Sep 2023 09:21:26 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50r-00AFfb-0D for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:22 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so29725701fa.3 for ; Fri, 15 Sep 2023 02:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769678; x=1695374478; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; b=Ae7WTj58HYiON3/Sg/CMkKXkfHaTC5rR1rBd3qc+BE1dTZ6AOfgyJbLDXRuFkrJ/Ja E64w8EZtwvR+oEzE2Touap5n83eS7Fb0Gf/kcBSylHs5bPMCPjT3nepLIvZI5B/AY9tp sDqY1N215rNtaFzoCjfeIKJ7dFB5H17WA9gkhRhMqnh48IxCP5j89/rn1gEfNFNNaf+D WSJaHzKUjVJLKBxoqi+9+uuQTVoWplfYFT3Dq+qsScepC2ab/TUI2dnClF08PUtCFgr9 CYrPFE50IBS6a1ZboabU2BUWpa+gx4SgKE/279aIpJgOY1E3F7sDUNlAt5nYtuXit4Tp hV4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769678; x=1695374478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; b=VU27D56urGhxKrJ7padRbnlQM2qMPLSd7I2q0yAUa2W6R3sTIBSEiroAfik4JntzFA nwkk4+mXHM3MP8ro5otVlr8CJEg/IlK2OpyxZ9cWBeIGNP4sRJzXDda5WXaES3cOqbv6 ijuNCUYXFuCFxbYsewoTTteA4zlkqCz1jzrv6yzkXZAYn/U4dyxAKLM+mc2eHuLA6xK8 Y1+wvKkaHKnflDESanPZkY8S9kRHlZI31vQe6N4gblklPqmu7ewLkWfMzZp2W4yvw/nG 42aE8/GTzj4laZYb914Sw7Z67z80nbRTtnknGv5BamTARChwnmBqec6y5FJfmK8d9rt5 K/yA== X-Gm-Message-State: AOJu0YxNhF8MShLzG89VafdYR/KEznc1xCgYUmR8HYJDh3z5lQ/JYE6B FEF9leX/BDfjOH8I+JXY+VfqzQ== X-Google-Smtp-Source: AGHT+IHAQ1iI+KB4DwlX9IrPYGMVQNjUB4liAC9r/LpWZWzZwOnLogKuDYvJOCgw36npmE6DOTZBbQ== X-Received: by 2002:a2e:7010:0:b0:2bc:c750:d9be with SMTP id l16-20020a2e7010000000b002bcc750d9bemr1141692ljc.29.1694769678814; Fri, 15 Sep 2023 02:21:18 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:18 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hector Martin , Sven Peter , Alyssa Rosenzweig , asahi@lists.linux.dev Subject: [PATCH v2 04/17] pmdomain: apple: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:50 +0200 Message-Id: <20230915092003.658361-5-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022121_106484_31C327FB X-CRM114-Status: GOOD ( 14.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Hector Martin Cc: Sven Peter Cc: Alyssa Rosenzweig Cc: Signed-off-by: Ulf Hansson Reviewed-by: Eric Curtin Reviewed-by: Neal Gompa --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/apple/Kconfig | 18 ++++++++++++++++++ drivers/soc/apple/Kconfig | 13 ------------- 3 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 drivers/pmdomain/apple/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 03c8991ad0fd..482d9e970e14 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -3,5 +3,6 @@ menu "PM Domains" source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" +source "drivers/pmdomain/apple/Kconfig" endmenu diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig new file mode 100644 index 000000000000..12237cbcfaa9 --- /dev/null +++ b/drivers/pmdomain/apple/Kconfig @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0-only + +if ARCH_APPLE || COMPILE_TEST + +config APPLE_PMGR_PWRSTATE + bool "Apple SoC PMGR power state control" + depends on PM + select REGMAP + select MFD_SYSCON + select PM_GENERIC_DOMAINS + select RESET_CONTROLLER + default ARCH_APPLE + help + The PMGR block in Apple SoCs provides high-level power state + controls for SoC devices. This driver manages them through the + generic power domain framework, and also provides reset support. + +endif diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig index a1596fefacff..eff486a77337 100644 --- a/drivers/soc/apple/Kconfig +++ b/drivers/soc/apple/Kconfig @@ -4,19 +4,6 @@ if ARCH_APPLE || COMPILE_TEST menu "Apple SoC drivers" -config APPLE_PMGR_PWRSTATE - bool "Apple SoC PMGR power state control" - depends on PM - select REGMAP - select MFD_SYSCON - select PM_GENERIC_DOMAINS - select RESET_CONTROLLER - default ARCH_APPLE - help - The PMGR block in Apple SoCs provides high-level power state - controls for SoC devices. This driver manages them through the - generic power domain framework, and also provides reset support. - config APPLE_RTKIT tristate "Apple RTKit co-processor IPC protocol" depends on MAILBOX From patchwork Fri Sep 15 09:19:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 698E5EE6447 for ; Fri, 15 Sep 2023 09:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Pc1aZ7GGh/D4PTrVXkvwIq8wPzcS1gKuMt2AlslsUq8=; b=ZOfPlgMKmkLHeS Squtii2ykjqN/H5lfN/+aLi7fElDavO1f2D/r6ncq6VFFRlPFD5I75b1fupRQ7Ifd+feLIGppuddz yriyqWf/q87DAxGqUpaDXR77PIHJvD18zAdVfN5VWOGi+P5s/IDLgYG0H8/MDvXzv0wUEFI97ZLju Veu2tUweaQd1iwNomsMwXz+pcHi7B+v6ib9qrlSAIwLKfl2m/0FxAtA85ekpS7dn5SdP/r2c3hgPy vhnkuakiUXzQ3TOWLIOO2iC4V8VZZH4Ft+RK3lvb/R/SBK3gvosnlBJ9m9G1UbWpGMXfJU+McFCYl 7ISlcySIB7/sa9LI1XbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50x-00AFo7-1n; Fri, 15 Sep 2023 09:21:27 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50s-00AFgU-0v for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:24 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bceca8a41aso30791221fa.0 for ; Fri, 15 Sep 2023 02:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769680; x=1695374480; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CP3f1sHM5Nj5iu5CRIA2O8JEDQIcldDJUxmizaosav4=; b=yCq+nWr5hXGBngAjZFvTVStsn/7I4EunM4whxhbHbEjjbqGub7IfLmBh/JTj/vpeeJ YqoIWv0GMBK+9tph1mnYOnyfzbOO+rnp8k8XjQC4NKAmxX4p3bKR0W3FcBc/tp8r344D x7F8kMNEeAQnz4sXW1qfGVMASzg2HjNTYLjP30Xcv6Ld9gwgtfnh7kFtXGYbZs1LpVCO nlWFo0uahf0BwOBcV9iTJk43mD7yqHkQ+eXixoiNCvD+11Z6to3SsFTVBf2m3q2vyu2m jOsD5/zLRW+I1ppaJiKwQqjI8FTPK0gFiMZ8COYzH/0GoEx9a3OY+S0FAS0sl52GBOn0 xnFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769680; x=1695374480; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CP3f1sHM5Nj5iu5CRIA2O8JEDQIcldDJUxmizaosav4=; b=fWUPirQbxqIPv5wnTqu55ZqNpuwS8RSmbvU5rJrDch8lB4FyKMPDXccKu7x25G16h/ +lYhtL/jCjnURhOPJ6jAt3DGqgFwqgOYSZOrx99kvCe0GOBSQZCoNdSkkVMj7AlHc1mD K313upQm3pF+7vgCY/W+Ai9l9/IIZtA5U+0s1KhI0EKbSbpoag4QvFiyzSnNbqQ4C6ND fZyUZhVBpq4d9RqbUOb3VcWc3I9HkgciJp2H6QJQ+NAyLPfiZ3aLRiam9JSjcvj98UDn Pn6nKHZIgWu2kzhifIXzXUUX6tR9n+lf1I4dku39+2yWXE+HVXfSWheCC6bwWgCKaCtO uIPQ== X-Gm-Message-State: AOJu0YyS1bwWvA0uBiBZMsMbEKzxvAgPu0FumPgHJWLvZ8YtqCCOI74Y ZEdcqncC3pfUvd4XmzKec8TtyA== X-Google-Smtp-Source: AGHT+IHPlaacG/gOBVJctrl1sdlsMKaUAGjfwl65ptqYhYWAn3prdG0qyTiCr8K2Oo6HMHyZs5IEqQ== X-Received: by 2002:a2e:8887:0:b0:2b6:dc55:c3c7 with SMTP id k7-20020a2e8887000000b002b6dc55c3c7mr1141914lji.20.1694769679779; Fri, 15 Sep 2023 02:21:19 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:19 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Florian Fainelli , Ray Jui , Scott Branden , linux-mips@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH v2 05/17] pmdomain: bcm: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:51 +0200 Message-Id: <20230915092003.658361-6-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022122_331558_C650E52D X-CRM114-Status: GOOD ( 19.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Florian Fainelli Cc: Ray Jui Cc: Scott Branden Cc: Cc: Signed-off-by: Ulf Hansson Reviewed-by: Philippe Mathieu-Daudé --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/bcm/Kconfig | 46 ++++++++++++++++++++++++++++++++++++ drivers/soc/bcm/Kconfig | 42 -------------------------------- 3 files changed, 47 insertions(+), 42 deletions(-) create mode 100644 drivers/pmdomain/bcm/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 482d9e970e14..ddc05d6af100 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -4,5 +4,6 @@ menu "PM Domains" source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" +source "drivers/pmdomain/bcm/Kconfig" endmenu diff --git a/drivers/pmdomain/bcm/Kconfig b/drivers/pmdomain/bcm/Kconfig new file mode 100644 index 000000000000..9311e90b7707 --- /dev/null +++ b/drivers/pmdomain/bcm/Kconfig @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Broadcom PM Domains" + +config BCM2835_POWER + bool "BCM2835 power domain driver" + depends on ARCH_BCM2835 || (COMPILE_TEST && OF) + default y if ARCH_BCM2835 + select PM_GENERIC_DOMAINS if PM + select RESET_CONTROLLER + help + This enables support for the BCM2835 power domains and reset + controller. Any usage of power domains by the Raspberry Pi + firmware means that Linux usage of the same power domain + must be accessed using the RASPBERRYPI_POWER driver + +config RASPBERRYPI_POWER + bool "Raspberry Pi power domain driver" + depends on ARCH_BCM2835 || (COMPILE_TEST && OF) + depends on RASPBERRYPI_FIRMWARE=y + select PM_GENERIC_DOMAINS if PM + help + This enables support for the RPi power domains which can be enabled + or disabled via the RPi firmware. + +config BCM_PMB + bool "Broadcom PMB (Power Management Bus) driver" + depends on ARCH_BCMBCA || (COMPILE_TEST && OF) + default ARCH_BCMBCA + select PM_GENERIC_DOMAINS if PM + help + This enables support for the Broadcom's PMB (Power Management Bus) that + is used for disabling and enabling SoC devices. + +if SOC_BCM63XX + +config BCM63XX_POWER + bool "BCM63xx power domain driver" + depends on BMIPS_GENERIC || (COMPILE_TEST && OF) + select PM_GENERIC_DOMAINS if PM + help + This enables support for the BCM63xx power domains controller on + BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. + +endif # SOC_BCM63XX + +endmenu diff --git a/drivers/soc/bcm/Kconfig b/drivers/soc/bcm/Kconfig index f96906795fa6..406617aa3056 100644 --- a/drivers/soc/bcm/Kconfig +++ b/drivers/soc/bcm/Kconfig @@ -1,27 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "Broadcom SoC drivers" -config BCM2835_POWER - bool "BCM2835 power domain driver" - depends on ARCH_BCM2835 || (COMPILE_TEST && OF) - default y if ARCH_BCM2835 - select PM_GENERIC_DOMAINS if PM - select RESET_CONTROLLER - help - This enables support for the BCM2835 power domains and reset - controller. Any usage of power domains by the Raspberry Pi - firmware means that Linux usage of the same power domain - must be accessed using the RASPBERRYPI_POWER driver - -config RASPBERRYPI_POWER - bool "Raspberry Pi power domain driver" - depends on ARCH_BCM2835 || (COMPILE_TEST && OF) - depends on RASPBERRYPI_FIRMWARE=y - select PM_GENERIC_DOMAINS if PM - help - This enables support for the RPi power domains which can be enabled - or disabled via the RPi firmware. - config SOC_BCM63XX bool "Broadcom 63xx SoC drivers" depends on BMIPS_GENERIC || COMPILE_TEST @@ -42,27 +21,6 @@ config SOC_BRCMSTB If unsure, say N. -config BCM_PMB - bool "Broadcom PMB (Power Management Bus) driver" - depends on ARCH_BCMBCA || (COMPILE_TEST && OF) - default ARCH_BCMBCA - select PM_GENERIC_DOMAINS if PM - help - This enables support for the Broadcom's PMB (Power Management Bus) that - is used for disabling and enabling SoC devices. - -if SOC_BCM63XX - -config BCM63XX_POWER - bool "BCM63xx power domain driver" - depends on BMIPS_GENERIC || (COMPILE_TEST && OF) - select PM_GENERIC_DOMAINS if PM - help - This enables support for the BCM63xx power domains controller on - BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. - -endif # SOC_BCM63XX - source "drivers/soc/bcm/brcmstb/Kconfig" endmenu From patchwork Fri Sep 15 09:19:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 539D5EE644D for ; Fri, 15 Sep 2023 09:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Dj13Gm4fXlEfB95O8J8NYlMpiNFU+2mATwxlrkwvtHo=; b=ogSnwWPzSOHhJY kKG6oCzRFDWVSJbV0rO5HOzSyvxETYay3x7Njz3j0SD4s8E1UT0soO8DWBRwgs8KQoFRO7667aHO5 Yw3jZG5hIrPau5qsTu03/Tfi0LNdQEZdXVV+V6y93oFveqit9sv0h7XTGPuO9Pwd/qpO+qCkoaD4/ F2fBfAMMb553yPrQAwVFv8bFZQ6+cLKso7a6T96ObhyNumiy9nqZ+BD1IKd5nWGopto0KJoHrKXcc /YBNjbOR78oRrnU2q1b4LQ9ndRQ1EyV+ukpZqfLE1CmXfLyU15rCLZx6lhvLQ3R5XxP9N0pFSYm8w egpk/c0CqLOna81Cieeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50y-00AFpI-1d; Fri, 15 Sep 2023 09:21:28 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50s-00AFhd-23 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:24 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b962c226ceso30023611fa.3 for ; Fri, 15 Sep 2023 02:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769681; x=1695374481; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; b=I+qdzateCT5BYCO66/Pd/CpLy9kvBFKJ2vEFPW3v2G/sVYG7YQyDI9up6WSW0aK0/b k1mRuk4FOFuz3JEbCbwOxWSJSBr30k1Sp0Gk7nBKGtNrBlKdbAnc2G1Amq0mg3NPv5xx qY4TWCh0ZAQnMV0XqbEonqK7sFV8aylCJmPIvvgJRV2srMtiFOKhKD43knn1G3egZaBd pigmyOBCthD2H8XpVUWusuAdsktR9AjP6ygj4Vwkbc4TFsHe1zZZpGVKVppVs65E7mkn KrkcOQLMAeus3rpwHIo7W8C9BKsXn8Hv4L5cObZ7bHCgK13/yo5DONBeX1xSACEQUenx g0OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769681; x=1695374481; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; b=hMoD8bhsVPUxBnWwh1iXsIBnNnemMG3tbWH+h1BI2tkjoQkvk9iW6qQVrzOLGOBz5A yaI/D00wc7aPxt55vDRfLRdjuyq3w+aG7z183fpdFFhx3wNr8jjhrIxz72Ak5wGXPCSv K1mjBMB9NV68uhWHuybzHLuWXKFzGzXCFbFve81wloKHaFv1GVQeXqzEF8VJn4Tg3Y+Y nzQie2wE79XLWXP74Bdjfyx+Hw+mIsjQJsbuDal2TEoh62CCmHWmKXnH7YH89mPh18E6 8MCwbEqhajtfHe7uUmjaTEAxuBIBM5dQv75Hom7JUgiJ8Nb+xp1aGV/6a3BNt/0+zRHe Hryw== X-Gm-Message-State: AOJu0YxO67meST0ALLBxGNqg364BFz4bh3LNZkFoSFNjJ/J1heyrKyhv /nG/6uEq55QUWX7dJGIfPA8Ozg== X-Google-Smtp-Source: AGHT+IHXR2CQ7Hv88Rx2+B5/Du0EO5B0lQBAb20t9J+UIEwpeQW6vZcWCwAfDkQD/PfD2zXRvkmw0A== X-Received: by 2002:a2e:880c:0:b0:2b6:cf64:7a8e with SMTP id x12-20020a2e880c000000b002b6cf647a8emr1038527ljh.19.1694769681271; Fri, 15 Sep 2023 02:21:21 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:20 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shawn Guo , Sascha Hauer , Fabio Estevam , Peng Fan , kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v2 06/17] pmdomain: imx: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:52 +0200 Message-Id: <20230915092003.658361-7-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022122_681661_57F9568A X-CRM114-Status: GOOD ( 17.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc- and firmware subsystem to the pmdomain subsystem. Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Peng Fan Cc: Cc: Signed-off-by: Ulf Hansson Acked-by: Peng Fan --- drivers/firmware/imx/Kconfig | 6 ------ drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/imx/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/soc/imx/Kconfig | 19 ------------------- 4 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 drivers/pmdomain/imx/Kconfig diff --git a/drivers/firmware/imx/Kconfig b/drivers/firmware/imx/Kconfig index c027d99f2a59..183613f82a11 100644 --- a/drivers/firmware/imx/Kconfig +++ b/drivers/firmware/imx/Kconfig @@ -22,9 +22,3 @@ config IMX_SCU This driver manages the IPC interface between host CPU and the SCU firmware running on M4. - -config IMX_SCU_PD - bool "IMX SCU Power Domain driver" - depends on IMX_SCU - help - The System Controller Firmware (SCFW) based power domain driver. diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index ddc05d6af100..e2c85f20a0c3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -5,5 +5,6 @@ source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" +source "drivers/pmdomain/imx/Kconfig" endmenu diff --git a/drivers/pmdomain/imx/Kconfig b/drivers/pmdomain/imx/Kconfig new file mode 100644 index 000000000000..00203615c65e --- /dev/null +++ b/drivers/pmdomain/imx/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "i.MX PM Domains" + +config IMX_GPCV2_PM_DOMAINS + bool "i.MX GPCv2 PM domains" + depends on ARCH_MXC || (COMPILE_TEST && OF) + depends on PM + select PM_GENERIC_DOMAINS + select REGMAP_MMIO + default y if SOC_IMX7D + +config IMX8M_BLK_CTRL + bool + default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS + depends on PM_GENERIC_DOMAINS + depends on COMMON_CLK + +config IMX9_BLK_CTRL + bool + default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS + depends on PM_GENERIC_DOMAINS + +config IMX_SCU_PD + bool "IMX SCU Power Domain driver" + depends on IMX_SCU + help + The System Controller Firmware (SCFW) based power domain driver. + +endmenu diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig index 76a4593baf0a..2a90ddd20104 100644 --- a/drivers/soc/imx/Kconfig +++ b/drivers/soc/imx/Kconfig @@ -1,14 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "i.MX SoC drivers" -config IMX_GPCV2_PM_DOMAINS - bool "i.MX GPCv2 PM domains" - depends on ARCH_MXC || (COMPILE_TEST && OF) - depends on PM - select PM_GENERIC_DOMAINS - select REGMAP_MMIO - default y if SOC_IMX7D - config SOC_IMX8M tristate "i.MX8M SoC family support" depends on ARCH_MXC || COMPILE_TEST @@ -28,15 +20,4 @@ config SOC_IMX9 help If you say yes here, you get support for the NXP i.MX9 family -config IMX8M_BLK_CTRL - bool - default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS - depends on PM_GENERIC_DOMAINS - depends on COMMON_CLK - -config IMX9_BLK_CTRL - bool - default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS - depends on PM_GENERIC_DOMAINS - endmenu From patchwork Fri Sep 15 09:19:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47D5CEE644D for ; Fri, 15 Sep 2023 09:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R6hMD4Y52DmuTi05Qlooa1+L4/uN9D17b0cFEO2ZXM8=; b=hRyv3uO47t3a9R bkGT0X58a4S/Np3WJYUs17FaR9m36x3OII6IcQUkMjYJI5VHr4YRDT+VBo0q8faQ89NOpvzmjKsIy m6iQrdFDd/qxNJHjHUvwL4x4UKoMKT8eKjo1keDo9oIcNn10krd1CN3cqv/eC4I3am72qS5A2ptqr SgDSX3Hg2Xj0jgjuPnJyPtFxEYhaXqzPE46CCHCrqYqjXVvtm1KVz55AHsBUpnPQI7HSkFq2xvfki 4GQLi8a3kWUPryIhCB9wseKyUsSVjC9YcEP0EeUdvgdYZ+CPE5iyT9ra2aU1URfE/7RD8HTTyQp9u dMnYHUK3hdPCUJAO0b8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh511-00AFsQ-0m; Fri, 15 Sep 2023 09:21:31 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50u-00AFig-1J for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:26 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2bcbfb3705dso30073901fa.1 for ; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769682; x=1695374482; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; b=BaQKvhzhUm87R+Lf5hOJXIG+KfRhbnMmQY+S2wMW0vyfF9/+97n33vBDo/DaP/v6RP N1jbCjopAG9Q/+IPXSw7BWj2age7f6fVSoAYjH/HQE3sphBvJCnR6k1nDftYaXM8AAjM 9MpkHHaQiSA/pix9R6YUM1u/E8mu4X1NlFWQ+do/NwwkYDv2Dy/dm6jwSC5AYi9isP8h Mbyr9zcF7LlKKW0p/WQCFzRAiGEl/nK/Ti9pQCC/oRX5v9qpJL6sCWHa2l9QxjThGSRp nDV0DN6iIaPnOIoHCepuCNg/izp9X6gZgjLf52uhEMVMeD2/m3TKxYbHTad1ItaVTQ9g 1CTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769682; x=1695374482; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; b=Ezg+RxyhOtlI/XgQmqD1jPqED1dYJi/KpHcS/TJudwjEFyUBbZluyUOjE3dgZ9WcSx FYhUJU6v0SbequhPF2gDIwf3jNEUI+Qa5OF3cXIPC8LPClutEyaTcFBkvb7HGjtT9vK6 rG8rXkMEzVHinCSajA3Xvu9Hc9LDV1/YaHAnGkWyfk/suRb+ADtNC93zXwOcwe936GaZ bP5z/Z8kkh72ZxaoiDzs69WueIr5wPmjJ7I3vUdz+83HzVGcSJdPa0ZlRGbYstHBnQAl s5JaU8yIzHxWy5eeH1AASH8UVYc2AbHOI2kcYMmFt/f1VlcOhexGJ1IVjntQ9uTAndRZ 1WUg== X-Gm-Message-State: AOJu0YzDk9jySChZOUGH/EN5GO2BlA8uke8DRmZ1MSXEkdYguCt9ogYy L4nzsQgMQXjNW0hF12wjL/LYyg== X-Google-Smtp-Source: AGHT+IE/zpxUF1uu6BoDONyVpbXJeKhY3xFLEPlW57X6jw1Xtx2VwUTkRcH+jl50/wFagGsRc7Grsg== X-Received: by 2002:a2e:b001:0:b0:2bc:ee89:6976 with SMTP id y1-20020a2eb001000000b002bcee896976mr1063977ljk.24.1694769682154; Fri, 15 Sep 2023 02:21:22 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:21 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Matthias Brugger , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org Subject: [PATCH v2 07/17] pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:53 +0200 Message-Id: <20230915092003.658361-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022124_463090_579A2F24 X-CRM114-Status: GOOD ( 16.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Matthias Brugger Cc: AngeloGioacchino Del Regno Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/mediatek/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 23 ----------------------- 3 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 drivers/pmdomain/mediatek/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index e2c85f20a0c3..b1d9dc7d71e3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -6,5 +6,6 @@ source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" +source "drivers/pmdomain/mediatek/Kconfig" endmenu diff --git a/drivers/pmdomain/mediatek/Kconfig b/drivers/pmdomain/mediatek/Kconfig new file mode 100644 index 000000000000..21305c4f17fe --- /dev/null +++ b/drivers/pmdomain/mediatek/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only + +menu "MediaTek PM Domains" + depends on ARCH_MEDIATEK || COMPILE_TEST + +config MTK_SCPSYS + bool "MediaTek SCPSYS Support" + default ARCH_MEDIATEK + depends on OF + select REGMAP + select MTK_INFRACFG + select PM_GENERIC_DOMAINS if PM + help + Say yes here to add support for the MediaTek SCPSYS power domain + driver. + +config MTK_SCPSYS_PM_DOMAINS + bool "MediaTek SCPSYS generic power domain" + default ARCH_MEDIATEK + depends on PM + select PM_GENERIC_DOMAINS + select REGMAP + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, the System + Control Processor System (SCPSYS) has several power management related + tasks in the system. + +endmenu diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig index a88cf04fc803..0810b5b0c688 100644 --- a/drivers/soc/mediatek/Kconfig +++ b/drivers/soc/mediatek/Kconfig @@ -49,29 +49,6 @@ config MTK_REGULATOR_COUPLER default ARCH_MEDIATEK depends on REGULATOR -config MTK_SCPSYS - bool "MediaTek SCPSYS Support" - default ARCH_MEDIATEK - depends on OF - select REGMAP - select MTK_INFRACFG - select PM_GENERIC_DOMAINS if PM - help - Say yes here to add support for the MediaTek SCPSYS power domain - driver. - -config MTK_SCPSYS_PM_DOMAINS - bool "MediaTek SCPSYS generic power domain" - default ARCH_MEDIATEK - depends on PM - select PM_GENERIC_DOMAINS - select REGMAP - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, the System - Control Processor System (SCPSYS) has several power management related - tasks in the system. - config MTK_MMSYS tristate "MediaTek MMSYS Support" default ARCH_MEDIATEK From patchwork Fri Sep 15 09:19:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386684 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BBC1EE644B for ; Fri, 15 Sep 2023 09:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OUb3y8KYCFGsEOI8rls2fOOMbR0uuWTPoTe4eN81WEM=; b=U3I3Ube0Gy1LbL 7ORarsIYHqvSfi98Gml8OmbP+dJ8dFAb86DIEp9EaPdcm3G07WRkk92BSptrw2zxkgK+JMAW7Me+d yg8BWgbRQo0wx+CsxiFW6dNxLV2e8O5OLSQ5Ld7IdgEntJ4/e6ZBfYx+/UAqD5st1w5tDy40MSj7i P9keMYU8ClZQwETA9aOXRWnIdRy7yPt39xZ3a9a001IqpWwf+XeiX23OYy2hOxZ8j7A2Z9MFKXde9 HSdtQV628VLyxU1dZNOCPWpcCky9aPhjbPxTy04uynUT5R56jRT+uGR7mEQ24u7XTWcHnin62XMRg OqqxLHwvloZMVcJoiv4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh512-00AFto-22; Fri, 15 Sep 2023 09:21:32 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50v-00AFkr-21 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:27 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ba1e9b1fa9so30794341fa.3 for ; Fri, 15 Sep 2023 02:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769683; x=1695374483; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ya9Nj5WT/J10Cs78iLoaa7AD4/TmGlT+hGtAjhqtW2Y=; b=DcW17mU5Srkcbv9JxpnQ/JSWQGzLDWWlG7+pHCGCsP70xdx2pfW1QN7adMaUesju3z 0Ob5z3hehMduf8S2Qb97LFiCp8tvgBBlKEzcEDf9MLSBL4s6JcqVNSk6bySzsgrT2V1f jSAWUCL5U+SBBCO3ddfO/hw7Rg2FOC40QgTxXLb0FqDyiTTODcar2XaoY9t/OGipBan5 xIGptKiG/g/MtuGRxQH3zXKAS59P9FyVkGe1s8nN5Ns7w3gz79iT8MjB0GXtW3+xen+3 RvvgiKEHMalB0wdDEbjzLo1VDAThSwA1p7TRPwalCzLnENcV6RFXsdCx+BAd52VCeR8S YluA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769683; x=1695374483; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ya9Nj5WT/J10Cs78iLoaa7AD4/TmGlT+hGtAjhqtW2Y=; b=mJqAyCmTV+McOkShcxf8uiYNyEApS2O35PcOSrsVLfQyllx929RW1tu+uoeP102Qqu hrtL48pKG9pK7VcjZVu5NyNLKhS3VlhpL8/o7fYCfCgSMm3nfCGuJMhHPA0Y8zXs7hsa 1iDVVBkHzzb7HPbSIrRBeDajGofBhS8Yx72CvkwprRVCWzVsHBsCmSw2Se+mscuxB6+f HxQRVJ9SsNn6rz8yYzLHFvDOEWi6g58WNV0XVqfl6EfOaEOAWF/HmHPiXtD7lALlz+5j 6pYSXrXA9DJ83Jm2NAvGAhdqU7JfJe+L237UBUyZv0JFSpw7h90gA3gsEUh7EPTL7DuE KijQ== X-Gm-Message-State: AOJu0Ywnt5BUJZzY+RC28ECDRw8FlZPIA2AWAT2YsMoTh5HBMua0RFBv BzaH/lzPcKc1rKqqlaqk7zxUUQ== X-Google-Smtp-Source: AGHT+IFSHJRoQx1Ctyhwv1uESkr0oLROtRLqXN8zd1BUs3GoaoZqPq2EXshY166uThtfcvsIXkDBgA== X-Received: by 2002:a2e:8019:0:b0:2bf:b142:bd13 with SMTP id j25-20020a2e8019000000b002bfb142bd13mr1075017ljg.4.1694769683203; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:22 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Andy Gross , linux-arm-msm@vger.kernel.org Subject: [PATCH v2 08/17] pmdomain: qcom: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:54 +0200 Message-Id: <20230915092003.658361-9-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022125_664789_31538B27 X-CRM114-Status: GOOD ( 19.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Bjorn Andersson Cc: Konrad Dybcio Cc: Andy Gross Cc: Acked-by: Konrad Dybcio Reviewed-by: Bjorn Andersson Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/qcom/Kconfig | 41 +++++++++++++++++++++++++++++++++++ drivers/soc/qcom/Kconfig | 37 ------------------------------- 3 files changed, 42 insertions(+), 37 deletions(-) create mode 100644 drivers/pmdomain/qcom/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index b1d9dc7d71e3..c91fdd40163a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -7,5 +7,6 @@ source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" +source "drivers/pmdomain/qcom/Kconfig" endmenu diff --git a/drivers/pmdomain/qcom/Kconfig b/drivers/pmdomain/qcom/Kconfig new file mode 100644 index 000000000000..3d3948eabef0 --- /dev/null +++ b/drivers/pmdomain/qcom/Kconfig @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Qualcomm PM Domains" + +config QCOM_CPR + tristate "QCOM Core Power Reduction (CPR) support" + depends on ARCH_QCOM && HAS_IOMEM + select PM_OPP + select REGMAP + help + Say Y here to enable support for the CPR hardware found on Qualcomm + SoCs like QCS404. + + This driver populates CPU OPPs tables and makes adjustments to the + tables based on feedback from the CPR hardware. If you want to do + CPUfrequency scaling say Y here. + + To compile this driver as a module, choose M here: the module will + be called qcom-cpr + +config QCOM_RPMHPD + tristate "Qualcomm RPMh Power domain driver" + depends on QCOM_RPMH && QCOM_COMMAND_DB + help + QCOM RPMh Power domain driver to support power-domains with + performance states. The driver communicates a performance state + value to RPMh which then translates it into corresponding voltage + for the voltage rail. + +config QCOM_RPMPD + tristate "Qualcomm RPM Power domain driver" + depends on PM && OF + depends on QCOM_SMD_RPM + select PM_GENERIC_DOMAINS + select PM_GENERIC_DOMAINS_OF + help + QCOM RPM Power domain driver to support power-domains with + performance states. The driver communicates a performance state + value to RPM which then translates it into corresponding voltage + for the voltage rail. + +endmenu diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 715348869d04..b3634e10f6f5 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -26,22 +26,6 @@ config QCOM_COMMAND_DB resource on a RPM-hardened platform must use this database to get SoC specific identifier and information for the shared resources. -config QCOM_CPR - tristate "QCOM Core Power Reduction (CPR) support" - depends on ARCH_QCOM && HAS_IOMEM - select PM_OPP - select REGMAP - help - Say Y here to enable support for the CPR hardware found on Qualcomm - SoCs like QCS404. - - This driver populates CPU OPPs tables and makes adjustments to the - tables based on feedback from the CPR hardware. If you want to do - CPUfrequency scaling say Y here. - - To compile this driver as a module, choose M here: the module will - be called qcom-cpr - config QCOM_GENI_SE tristate "QCOM GENI Serial Engine Driver" depends on ARCH_QCOM || COMPILE_TEST @@ -157,27 +141,6 @@ config QCOM_RPMH of hardware components aggregate requests for these resources and help apply the aggregated state on the resource. -config QCOM_RPMHPD - tristate "Qualcomm RPMh Power domain driver" - depends on QCOM_RPMH && QCOM_COMMAND_DB - help - QCOM RPMh Power domain driver to support power-domains with - performance states. The driver communicates a performance state - value to RPMh which then translates it into corresponding voltage - for the voltage rail. - -config QCOM_RPMPD - tristate "Qualcomm RPM Power domain driver" - depends on PM && OF - depends on QCOM_SMD_RPM - select PM_GENERIC_DOMAINS - select PM_GENERIC_DOMAINS_OF - help - QCOM RPM Power domain driver to support power-domains with - performance states. The driver communicates a performance state - value to RPM which then translates it into corresponding voltage - for the voltage rail. - config QCOM_SMEM tristate "Qualcomm Shared Memory Manager (SMEM)" depends on ARCH_QCOM || COMPILE_TEST From patchwork Fri Sep 15 09:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386685 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5E44EE6452 for ; Fri, 15 Sep 2023 09:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rN0CLZJzQ6BD9W2mvn+n7KFv1l1txIwBW40/qFPl2Ag=; b=BwZLoPAgYz+SRC CAeCzPBSQtWmj8DFRxCk0V0wYpDIVZZjmNyD2Z2aKD1HebdbTvwAeNDEg+K2sqZhZ6woTIkqk84Ba Z15yHxg0NIbEqaI8QMpGUPO3z7T6wStEGHQQJv2KPalSdVjzLGhXf+AzLLEU2vi37XAie6pxbv2bN QioT+IB+lT05FEWWPWNQS0WoMYKgGv6xAZuiIYcPiipruS3u4QXjVBDu7YOuZBGJp97+yFTUJvsy3 DVyyaRd6LdTU26tl99i6OF1RUuwzB2Np0AkA7/IE/RgKF+EzXqCRUaP2TieUDTIalp4mSNA/aSo+q YE7tOiaWURt/VCOHXfSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh512-00AFt5-00; Fri, 15 Sep 2023 09:21:32 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50v-00AFlq-1i for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:27 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b962535808so30852011fa.0 for ; Fri, 15 Sep 2023 02:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769684; x=1695374484; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RlllPeCqZBCeZ/HSi6m8sJuTceIVvHBkX9Te06oKtDw=; b=Q0eUCXydTYofvpLPiesTYO+Yc+FqKsocRNzwJ/EWxD9RkgOmEKVtVEnWPfjQHQ3ewg wiW83c496sbfGhfQAaNFyLcn4CUZOTApBX1inOSf8/QjINQec8CPLOUH+a3VVKrniYSn Lh0oscyj+ThNem3EpRY+HiEmtGz0n8t0tA2c/ZjE2YT98NAVJ+dpkxHqjjaPiBgOiYy0 YsvYFL7x0VwmfaZoZhF/bpbb0D4bmI+2Bmb9ee6DksUzupo26F8KcxmIwPFa4X5yMqOd /isH4kKIv7Leawy9zJvNKM42+gvx2NNJYdxxuKb/twRbwdFYlvDKm+oCeD0ZFjIq+9jH Li7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769684; x=1695374484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RlllPeCqZBCeZ/HSi6m8sJuTceIVvHBkX9Te06oKtDw=; b=AF8bfSSx6mNkxUu60BXf1KYLyIzhq7smUj6Qcwm3KuIvka3usHl9dBcDBv24NhsVRE KqMevTKBYjvms4EdZ1Z+utPUwh//vsOdMEYJDj+cSGV2iCNlQh7FAfUMvAaOE1Dd8FZS theogGjB8PBOOHm/1VwAGPQCT5CUlUGmy/PJ5MkjraZ2SSGkDO4B0CGwtDdIuvGWJC7j z5JOcjr3VZvtXNEaPlMdoRB4K8OojpIKpGFEf+j4ImAbl3qY0a9bQk2YT0mDNl3W1MsF p03543wm4Gd5j0dFlQUz3oclktI6BDKENUB1ub03QGryXkru21BLYSi6qguD5mdmPwf3 hhKQ== X-Gm-Message-State: AOJu0YyqzfuAKQmkKBNalbk4eSbQKOOyEidm8x426ulycPP+ld8hGXke huQSQ2ArHuh8sPNTLiTi79nuMQmltAsstFd7VFBU0w== X-Google-Smtp-Source: AGHT+IFJOzBhngeSqkEhAWTE2XBVBalsWjDoXj+N6Sl+ZI+MtDDE8yKWXfVhjl23K2P9yiLEg9+MBQ== X-Received: by 2002:a2e:8784:0:b0:2bc:d993:bdaa with SMTP id n4-20020a2e8784000000b002bcd993bdaamr1084334lji.18.1694769684153; Fri, 15 Sep 2023 02:21:24 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:23 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 09/17] pmdomain: renesas: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:55 +0200 Message-Id: <20230915092003.658361-10-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022125_594712_D0CC2765 X-CRM114-Status: GOOD ( 13.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Geert Uytterhoeven Cc: Magnus Damm Cc: Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/renesas/Kconfig | 109 +++++++++++++++++++++++++++++++ drivers/soc/renesas/Kconfig | 105 ----------------------------- 3 files changed, 110 insertions(+), 105 deletions(-) create mode 100644 drivers/pmdomain/renesas/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index c91fdd40163a..0a75a17f2f3a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -8,5 +8,6 @@ source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" +source "drivers/pmdomain/renesas/Kconfig" endmenu diff --git a/drivers/pmdomain/renesas/Kconfig b/drivers/pmdomain/renesas/Kconfig new file mode 100644 index 000000000000..80bf2cf8b60e --- /dev/null +++ b/drivers/pmdomain/renesas/Kconfig @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: GPL-2.0 +if SOC_RENESAS + +config SYSC_RCAR + bool "System Controller support for R-Car" if COMPILE_TEST + +config SYSC_RCAR_GEN4 + bool "System Controller support for R-Car Gen4" if COMPILE_TEST + +config SYSC_R8A77995 + bool "System Controller support for R-Car D3" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7794 + bool "System Controller support for R-Car E2" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77990 + bool "System Controller support for R-Car E3" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7779 + bool "System Controller support for R-Car H1" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7790 + bool "System Controller support for R-Car H2" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7795 + bool "System Controller support for R-Car H3" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7791 + bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77965 + bool "System Controller support for R-Car M3-N" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77960 + bool "System Controller support for R-Car M3-W" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77961 + bool "System Controller support for R-Car M3-W+" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A779F0 + bool "System Controller support for R-Car S4-8" if COMPILE_TEST + select SYSC_RCAR_GEN4 + +config SYSC_R8A7792 + bool "System Controller support for R-Car V2H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77980 + bool "System Controller support for R-Car V3H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A77970 + bool "System Controller support for R-Car V3M" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A779A0 + bool "System Controller support for R-Car V3U" if COMPILE_TEST + select SYSC_RCAR_GEN4 + +config SYSC_R8A779G0 + bool "System Controller support for R-Car V4H" if COMPILE_TEST + select SYSC_RCAR_GEN4 + +config SYSC_RMOBILE + bool "System Controller support for R-Mobile" if COMPILE_TEST + +config SYSC_R8A77470 + bool "System Controller support for RZ/G1C" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7745 + bool "System Controller support for RZ/G1E" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7742 + bool "System Controller support for RZ/G1H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A7743 + bool "System Controller support for RZ/G1M" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774C0 + bool "System Controller support for RZ/G2E" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774E1 + bool "System Controller support for RZ/G2H" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774A1 + bool "System Controller support for RZ/G2M" if COMPILE_TEST + select SYSC_RCAR + +config SYSC_R8A774B1 + bool "System Controller support for RZ/G2N" if COMPILE_TEST + select SYSC_RCAR + +endif diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig index 5a75ab64d1ed..650f4dd96dec 100644 --- a/drivers/soc/renesas/Kconfig +++ b/drivers/soc/renesas/Kconfig @@ -350,109 +350,4 @@ config PWC_RZV2M config RST_RCAR bool "Reset Controller support for R-Car" if COMPILE_TEST -config SYSC_RCAR - bool "System Controller support for R-Car" if COMPILE_TEST - -config SYSC_RCAR_GEN4 - bool "System Controller support for R-Car Gen4" if COMPILE_TEST - -config SYSC_R8A77995 - bool "System Controller support for R-Car D3" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7794 - bool "System Controller support for R-Car E2" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77990 - bool "System Controller support for R-Car E3" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7779 - bool "System Controller support for R-Car H1" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7790 - bool "System Controller support for R-Car H2" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7795 - bool "System Controller support for R-Car H3" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7791 - bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77965 - bool "System Controller support for R-Car M3-N" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77960 - bool "System Controller support for R-Car M3-W" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77961 - bool "System Controller support for R-Car M3-W+" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A779F0 - bool "System Controller support for R-Car S4-8" if COMPILE_TEST - select SYSC_RCAR_GEN4 - -config SYSC_R8A7792 - bool "System Controller support for R-Car V2H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77980 - bool "System Controller support for R-Car V3H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A77970 - bool "System Controller support for R-Car V3M" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A779A0 - bool "System Controller support for R-Car V3U" if COMPILE_TEST - select SYSC_RCAR_GEN4 - -config SYSC_R8A779G0 - bool "System Controller support for R-Car V4H" if COMPILE_TEST - select SYSC_RCAR_GEN4 - -config SYSC_RMOBILE - bool "System Controller support for R-Mobile" if COMPILE_TEST - -config SYSC_R8A77470 - bool "System Controller support for RZ/G1C" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7745 - bool "System Controller support for RZ/G1E" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7742 - bool "System Controller support for RZ/G1H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A7743 - bool "System Controller support for RZ/G1M" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774C0 - bool "System Controller support for RZ/G2E" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774E1 - bool "System Controller support for RZ/G2H" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774A1 - bool "System Controller support for RZ/G2M" if COMPILE_TEST - select SYSC_RCAR - -config SYSC_R8A774B1 - bool "System Controller support for RZ/G2N" if COMPILE_TEST - select SYSC_RCAR - endif # SOC_RENESAS From patchwork Fri Sep 15 09:19:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386688 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0ADB5EE6447 for ; Fri, 15 Sep 2023 09:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NdZtuU0F26LACco8em4++w+BZTgpHnKj0FR4bKMymRA=; b=CGghreUqugFLqi lta8NZjMpDjPdTpS+nTu8k+8FYKNiE9P9L027ZU9P7lTo8+oC4n1FTIU/x7G6TuXVA8Wd/bMSxOzd 7KNOg+/ZT6EKIRHl4uh3eWYGrBM6DOjxpV0kGIKwaxgKO4tRl83FabYUBEKijGrworYuMM+3Xw6qk Db04oEytgPh9gGo17WbHug8cXDC2LWV4nMKW0uak/VQxn9rOJR6BwYZX5IcK7fPeUyKm+cvrlj7r0 Wdhq8Qi49pZw+ROboYu6cYljL5iE28wHLmz8zy5p3pFOOrZkXT2iFYZ2Pmk8E8366KuPgK369itar jZ24K7eDhqDD5QcGD8pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh513-00AFum-21; Fri, 15 Sep 2023 09:21:33 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50x-00AFmM-1M for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:29 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bcd7a207f7so30217891fa.3 for ; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769685; x=1695374485; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; b=yFyosw9ktslrlcieCCiLnuDKKueUc6czEG1+LXCBUH8TfnUfVp98x4Oi7HOqUrw2Af wRdHZFD48+v2Z9O+lNVBEi2aeiROGBat8K+cpOD17KBFelI9Vh4wxWrBIP/Q+2UzS6Sz frd/EdbxOrL+kY1b3GxbCuzR0Xj3WcJSasYJlYKn4Rwp3RQb8BAzHAuLUjYC8uD+jsrC L88DXEysIWwWHGMGZNPUhbvGa4RDl0cxTgX7OPs+JEzAuxr7acqWpyLUK1rhmpOFT5Zj c+2hOEn72fzmyKmi63ycPIDRMaXYdWz42D0F7tPcDbqzWGIYZ5CJ7iZZqnuB/vtRaYBx X0zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769685; x=1695374485; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; b=Z26vLuIYmxzCJEPeiEyMbUTKaAnhwwozA01kd86pFk+vPBXcqiikGoJPwNstxyzwLa /LAPpRvQO+f1ijWAKtEUR1WEK4TbsX7z0QE1Cw2b484ll0ijRhsurtBr531eyzNMWinx EHQDMXS4dlH+V7aIYoaI1Xg2gob4Oyptmac2EVVsl51t0z5QpVOwTCFVX/Tx43ycHwBn bUtIOgxaEo2J/l2EpAGx6kROUHMymvkaqFN598eM4weXDJXjTzKN7yl07NopgOH8cWn+ eE7SpVtJ8Yz+8dfovgfe48a+pabz+pfh7u7bHh2CHuARUAcKZE5u2pSOSRyA0Htv836E JLjg== X-Gm-Message-State: AOJu0YzezFDanXtVTvuXI+bEiLCHCJgePUQO71bLPe3bfVKJeeomiyLV dql7J0+yZxFFn7JgTLnSt+Wjnw== X-Google-Smtp-Source: AGHT+IGwwqHwyBASzYObjimxH00Ydcl+lAjOoi91ePvVUL0yYYiPtovN11NZd4EAB/QxxEpm7+DHfg== X-Received: by 2002:a2e:8055:0:b0:2bc:39f5:ecb4 with SMTP id p21-20020a2e8055000000b002bc39f5ecb4mr1074596ljg.25.1694769685101; Fri, 15 Sep 2023 02:21:25 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:24 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: [PATCH v2 10/17] pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:56 +0200 Message-Id: <20230915092003.658361-11-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022127_484597_2651E037 X-CRM114-Status: GOOD ( 17.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Heiko Stuebner Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/rockchip/Kconfig | 16 ++++++++++++++++ drivers/soc/rockchip/Kconfig | 12 ------------ 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 drivers/pmdomain/rockchip/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 0a75a17f2f3a..8afe69251dd2 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -9,5 +9,6 @@ source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" +source "drivers/pmdomain/rockchip/Kconfig" endmenu diff --git a/drivers/pmdomain/rockchip/Kconfig b/drivers/pmdomain/rockchip/Kconfig new file mode 100644 index 000000000000..b0d70f1a8439 --- /dev/null +++ b/drivers/pmdomain/rockchip/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +if ARCH_ROCKCHIP || COMPILE_TEST + +config ROCKCHIP_PM_DOMAINS + bool "Rockchip generic power domain" + depends on PM + select PM_GENERIC_DOMAINS + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, a power + management unit is designed or saving power when RK3288 in low power + mode. The RK3288 PMU is dedicated for managing the power of the whole chip. + + If unsure, say N. + +endif diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index aff2f7e95237..785f60c6f3ad 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -22,18 +22,6 @@ config ROCKCHIP_IODOMAIN necessary for the io domain setting of the SoC to match the voltage supplied by the regulators. -config ROCKCHIP_PM_DOMAINS - bool "Rockchip generic power domain" - depends on PM - select PM_GENERIC_DOMAINS - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, a power - management unit is designed or saving power when RK3288 in low power - mode. The RK3288 PMU is dedicated for managing the power of the whole chip. - - If unsure, say N. - config ROCKCHIP_DTPM tristate "Rockchip DTPM hierarchy" depends on DTPM && m From patchwork Fri Sep 15 09:19:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 584BCEE644D for ; Fri, 15 Sep 2023 09:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b4JijozkZFGoGgN17y6n7EDHjKmEdDeXwpqMFUWdlho=; b=wHy45HI0rHihoM nKD1cWXCRUPHXWst6nGJTDHoot98EadYE2Ie7WBugcc5b7wa7mmKyRCHKN+5HtJA0mjZcLSv5r9yN yMf8L2gASoW41PzOvKX0PtN0c+1T/H9AXXvXUyYp3nwtxs0nWSDzpg+y+r6GZileW0DAaSwGPbPv3 3tAxvfC6WSNDWw+cRYEEs5A7v7n2KL0TWI5AScFPluVfn0v/4Dh7ik/7d+32Wj7NlozJ44pTrBO7I vzNaADOqq1OQCS4mtBo6RNBew5l+EDDFKTMJT7VJBAbuFaB1F4J/JFeAKZimBx94K+x4qJkyPLy7B xX23j3OJjN4XA8wrNX5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh514-00AFw7-25; Fri, 15 Sep 2023 09:21:34 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50x-00AFnW-1t for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:29 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2bcb50e194dso30501581fa.3 for ; Fri, 15 Sep 2023 02:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769686; x=1695374486; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lxVrkiCAkoIq59ofHyv2OHqXSOCmWARXvwgAt/o802g=; b=hwILSApoW8rQ1pxZWmB5CEG5ebDvQtRxu1IqC/7thEWkTy9Igx4kqY5K8jfSBExWRF rJ/z5wzQvetIJ3J9VGdPjmt3LYZpnKxnAjch4vOb/B5Bax7bnvTpn3DMK6hmlf5PkDl+ AK0Lo8Bm1kiIUjb7ReXKM4CV48xdfmc/7CoyCSIynED1uqa6ykcD2mJswcUoQpEFBKoq PjRBU9gOxAvn2BaIygunur1D2aN+LcF2IvU3L0Ovy5k91jpDGp1Q17XbO3Z5cGXZCNho 0f9xQbaKfsNbB/P10np3rny+ixj1MbOcxHZMthAzH6t/WB8SpsI6b9vk7CWdQ/INjirg EsTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769686; x=1695374486; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lxVrkiCAkoIq59ofHyv2OHqXSOCmWARXvwgAt/o802g=; b=No88wgxnZkXcQN8Uev4bkeYRDpmy7PtGvx21KSMJgEy7G+pl+tXb4q8jdE7ZeMkk/J gSRV05Si8hsK4mPOsbUF1ig5glYpd8DsjiTSCRpwBJIkLjsbCUiWs1dq620IwwyxZLf2 5Dk928UYS/kdqKLlGydT6davJIzvdCHsuQxnyeToGTmG3IjaTgKO21jcOne2HMKE2uF+ 5HN4xR5PEApXV9V0vCK/xRlXvYB+x4QFvQP8BiQclr06O7c9kdCv/wrgSfWR6sBR+tTd c6cVvwjZ5YIciNa06csr3KGvorkGrgxzNHxAsEoOlXbwwsjy55nszU0VVKbdySN4O99/ azuA== X-Gm-Message-State: AOJu0YwLolEzQ50H76eyVoUU8Hl48rYiKq+OUZs0cvRE1zk7kjO7sGc8 SjviES3guifko8csuFKkIXcfog== X-Google-Smtp-Source: AGHT+IELGUxnnw8NcjpWERdHd/HFBh9WJ0OdjTLN86Kk7Wo+a3UlN/uFXOriKAm42ZCQmu0toMURCQ== X-Received: by 2002:a05:651c:1033:b0:2bc:d7d6:258f with SMTP id w19-20020a05651c103300b002bcd7d6258fmr907223ljm.35.1694769686215; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:25 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Alim Akhtar , linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 11/17] pmdomain: samsung: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:57 +0200 Message-Id: <20230915092003.658361-12-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022127_634764_72F64AD0 X-CRM114-Status: GOOD ( 15.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Krzysztof Kozlowski Cc: Alim Akhtar Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/samsung/Kconfig | 8 ++++++++ drivers/soc/samsung/Kconfig | 4 ---- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 drivers/pmdomain/samsung/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 8afe69251dd2..4a411e0985c3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -10,5 +10,6 @@ source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" source "drivers/pmdomain/rockchip/Kconfig" +source "drivers/pmdomain/samsung/Kconfig" endmenu diff --git a/drivers/pmdomain/samsung/Kconfig b/drivers/pmdomain/samsung/Kconfig new file mode 100644 index 000000000000..0debfe36b00a --- /dev/null +++ b/drivers/pmdomain/samsung/Kconfig @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0 +if SOC_SAMSUNG + +config EXYNOS_PM_DOMAINS + bool "Exynos PM domains" if COMPILE_TEST + depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST + +endif diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig index 7a8f291e7704..27ec99af77e3 100644 --- a/drivers/soc/samsung/Kconfig +++ b/drivers/soc/samsung/Kconfig @@ -48,10 +48,6 @@ config EXYNOS_PMU_ARM_DRIVERS bool "Exynos PMU ARMv7-specific driver extensions" if COMPILE_TEST depends on EXYNOS_PMU -config EXYNOS_PM_DOMAINS - bool "Exynos PM domains" if COMPILE_TEST - depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST - config SAMSUNG_PM_CHECK bool "S3C2410 PM Suspend Memory CRC" depends on PM && (ARCH_S3C64XX || ARCH_S5PV210) From patchwork Fri Sep 15 09:19:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E297EE6447 for ; Fri, 15 Sep 2023 09:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=awo7m/5oaxFHIiTvaykFFqUExvMyc9dcEciwyCuk6cU=; b=uF2reLE70qQC8+ U7UDMAoRPo+N/kx8u3u2wbcUnbopiblNAOw+8b4Ft+T3ZZvaRWzjvL2pnMDgnsbQD38yxIbU1JEVo Tg8pjwK4YmRLdnorpNPCHTJdY2gMEak26j+4rx9v9bPofo0Bqmf7FP5czpnWjqUC4hVFTJZHjxXU4 cbB68D4H7RQdwyL52DuEBJAr2sLS59q0m93mduzc0tu/gnVvSYKe5peLxnJJR44S1xr6gkLiCtFhU 2J3tJws40b8iWRtAGFOrk/5KpRV/+i88R36vVW2wAVPPmCEWIauBhckxjdHmEslZ9ZRGfXI056Khi /8HQJvIJygzd028+l1UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh515-00AFxJ-2U; Fri, 15 Sep 2023 09:21:35 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50y-00AFoS-24 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:29 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b9338e4695so29057571fa.2 for ; Fri, 15 Sep 2023 02:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769687; x=1695374487; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mpRw/Nyqv1IAu9jwP5IM347QJfNRDr51sp+Cv/OMBfc=; b=QjHdT0KNlvJ+BBpQxBLG90W+x1Bgw8J5/AODOxtBGc6kVv0BK7DZVQp87xCZjsocwQ wb+gaz8DS9G+3L23V8nvCVwt/dzaMTyPCSh+YgL1jiVGsTQDfIJL7bKDupx3qCN7cTM/ nmcG9iVxFS1t/RFLKZowf3o9YYE0VtLVruDJ1aM3/s4TGqbWqdx2UxmeYde5o/OcGgPU 6/Sw20/oyJFnv7yXfA+s5LnlnLPTexEyoJYd3JTCeJQBnmcapnAx7q2KTUWk6rQpoK3i l9kzc4bABzhn1DP3hkae6o81Gkq5qfHC9GQpTmJF4GGTZYBjReGzjOxRCkdiw8r7dS1/ FJkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769687; x=1695374487; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mpRw/Nyqv1IAu9jwP5IM347QJfNRDr51sp+Cv/OMBfc=; b=AuFBei8HvUo9xEw7j48VGxIjrfnlazGyJc3WZl2w2h+oWXRBOcRnFOC4Tb+YYThFar P1GpHaYWdmVz5n+qRsy0shzHI+B421+J4AoyoA+Q9bGOz0Kx5J3X31Tgfwr6ekgwTySp iCdDIIPOqsJaj+6EZ/8y2x2HiPqkaRXEkLTPxDQPAG2ayD3u24o+gcZzyCkPaemfWoSn L+yLpBe0p2CraCsb9f40QEeiIXrjPSLx8Emj15X1b/woALYv8Gpgnr+mGTOwZ4F76P0y qj6+FumXsmbMcfyyq5V23m1UTjofPw10jyki/W0kYbo5OH+rApT6QJ7WTMAp5t/n/uh/ 7AiA== X-Gm-Message-State: AOJu0YzTPjlSukCbah/IBQt9pToG7X5/wCDrBurGISwibm7m8wRe5b7p xPbj7cLrZsOktZLwJw2GsvTeMQ== X-Google-Smtp-Source: AGHT+IFfEfbuyQGDwmyo+FnzogD3H8gVtamynxzaP2uvT5VpEjahjrgz4DFCThndBuMm73k/8MK1VQ== X-Received: by 2002:a2e:92d0:0:b0:2bf:645b:6afb with SMTP id k16-20020a2e92d0000000b002bf645b6afbmr1015294ljh.21.1694769687139; Fri, 15 Sep 2023 02:21:27 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:26 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH v2 12/17] pmdomain: st: Add a Kconfig option for the ux500 power domain Date: Fri, 15 Sep 2023 11:19:58 +0200 Message-Id: <20230915092003.658361-13-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022128_678043_21FA7CB8 X-CRM114-Status: GOOD ( 16.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We shouldn't really use the CONFIG_ARCH_U8500 option directly, but rather have our own dedicated Kconfig option, so let's add that. Cc: Linus Walleij Reviewed-by: Linus Walleij Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/st/Kconfig | 5 +++++ drivers/pmdomain/st/Makefile | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 drivers/pmdomain/st/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 4a411e0985c3..08f8a3aa9805 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -11,5 +11,6 @@ source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" source "drivers/pmdomain/rockchip/Kconfig" source "drivers/pmdomain/samsung/Kconfig" +source "drivers/pmdomain/st/Kconfig" endmenu diff --git a/drivers/pmdomain/st/Kconfig b/drivers/pmdomain/st/Kconfig new file mode 100644 index 000000000000..a77a70211f61 --- /dev/null +++ b/drivers/pmdomain/st/Kconfig @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +config UX500_PM_DOMAIN + bool "ST-Ericsson ux500 Power Domain" + depends on ARCH_U8500 || COMPILE_TEST + default ARCH_U8500 diff --git a/drivers/pmdomain/st/Makefile b/drivers/pmdomain/st/Makefile index 8fa5f9855460..6d8b617eb834 100644 --- a/drivers/pmdomain/st/Makefile +++ b/drivers/pmdomain/st/Makefile @@ -1,2 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only -obj-$(CONFIG_ARCH_U8500) += ste-ux500-pm-domain.o +obj-$(CONFIG_UX500_PM_DOMAIN) += ste-ux500-pm-domain.o From patchwork Fri Sep 15 09:19:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386689 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B6EAEE644C for ; Fri, 15 Sep 2023 09:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2wcbgKItkkrMy+goWG+EJoFXAqq+NooDQKln1aQ5R0Y=; b=kk4R1yN3NkANI/ jguMJK7FkXTc4tKOBimHL2Q7PS7xmWz2dcgTYkj+s+66o+MY8Ds+If/2wS+dRrOruCFxK/mxJlC4l iueBUeCl1WIT2+blgCnyb9niLoHYEpmSVc5L9bhlyiM3Jy+zQq1E8xiCOkH7o4mNoHfcTR8veAXXQ jHxu1N6zWAKxtXcTzkaBTyoqoEdWMq7yZtgPwS2eXVBX6fjOyJ2X9EvrcZf1qUw2lc7GZhwYHYdw7 CoEP3vBEqosKHxZW6d1s3oaPPPsKmCjV3adgLUYetRbGSYMehSgtdVpo+lTSMOs9YM+DTDQ8HDtUQ bBbBnaZQLXl99aWu3DhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh519-00AG1L-0J; Fri, 15 Sep 2023 09:21:39 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50z-00AFpS-1W for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:31 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so30566711fa.2 for ; Fri, 15 Sep 2023 02:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769688; x=1695374488; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dHEtnEQv2A2ReqGymUlGz3D//oT7Ku2G1Pe4mdOxqdo=; b=mNhN+ykhdmpOzEHhZcgG1DIRxpv3d3u8VlC65e1Yvt9/cS1NlsCIhBhWVAbHiQblB/ ixjnrPl7WiSNN7m2gz/l/qV3+CZr87isZ1CWHLEx4qwJcZdXmj3zZ9D5DPsgD7e+Z1qK MCwqZG1TFpfaPUl04FAmKCKrF+p7m2JJTxYPY6nt5Aq+pluSUfyDI16+TVFVE5cd72ap DqrilEZjXezj2yI7/8I1SmAUnLB9o90zX5J2bAGkTPXjZsM5lSUP4OOljEUFDospDcUS HaPd6Vg5o9wsIRIrDHp0vRkd64TrECDJIHE+1igzTtYbUKywCeL3izMjrLw0E9ffq3Jj LSgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769688; x=1695374488; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dHEtnEQv2A2ReqGymUlGz3D//oT7Ku2G1Pe4mdOxqdo=; b=SOGBaXdQ92n3H3A3rG8cjYSxb3Ocvsn85dA8LNJ24e6lW+wbZbO5UoG/5ozLVi6Y9s 7Yc2EkscWFKmw+D2X495SsehBJPUgriiRb1TeOLw5wOfAHKTrZct8EJfxzRVodxit1vv pz5omVw/qU31K3Mh5wmH/6PsQKWokLE1RSUOZHswmKn1dre3J6EzC5lYDUwLQvF9Q8Em HDZeYpyeTZHVRnoIFIHqXAF903gnR+KTSWzwORN1l8NImF/l0blXaiDHaUe6ngvmeaM8 8I6G1yR9P8oFmYdXa+jB+22eQ3AiH4ATmRmIs/gHTukAXYWzYo0DAZimDpgUloc37+qp W5OA== X-Gm-Message-State: AOJu0YyAfPWb836+0q1U0OvqpeGTEC8/tkdMPve1gnZFOvSyryXIa0ao oG+hU1LJtTxoNoKGLAeUQqt89A== X-Google-Smtp-Source: AGHT+IFK61Er9cAcjOdJ5f7iHl2FE/MjGgnLPUym9+O2jTbIqzOzp8XbomK6ZbZehZ/PX8+bbXKy5w== X-Received: by 2002:a2e:3e0e:0:b0:2b6:bc30:7254 with SMTP id l14-20020a2e3e0e000000b002b6bc307254mr981025lja.13.1694769688005; Fri, 15 Sep 2023 02:21:28 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:27 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Walker Chen , Conor Dooley Subject: [PATCH v2 13/17] pmdomain: starfive: Move Kconfig file to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:59 +0200 Message-Id: <20230915092003.658361-14-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022129_512301_B585237E X-CRM114-Status: GOOD ( 12.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Walker Chen Cc: Conor Dooley Acked-by: Conor Dooley Signed-off-by: Ulf Hansson Acked-by: Conor Dooley --- MAINTAINERS | 3 +-- drivers/pmdomain/Kconfig | 1 + drivers/{soc => pmdomain}/starfive/Kconfig | 0 drivers/soc/Kconfig | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) rename drivers/{soc => pmdomain}/starfive/Kconfig (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 6b491ebcf790..40744fefed3d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20515,7 +20515,7 @@ M: Walker Chen M: Changhuang Liang S: Supported F: Documentation/devicetree/bindings/power/starfive* -F: drivers/pmdomain/starfive/jh71xx-pmu.c +F: drivers/pmdomain/starfive/ F: include/dt-bindings/power/starfive,jh7110-pmu.h STARFIVE SOC DRIVERS @@ -20523,7 +20523,6 @@ M: Conor Dooley S: Maintained T: git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ F: Documentation/devicetree/bindings/soc/starfive/ -F: drivers/soc/starfive/ STARFIVE TRNG DRIVER M: Jia Jie Ho diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 08f8a3aa9805..2286c36076db 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -12,5 +12,6 @@ source "drivers/pmdomain/renesas/Kconfig" source "drivers/pmdomain/rockchip/Kconfig" source "drivers/pmdomain/samsung/Kconfig" source "drivers/pmdomain/st/Kconfig" +source "drivers/pmdomain/starfive/Kconfig" endmenu diff --git a/drivers/soc/starfive/Kconfig b/drivers/pmdomain/starfive/Kconfig similarity index 100% rename from drivers/soc/starfive/Kconfig rename to drivers/pmdomain/starfive/Kconfig diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig index 8b46da40f107..10a9ff84ff41 100644 --- a/drivers/soc/Kconfig +++ b/drivers/soc/Kconfig @@ -23,7 +23,6 @@ source "drivers/soc/renesas/Kconfig" source "drivers/soc/rockchip/Kconfig" source "drivers/soc/samsung/Kconfig" source "drivers/soc/sifive/Kconfig" -source "drivers/soc/starfive/Kconfig" source "drivers/soc/sunxi/Kconfig" source "drivers/soc/tegra/Kconfig" source "drivers/soc/ti/Kconfig" From patchwork Fri Sep 15 09:20:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386690 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E82DEE644D for ; Fri, 15 Sep 2023 09:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qJYLkGhGaMjKgRYE0PCRxZtXzpbuQwZJ0zVLkJdAmLw=; b=0FY1epp4u2d7LY /hWZR5hWBQ6T7ADly/6oWlIpYkWh7sZdicCQAED//Yr0WIOZs4g4Wix6Qa5AyzlkLsB/x1sTvTpRh PHlz/j+7WUkj88F5ypq0c8Jgo3ykvbAXIZfF44hJpwF04AZamIMKW5leboDcZbUrnL2QkuT+bOw3Q KNnBp5eYjM07mc6ovtJ8z9zBOeqrHGjCLHmw8ZaopeBgoTZC/aPF//Xf7IccXKt8OPIJZdIsVAjae viVm4EgguafD0BSGXlzoWyQwFFmrgOIFGSPfDnkVMc2aDUoMh0m8ha6wVTF9eGLKVE+QUs3RW77bl 6JwcWTfc0SkYEH1O1REQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh519-00AG2S-3A; Fri, 15 Sep 2023 09:21:39 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh510-00AFqU-1B for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:31 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b962c226ceso30025591fa.3 for ; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769689; x=1695374489; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; b=qeuUln2ISk5b1IcsTRwvMUmhH4Xv63KF5+oU/eJEC4qlctmJO+E5N1XoZV49d0ws0f DkzCQjQ/uCIQ5gFPwlDsnxGo5AEUc0mR7npmQHI5LU8DRDss/uEn9/7sdgWtUq1rjA7u txYJAl0ewIUAsepHGPFGlhP1jENCgC5JX8LJlTTuyUOtPuT1xoCj6smz2xes/mZC0dXl fyoB/hnOzQuVrYb5ELNPxSG0ZN5tGRWLcdBRA3P5LHJA2b14ztYNEkp6hKdudLGwxF+q Fe+YD0sSMH9QxtLXlkciM0zg03iCAUfeFQTA3cCeoTrhT0LykEsFzRobdqAGoTjQ24Ra d9EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769689; x=1695374489; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; b=m9LFCtdOAMxsGePSvws0DLx2fdwLFKI/UQ+dLaNw4FtiGmnN62BafEh2+z9TdALidX wECvmkIXUa2CiMfpxi74N6/5udzNKJ0gImVg+gc6Bj0dCCiJs7TpZB7jWiIWSj+F3xOx EICK9JDzFZwoXRFxOItYJR5u5JdRYA0oXwKfPEQDQVaGafrkGcr/iK6wrh7XjE0QNEzr iSUJwtpRNFFQLfyTpw22H2yT+DJx9d0Bj5baisLATx5my8VqEqWmgs0FUPMR98xU/ibP NhUBGwmMj9BOoeaAiO55q0dMukCP8FJygRynEPRDbNZD6An9SjXLPPog4WOAUyhtr+9f HV3A== X-Gm-Message-State: AOJu0YwyBFs7WnXXBBwVVNNs2cB/OCob79YuR+p8Dlk1i+eRwSRxQ7UU E9EZiLHlrvGtGK53fUZ5b4NeeQ== X-Google-Smtp-Source: AGHT+IEVb+rybmAw/IHW2BTXH8tfpMjLEmySPO9nsUGKFLlub7WqeGnWblxKCQk1yld1rt/N2pe2jA== X-Received: by 2002:a2e:93c2:0:b0:2bc:da4a:4649 with SMTP id p2-20020a2e93c2000000b002bcda4a4649mr1078194ljh.22.1694769689024; Fri, 15 Sep 2023 02:21:29 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:28 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-sunxi@lists.linux.dev Subject: [PATCH v2 14/17] pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:00 +0200 Message-Id: <20230915092003.658361-15-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022130_402984_5B3B0F06 X-CRM114-Status: GOOD ( 16.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Chen-Yu Tsai Cc: Jernej Skrabec Cc: Samuel Holland Cc: Acked-by: Jernej Skrabec Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/sunxi/Kconfig | 10 ++++++++++ drivers/soc/sunxi/Kconfig | 9 --------- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 drivers/pmdomain/sunxi/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 2286c36076db..10c3bc2e2444 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -13,5 +13,6 @@ source "drivers/pmdomain/rockchip/Kconfig" source "drivers/pmdomain/samsung/Kconfig" source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" +source "drivers/pmdomain/sunxi/Kconfig" endmenu diff --git a/drivers/pmdomain/sunxi/Kconfig b/drivers/pmdomain/sunxi/Kconfig new file mode 100644 index 000000000000..17781bf8d86d --- /dev/null +++ b/drivers/pmdomain/sunxi/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config SUN20I_PPU + bool "Allwinner D1 PPU power domain driver" + depends on ARCH_SUNXI || COMPILE_TEST + depends on PM + select PM_GENERIC_DOMAINS + help + Say y to enable the PPU power domain driver. This saves power + when certain peripherals, such as the video engine, are idle. diff --git a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig index c5070914fc6a..8aecbc9b1976 100644 --- a/drivers/soc/sunxi/Kconfig +++ b/drivers/soc/sunxi/Kconfig @@ -19,12 +19,3 @@ config SUNXI_SRAM Say y here to enable the SRAM controller support. This device is responsible on mapping the SRAM in the sunXi SoCs whether to the CPU/DMA, or to the devices. - -config SUN20I_PPU - bool "Allwinner D1 PPU power domain driver" - depends on ARCH_SUNXI || COMPILE_TEST - depends on PM - select PM_GENERIC_DOMAINS - help - Say y to enable the PPU power domain driver. This saves power - when certain peripherals, such as the video engine, are idle. From patchwork Fri Sep 15 09:20:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30E95EE644C for ; Fri, 15 Sep 2023 09:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n74DoXaM3n4BufERcsKIhwqzHHo7UFOXEIy5Ayhzq0w=; b=4JCBcDXr7LZExZ jiZBQEIRQHbdwQl8rqZZo7y1Rc5O4R9lUmfOU2S9y4r/gndDYUwk/JCIITJqI73w7EFjfvWsC3jes 8EdOr3qM3SNFK8g2LhscCYMoxoWoE/aHpywIKtgAMQn27SYZXsZLA5/LVAo9pTsHWNwD21sRRSqNg ubnVyPlY+pva2pPzUo/yv6fc0xSjdx0lIXzkASHDGWPmkCTteb04fOC6EdNCIQtMl2F4Ke4vv+m/K l8q0ftfvZXzQIPbezS3TzgEddbnhHMohdlw9xoP2Qo+Jl0OmpBXmdGwoaWwS8a6HifwBg1D3elbeu BpJVkqXcQt038UUyjy5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh51G-00AG7j-0Y; Fri, 15 Sep 2023 09:21:46 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh512-00AFsD-2d for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:34 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b703a0453fso31640781fa.3 for ; Fri, 15 Sep 2023 02:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769690; x=1695374490; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0gMxgrLH8hAqI78TYEwxUv2pVCfDSw58e/K0s6X8qpQ=; b=hGGqAB2WjD15D4sXb3Jxv7EPMkZ0BbZ/uFsb7Z+TKi63phGXKmgtjU2XayGuhMOUoR kCvpO4I0vZCQU/aHfbQjtgsQMr4Pw8KYLGNYbhsA1dBK3O3FlBIo/+5diIQAlLVYZx7V myg7hd81B8EzSrrbeDcYX5OSc/KXjBhpU7At5uqhBoAgIvcVViNHVbPZtmcHoigGiDrO VehpXd4UhcpthSiJgf7rLBLH8oOo4FcOYrLT2ftM+ObOQcDusa+jtey6O5WBw4YRC0XY lk3mwxUdahJebY+OPH0R1YVsK7ifmaG3/gsyGIV/JTc4oRKDjnVHg18PHMzMU+9ql+dw 4EbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769690; x=1695374490; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0gMxgrLH8hAqI78TYEwxUv2pVCfDSw58e/K0s6X8qpQ=; b=Zc5wmn1t5ATEdiPlZhT94lntluFWu6GC6AJoDtyz0a0nSE8BIVmtR7B885kH6KFi5S vadAIWIg6G2KjGKW0OYyi5sG7ZftrHoF1beDJ6D4DjwvcCDC7PtYCl7ymeftQQI1a27V V4KXD70n8TXAkDpYQvOZM399jBFzEb5Tyzl5t734iekCMESrEjc3phEA5iy8svV5Zd9W hezFDuW4K649ttPbiTzy4wxA+G774Q2BTf8dM1b5sFTUWFELjQqWnEbz606kNZM9ZwKG D3+KVxzhXt9FtHhE7NpGk/tAAKZdZM1TouF573SLmP856jDAaWzy0smOvpMucF5QEr7k EyRA== X-Gm-Message-State: AOJu0Yx+VhwKMq1O3gSefzIxkvJzaKb8UKmJ6EWyoDdl1q9UU+7jIApi ebZ9P5U2VFKZ6vSl4QcxGhke4g== X-Google-Smtp-Source: AGHT+IEW7ELR0BC0aaaD7PdqOlQ9YNfd9KQIzAAoLD8DzPpKbNrDvmiROuNK6D31n0onkDPudHUjUg== X-Received: by 2002:a2e:9409:0:b0:2bd:1bca:ebee with SMTP id i9-20020a2e9409000000b002bd1bcaebeemr874287ljh.19.1694769690056; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:29 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thierry Reding , Jonathan Hunter , Mikko Perttunen , linux-tegra@vger.kernel.org Subject: [PATCH v2 15/17] pmdomain: tegra: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:01 +0200 Message-Id: <20230915092003.658361-16-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022132_864944_A8C99AE6 X-CRM114-Status: GOOD ( 14.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Thierry Reding Cc: Jonathan Hunter Cc: Mikko Perttunen Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/tegra/Kconfig | 6 ++++++ drivers/soc/tegra/Kconfig | 5 ----- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 drivers/pmdomain/tegra/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 10c3bc2e2444..98e04589bef4 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -14,5 +14,6 @@ source "drivers/pmdomain/samsung/Kconfig" source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" +source "drivers/pmdomain/tegra/Kconfig" endmenu diff --git a/drivers/pmdomain/tegra/Kconfig b/drivers/pmdomain/tegra/Kconfig new file mode 100644 index 000000000000..13ade6d84696 --- /dev/null +++ b/drivers/pmdomain/tegra/Kconfig @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config SOC_TEGRA_POWERGATE_BPMP + def_bool y + depends on PM_GENERIC_DOMAINS + depends on TEGRA_BPMP diff --git a/drivers/soc/tegra/Kconfig b/drivers/soc/tegra/Kconfig index 6f3098822969..f16beeabaa92 100644 --- a/drivers/soc/tegra/Kconfig +++ b/drivers/soc/tegra/Kconfig @@ -152,11 +152,6 @@ config SOC_TEGRA_PMC select PM_GENERIC_DOMAINS select REGMAP -config SOC_TEGRA_POWERGATE_BPMP - def_bool y - depends on PM_GENERIC_DOMAINS - depends on TEGRA_BPMP - config SOC_TEGRA20_VOLTAGE_COUPLER bool "Voltage scaling support for Tegra20 SoCs" depends on ARCH_TEGRA_2x_SOC || COMPILE_TEST From patchwork Fri Sep 15 09:20:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68FAAEE644D for ; Fri, 15 Sep 2023 09:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YKuSWn7YVe10u3vIFkK8QFH1Gd1fBzTVJR27mhmW44E=; b=nqRF8Y8T1o51mr WUN+ZRokS+10PfJC/VLJv4hoIz/kHzzL5srrEIERfct1NB9kh/JGcb1iDkejRb95pqcBXBgG3KK54 O9UgH8bAEZxwH7Eikkb98awGP6FHorTCxKRApAoSTtbrSBETmTBlAKErZdtQ0VbjzsHfwd3YvxqFn 5kD0QBjrwqmKCIrq++zYdCVCwqJwIvnq+ooQ1rFR2wRhol/5ByAf6gX95xeSaSZmgddB2nQLECQEv hD/cjQZb0yOavyCS6+I5JlTkx4DLB2Jj3H77rsFU6b+f220US/fLzQcBTrIh8TgOq/OLpI8sAezYC HdjgkmMxCc33WOoRKOZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh51J-00AGAF-00; Fri, 15 Sep 2023 09:21:49 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh513-00AFtC-2Y for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:35 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-500760b296aso2341363e87.0 for ; Fri, 15 Sep 2023 02:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769691; x=1695374491; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rSDTY9PIBZaWnuB156Z6IV6vLXbcGWaKRrqSpGIqxY0=; b=a4wzFFuGnaX8pnRMwgJHQfX5Jb+dys8CvdDMGJY8hZnu00Oj5+XjC7Ir9l9n5kRauA RVm0WnFywY5sRj4lSSK92kjUq+0MW1qioBcyaFWwldXezmlkLxgw74P8nXrCgCqfuBof bADtNJlLxnrerhmPXWPeIpfU00uqid5jeFS88phsekk1WALim2DQv7npEdLP4UAi/3jH npxD1q8jIW/CuS9nu1CC+5ZcDXo8Elm3xDhTpUUH47ZrIzUoPToUdKfAige2ARjuishi vYuP30Ubhh1bHx2q/GmDUFVk7/8OyL6eC4B444UVBzwBmC76D5obLlDf6AQA+PwI99e1 KGbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769691; x=1695374491; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rSDTY9PIBZaWnuB156Z6IV6vLXbcGWaKRrqSpGIqxY0=; b=Avq9itn33hLkvkwGLot3lvlHzfQvX4S3YafK+qDT90Jx5ne7MnIG94sfaSjClJrTJX ViqetCGHAmPOuozxwPzT1g6MYvyL6EjRYhtqSwA4xMdqYjDQX3/wUZ38pq5pB8qnfcc5 9wV/KPnrPwf7lkiEaTKK2qev1VFJlWEGYbPXlahOyJnTAVR1pmhMZLcYQ2TNQuKitrNL 5aSx/7pDy2CVMKvXA2qpNDoqi72EULuWu5SxJPLW/qx5b4K+mMQIanCT+Zi/f4JlOraS t4iHcHZAgrNJRaHW8WxGAGPQMbY+9K09X5bcLQYr5gBL5b5UxlFCNoq1Z46HLo41KZjV T1Ww== X-Gm-Message-State: AOJu0YzFSSijNh+UrCje/IjZQkXEhZPm0p1N/pVcdxM3r+289/hPUsYm AAHKBsI4vUnBeHfctcbiyB9RNg== X-Google-Smtp-Source: AGHT+IE8ou11tW8HL58ljba8dxgaBkkR87BS3tgnZFYHGFtichyS2uz30CZsvntAaczYxD65pJiO/g== X-Received: by 2002:a05:6512:39cc:b0:4fd:d254:edc6 with SMTP id k12-20020a05651239cc00b004fdd254edc6mr1290975lfu.26.1694769691466; Fri, 15 Sep 2023 02:21:31 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:30 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren Subject: [PATCH v2 16/17] pmdomain: ti: Move and add Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:02 +0200 Message-Id: <20230915092003.658361-17-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022133_850403_A71C27B1 X-CRM114-Status: GOOD ( 18.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The TI_SCI_PM_DOMAINS Kconfig option belongs closer to its corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. While at it, let's also add a Kconfig option the omap_prm driver, rather than using ARCH_OMAP2PLUS directly. Cc: Nishanth Menon Cc: Santosh Shilimkar Cc: Tero Kristo Cc: Tony Lindgren Signed-off-by: Ulf Hansson Reviewed-by: Dhruva Gole --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/ti/Kconfig | 22 ++++++++++++++++++++++ drivers/pmdomain/ti/Makefile | 2 +- drivers/soc/ti/Kconfig | 12 ------------ 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 drivers/pmdomain/ti/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 98e04589bef4..33bfec9c4f7a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -15,5 +15,6 @@ source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" source "drivers/pmdomain/tegra/Kconfig" +source "drivers/pmdomain/ti/Kconfig" endmenu diff --git a/drivers/pmdomain/ti/Kconfig b/drivers/pmdomain/ti/Kconfig new file mode 100644 index 000000000000..67c608bf7ed0 --- /dev/null +++ b/drivers/pmdomain/ti/Kconfig @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config OMAP2PLUS_PRM + bool + depends on ARCH_OMAP2PLUS + default ARCH_OMAP2PLUS + +if SOC_TI + +config TI_SCI_PM_DOMAINS + tristate "TI SCI PM Domains Driver" + depends on TI_SCI_PROTOCOL + depends on PM_GENERIC_DOMAINS + help + Generic power domain implementation for TI device implementing + the TI SCI protocol. + + To compile this as a module, choose M here. The module will be + called ti_sci_pm_domains. Note this is needed early in boot before + rootfs may be available. + +endif diff --git a/drivers/pmdomain/ti/Makefile b/drivers/pmdomain/ti/Makefile index 69580afbb436..af6cd056c158 100644 --- a/drivers/pmdomain/ti/Makefile +++ b/drivers/pmdomain/ti/Makefile @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_ARCH_OMAP2PLUS) += omap_prm.o +obj-$(CONFIG_OMAP2PLUS_PRM) += omap_prm.o obj-$(CONFIG_TI_SCI_PM_DOMAINS) += ti_sci_pm_domains.o diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 2cae17b65fd9..1a93001c9e36 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -50,18 +50,6 @@ config WKUP_M3_IPC to communicate and use the Wakeup M3 for PM features like suspend resume and boots it using wkup_m3_rproc driver. -config TI_SCI_PM_DOMAINS - tristate "TI SCI PM Domains Driver" - depends on TI_SCI_PROTOCOL - depends on PM_GENERIC_DOMAINS - help - Generic power domain implementation for TI device implementing - the TI SCI protocol. - - To compile this as a module, choose M here. The module will be - called ti_sci_pm_domains. Note this is needed early in boot before - rootfs may be available. - config TI_K3_RINGACC tristate "K3 Ring accelerator Sub System" depends on ARCH_K3 || COMPILE_TEST From patchwork Fri Sep 15 09:20:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B257EE644B for ; Fri, 15 Sep 2023 09:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=H+qA65Oel7whcI9I5Y6w4ne0V0mLl61gGqVSAXTjkgQ=; b=Y5A+bDPJiKu1T8 ODAelh0bwT2vV9Rcg7xuawHJPsXbTpSB3HPzB+ImYTlV9wuhl2JtOqvLgiskCrOd76wA/9/2ibvv6 8Cpaso0XSbgoXG26WBVrBD3/X7Jq1Bloju7dGv8pRF3MfsZCszStjIw5TuLaw/YMW/bMfBhUuY+Vu rf+Y7bv5/jlptZqtSPMcW9P9P/+FrtFHDlCuuSEga7ll1YaXEmvkZLWb1TztxbJqWDNwrSA/TUPTm Xe0S4igF9euiIx+JgFDbOMkLcR2ni5MsyGbo5d3+OS7X0xc11gMS+fsfmq0sBkFya/wHqE/1w77Nm Ko0ICtJ+Utgb/mxDZW5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh51N-00AGFU-34; Fri, 15 Sep 2023 09:21:53 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh513-00AFuW-37 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:35 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bfc1d8f2d2so23454491fa.0 for ; Fri, 15 Sep 2023 02:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769692; x=1695374492; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q0LzjuzekaO+LUgw0Z4oAojZpLU0XF+vjTLwwFv3zjw=; b=TYtXpAcUmwHdlhZ+2g/nU0kLTIXz4X544CPm9yxLgojrSp1Xp2PyazhIwQE6Sbb4yG xK7QvfYEGF7jXDdNefzV8MaHEHZAgZRhsHTbLESnSCP/WLnjuzSGv0sUaDGJTBorpvax oPI2Ktf7fIaRSJjefp58c9XAX+z6Tb/U4oZv0kjcLyM9KtlfutrfsymesRqGrzi+Uwre ZYgCWmINyFQIL69UgpFFZ9QxNhmqdbqWGmMB1py7skKpbFpSBwr7x/XNGIQ2QMhaoGAm AI5dVcvzixLk2IVxSf9Vg//DZWS6F6ejNErDlk+BJYG+xt5MPYZiy6468fyb3RjOd728 Rqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769692; x=1695374492; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q0LzjuzekaO+LUgw0Z4oAojZpLU0XF+vjTLwwFv3zjw=; b=tQ6DulV9tgCirXKkIL8z6dT1MFMe/zrfVi3OHpdvinYNZCsSnaEESYtWfMCFqOYKLp Ey8ufT5HCiGw8Hkf6pGmR41PlCzNs21KuCMOYnEVSmpYd7EgeoEz3sejv4WIDmTh0n5J Kx84l5t4avOkuQNUlQ89k0Rifwiu81CxU7ibmObCaPrWjHUO1hyV8dCNkpOQdd1+lt8H S0tiZDSWXBW+C5iK1EzgDC2hGgJUBW96txpu1MNOUnY1ERw6a+q8avqe8JGWRzihCBw9 lPFaZds4EQtP/wbEuLXwX3llQ39mnoK8alU/OSvLWBm/Aoue89c7i8u1pmlCujVik9sa 98eg== X-Gm-Message-State: AOJu0YzHM2w0RLc+RKKTB9Je/k6tnLD7/v/ciIiVK6xlFQkJwBRzZU8y R0HmV9H3Yjd09/tf+EKcCkMzNsWc6TWqZ9JJiqWjtQ== X-Google-Smtp-Source: AGHT+IGlhxclDokFJJoDCsB2E+IRV6YNT97EznA5CVX9FoIK3dQoYlmtjn1XPSwMiiENDAOdee/EAQ== X-Received: by 2002:a2e:a17a:0:b0:2bb:c19b:710c with SMTP id u26-20020a2ea17a000000b002bbc19b710cmr415223ljl.5.1694769692670; Fri, 15 Sep 2023 02:21:32 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:31 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek Subject: [PATCH v2 17/17] pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:03 +0200 Message-Id: <20230915092003.658361-18-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022134_048257_1BE0D0B3 X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Michal Simek Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/xilinx/Kconfig | 10 ++++++++++ drivers/soc/xilinx/Kconfig | 9 --------- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 drivers/pmdomain/xilinx/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 33bfec9c4f7a..c98c5bf75a14 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -16,5 +16,6 @@ source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" source "drivers/pmdomain/tegra/Kconfig" source "drivers/pmdomain/ti/Kconfig" +source "drivers/pmdomain/xilinx/Kconfig" endmenu diff --git a/drivers/pmdomain/xilinx/Kconfig b/drivers/pmdomain/xilinx/Kconfig new file mode 100644 index 000000000000..5242753d848a --- /dev/null +++ b/drivers/pmdomain/xilinx/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0 + +config ZYNQMP_PM_DOMAINS + bool "Enable Zynq MPSoC generic PM domains" + default y + depends on PM && ZYNQMP_FIRMWARE + select PM_GENERIC_DOMAINS + help + Say yes to enable device power management through PM domains + If in doubt, say N. diff --git a/drivers/soc/xilinx/Kconfig b/drivers/soc/xilinx/Kconfig index 8a755a5c8836..49d69d6e18fe 100644 --- a/drivers/soc/xilinx/Kconfig +++ b/drivers/soc/xilinx/Kconfig @@ -16,15 +16,6 @@ config ZYNQMP_POWER If in doubt, say N. -config ZYNQMP_PM_DOMAINS - bool "Enable Zynq MPSoC generic PM domains" - default y - depends on PM && ZYNQMP_FIRMWARE - select PM_GENERIC_DOMAINS - help - Say yes to enable device power management through PM domains - If in doubt, say N. - config XLNX_EVENT_MANAGER bool "Enable Xilinx Event Management Driver" depends on ZYNQMP_FIRMWARE