From patchwork Thu Sep 14 11:15: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: 13385004 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 3E146EDE9A5 for ; Thu, 14 Sep 2023 11:16:36 +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=/qoew2hSNG0LeRt4/QqyB1PlmAiTvFXHDtaGrWuoiR4=; b=Y5wn603/tZMuP1 nk6V5bOWYEqChzNqpAdsbthigUcF9DCJ5voN8G5AFWttXxuwBIfJ6/5SZlMCvFOjlquYBMMkqNdUN H8SraaJEP+wnE4pgfQjk2X/r4Vf+4EI52Sy4SN69Px5fwuWFqWl9SsuiKcwIMiCC3ME+0y5+8p9vJ x+vJDVajsrZN/J/MRWPJ2qQ04ou+EU9lnUpb2fEVIfcboRkUpkoYgUll3yhJkKRhobGeuWvvUK/mo NC6Ch7QqHSqkpTK3gCIU3x9itD9O4Q33naW5Ph4zk2endZi1VAnVo5bCbawPxP34ZQFoThdBUL1Js P0JakbwEvjq7TT7MJBxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkKN-008CxX-2G; Thu, 14 Sep 2023 11:16:07 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkKL-008Cws-1R for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:16:06 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-502a4f33440so1384413e87.1 for ; Thu, 14 Sep 2023 04:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690161; x=1695294961; 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=NwwwwfCX71CGPY+4m/B/8JB1FGVXzFuLpjf50GP33WM=; b=qrRhe+7xrPD+iet0T3Jpm8iEUz6kkET0xf0tLs8b33HEP2m0ctum3GkmM/904MowtZ bhu8a3TIrENWTGX9rIyAiGrXTquSDAUgIgIFYqSJ1U9LIppz1zt8IxMkV/x3IxrOvX2c P+39et87a3huY9g34wjKUP4g7T8cfV+U2Z6AZeL8a86UrtigcD0UluJJwVO897VcdbQw xgVt5OhdqZg2FyUBkxpeT9+expVpyfnDj6ggyxJd5rKcvlMNUd/qLHEKNDQak70mspTx YAr7ONhrc7UlzjWALb9mFwAW14v/IDVS1C7fc8iJVDQpM9eId8SpKAw1dSD7OhZEUIkZ Hkfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690161; x=1695294961; 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=NwwwwfCX71CGPY+4m/B/8JB1FGVXzFuLpjf50GP33WM=; b=F2f+elmepP6hbLRZNugRrcaTJyp1RQaV87zud8mLaNUqd7ze+KgQiUMI5R1PuSrMOn 4Uzf86EFnzZAKk1+muBxOcU2TQYUr8GTjt2tmZxJvQ1b8EkYqvi9h0p+RC3UBfoMeXZM 2Iii90x8LRYWAbashmvQ7UQrEl9EUW/BZHOgZor7cGgJhhLKK/pmzcuccaO9ukZq1dnP /GeElRVNr4XdUPZv24XUlrsuyLBWLL1qSGZ9tgx6Qdp71/NOfTQYtsqh5DZbm+2QkmEs 6YE4p2j/5wMib8/AYBb6FGyV36Dpp0e6GlZ3dJdwqHP1zznJWfVEBgyMHbQjANtGDc6d nm9g== X-Gm-Message-State: AOJu0YxurioLtuZljk/v6r60Q1W+fUKJl7apl41hDxABC2vy7bBkvKE3 QB//D8OAgQZfDKpcpBe08TaJ2A== X-Google-Smtp-Source: AGHT+IGNDq1+kGv5ZTcP0wVAqFgUnsmaefZprk/wPO9nW3ABND+2s7KXW5rp8cCLBWwqxo4DDvNGnA== X-Received: by 2002:a05:6512:20cc:b0:500:75e5:a2f0 with SMTP id u12-20020a05651220cc00b0050075e5a2f0mr3775138lfr.51.1694690160982; Thu, 14 Sep 2023 04:16:00 -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 d25-20020ac244d9000000b00500ba43a43asm236197lfm.86.2023.09.14.04.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:16:00 -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 Subject: [PATCH 01/17] pmdomain: Prepare to move Kconfig files into the pmdomain subsystem Date: Thu, 14 Sep 2023 13:15:54 +0200 Message-Id: <20230914111554.586438-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041605_485788_BCB571F8 X-CRM114-Status: GOOD ( 14.47 ) 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 --- 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..045c469cb438 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -175,6 +175,8 @@ source "drivers/soundwire/Kconfig" source "drivers/soc/Kconfig" +source "drivers/genpd/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..c32a76b51840 --- /dev/null +++ b/drivers/pmdomain/Kconfig @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Power Domains Support" + +endmenu From patchwork Thu Sep 14 11:16:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385005 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 24C9FEDE9A5 for ; Thu, 14 Sep 2023 11:17:28 +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: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:In-Reply-To:References: List-Owner; bh=xQVN8LNKRA65hX8kmePe0/mb7A1BCj43M3yWbadGr4c=; b=DqkzRo3Hsx1+Du Ug1gxlB8IocOx981GuTGiV109S6iTCJ/QhE+Q1BAeninqI/egcJ3z3locBFbRkE2wSDiOEiDC68QS 4poc2Rkv9RLTgKGWAu5UsPQTpy6hP/lWKIlFXf616YXEbD6n1SBwKpqNKPkdWOr4x44ymW4pEBFUZ 5TAKyw+SP8hPNYpZ3OXWuJqF3B8bz9Wc5ofu4JqcxQecHH0YuAQQ0zagLvEyXvxtIC0hHhAT2aE3P ug3XFgHOKbpt889Gq02wyH4tg0pb2HCfr//dIQJ6Ehc8axFAcfiBEHLAkaRLUr9GaMnha5euckcAT grC7xCSZVu+uGluT63Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLG-008DA0-0Z; Thu, 14 Sep 2023 11:17:02 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLD-008D7Y-0W for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:00 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-502e6d632b6so1019779e87.0 for ; Thu, 14 Sep 2023 04:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690215; x=1695295015; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/G1B8RoYbQaDFpfisBrFB3z+4poKkBaELSKoZJGIn6w=; b=fr3CQJikD0x+r4zJKpJvdOV+7OTpwa2A6+QhZ8WoKnuIy5DZ6OhrBmtULHcuSpqPBT CCl1HNEIbq6yOWXf1STHV6LdbagT717+L6EM3cbuJ0WQjx3abGG6R8OCwU4jOTFWueCE IvxXrCKYuZY05q38hMB6Cfg0D6MPZl+Vi7QPUQ2WoQhS/cC/knVNWpbREpWJpzpnveNt DRfjItlih0593cy1SzHYllr8OhfXLwFT6z1bYnKYI94R5rG47TRMHLKu/wFakyegxvVK DPojv0GX1xoTIo9KXiQSIdDafAx+CkzIraA0DyrASjcbN3b5Pv4f1zg003SuI5ZQNij+ Ttbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690215; x=1695295015; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/G1B8RoYbQaDFpfisBrFB3z+4poKkBaELSKoZJGIn6w=; b=a32OSaFs/vLMGQ9DJIeCEOXKfM/orlTuOWZur9PpkNt2yCP3tOvbxVtTVG4fyCufEE s3QuZTSjc4VAgVLbTm8x3eOI7YSrQpQPERtX+nkkizEyka04X1S8qt6+o+Ni6NlsKocT G4SN0QQFNuQlgE4n+uORpf64bCpDPb/ZCcvAiZukQUlA7jB6EQUGbLF5fKjhJf78Jnbp KAryrB7A4qbErKT11ogaCzFgwfsuq3Mf8dtkTJZM4+00WN+MpotkpzS7kOoegOaNuV33 E7i3eqfgJckBH9k948s0TUaljZ4CvX5b3NtlJlXKb/hzRWaEMdZYFUH9SI6HeXkWmRCr E2aw== X-Gm-Message-State: AOJu0YzyC8K5xaQLggyj0B2oSyyjajg8ovbygxIX0M2ZIGrAjnasL4Sj 7ew54Bo8c1Xm35gK/I0944iiMw== X-Google-Smtp-Source: AGHT+IHxEMstyuzhFSypoWAtvEF01jbwfbhJStwXMTx9dgfqeYevn8iU1RhTH/B+foBI07WzfihwHw== X-Received: by 2002:a05:6512:70f:b0:500:b96a:6f59 with SMTP id b15-20020a056512070f00b00500b96a6f59mr3746522lfs.56.1694690215249; Thu, 14 Sep 2023 04:16:55 -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 g15-20020a19ee0f000000b004ff7250fa02sm234277lfb.179.2023.09.14.04.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:16:54 -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 02/17] pmdomain: actions: Move Kconfig file to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:16:50 +0200 Message-Id: <20230914111650.586477-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041659_229969_F0555FEC X-CRM114-Status: GOOD ( 11.65 ) 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 c32a76b51840..8acb10bcdec9 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -1,4 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "Power Domains Support" +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 Thu Sep 14 11:17: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: 13385006 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 E709BEDE9A5 for ; Thu, 14 Sep 2023 11:17:38 +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: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:In-Reply-To:References: List-Owner; bh=M6Wpx8VnobVEyLNIbICTkJVvKrrRRzFwuGhT40IDjO4=; b=YfR8XoVEYpxzgp x2TJMU4CHe/3NZSQMpHwHx1mgWEevFyOj7VhIFFG0Y/Mb1d92eLr3GlKToqZ3SM3sazn6zIy/iiWu ufyvW/AGbKT4ivGs0zumSfc/PPaQt76FBMQrTkCngLRhgaoHTwR9BaFEKmZ6f+IGVXgmEM70CGiiV RDp267fOeM73weP942qicGpv7CCtQhZI0oOgwTQzGeB7x9BbrLbWPtQ4HVbboj2WO8Nq1CZkKN42z L0YyNmz3O4AvBBU3hU621STRlwOLRZ+jYgqjbOzcofdga6ibiCEh1e/1BfEQ0Z3zr/5nnIfvEGn6D zIAj0mCVHQVbbmEvo57A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLR-008DCb-05; Thu, 14 Sep 2023 11:17:13 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLN-008DAs-33 for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:11 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-502a25ab777so1355654e87.2 for ; Thu, 14 Sep 2023 04:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690226; x=1695295026; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JMk7fcL+OM7TMTCrC+x1UWkNtvLf41klCSKq8e0KE7Y=; b=LaecyjvOECRHC6mR3Wz8Clz3WQcvLwDDzfB8m28L3H2p+tyJF4rpm9yxU3f0ELCTLX 1w/xiwPuBgVO9+c7Xmb0djvfHv5ROuPUlgCL46ZCYqHQI/e+iqLZ/PIPI3ksrYlZinQU vZj+CrCKlfbC1MH24Pr5UC7K23yswgS5JUUrg0+YpDb6El+0iHkK6B8n92W5zxrokiqS ashQ0uuq8NTSzn0K0dAjyD1h3g0byJDtmP4pF37z20c2w0jp72BE5EvS210Br9sak4cz HSIpqC3qsEDiArGyZUQ/59ldMdhqBk5qsbCfqJAtVtrXL+bcd2kM7YLmofo0iMsf20VL 1eCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690226; x=1695295026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JMk7fcL+OM7TMTCrC+x1UWkNtvLf41klCSKq8e0KE7Y=; b=EnKcB2UIjotW232F2nckJfVlJBaigB1GDDJNgb+a8skJ5wFmT3zMSEYUzxd69Rokz+ 7t3d9ciBegkEL+9kyD8cqizVPH+Qj09ZBur7MUurFz9UOYJ28z02VjyhqUfKJK3UFfVt qei2mQS6yciSwoVbMXruP5FIylzIIXkvGFUzVTkb8e96K1E+HBN1Ug3UKr+2J6qaY2C9 6+Y+9cQ/MY7wmb2iQSgp4XWkQY88zh94HjH37YExQTR8qQk+BwHlhqDVo1KrGi0Z0s3w NLpIPDc2HeB4Ccv3y5fiYt8ojyqMF7OAwh/NbHflBrkR27Lvij+ng/ED0rIxQQ8nYxup JUbA== X-Gm-Message-State: AOJu0YyR9XaBrTHQl+Dvud4giUlWoPjqqUbiQDBJi//SJOVZX0OZIvoA 0SKIWi5Z1jWSVWdnDReHRQwVVg== X-Google-Smtp-Source: AGHT+IEHCRZ8RnlKrel3ZKeQ/pul7iLzreILlx20wrdZdHBApccysL2Xr01SwAAI3n4m5UV7sCVJ3Q== X-Received: by 2002:a19:6918:0:b0:4fb:9f93:365f with SMTP id e24-20020a196918000000b004fb9f93365fmr3772353lfc.38.1694690226095; Thu, 14 Sep 2023 04:17:06 -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 c5-20020a197605000000b004edc72be17csm235958lff.2.2023.09.14.04.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:05 -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 03/17] pmdomain: amlogic: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:02 +0200 Message-Id: <20230914111702.586501-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041709_990176_08DBED36 X-CRM114-Status: GOOD ( 14.56 ) 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: Signed-off-by: Ulf Hansson Acked-by: Neil Armstrong --- 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 8acb10bcdec9..07d2f8165abe 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -2,5 +2,6 @@ menu "Power Domains Support" 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..ee1affffbce6 --- /dev/null +++ b/drivers/pmdomain/amlogic/Kconfig @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Amlogic Power 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 Thu Sep 14 11:17:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385007 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 62017EDE9A4 for ; Thu, 14 Sep 2023 11:17:48 +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: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:In-Reply-To:References: List-Owner; bh=E3GdxO/DIr3V2vCuu+W0bUc9LuBdd83SQN/IRF4bIuY=; b=ZxjHg0Zsk4YnvR 8HulC6m0mVmDYKw1dW8cZtOh1f09sQxKbVtp7p0zqIKXmdPIk7MDLpN9lby7xJXwY31sHjyPLXPl+ SkYALFuronNf7RlR1yNu1HSgSiBlIYAx27w7mtgoTNR0ErWN6lChbDeGaxhdm34XMnyViKRC/0wl1 na426buUlFVn6nnF1rR5y0ZNyYEFX0HEWpKYR/S6KtLNt17OlDT0ZtkfUU84gQ5v69HVuZd3eIkI2 YI47ykz9Xe0kbIrXr+XVyDxf6M4FO9/RE7H/4cR35hHW3wNHliFM4uie4cnf9HEhGdpsOZSZNjszJ l19Ok1qsNKVHKNVXij4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLb-008DFo-0l; Thu, 14 Sep 2023 11:17:23 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLY-008DDk-29 for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:21 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5008d16cc36so1431215e87.2 for ; Thu, 14 Sep 2023 04:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690236; x=1695295036; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; b=iPC6O9wS9GNnP9Lsyl1XbvZ+ZvR3JYnaAiP2ZExzjpl0oHbnYLaiRbqP9ykg6ypmhH mIz5ZiedQOnPhSY0BJHhXaB11XtpJ1qit2vYe6lsBB6c0J41+67V1kH/HepIuGm/DfTH zP2BD38dxeAlR2Z4kQz94e05KzIT/C7uc54wYThHwqhzd0vcCuXkyVnD296MyE4WdYOd 96X430MsOHsNAFKlBMvLC3RVSgZplyCVXfZ0fZQSX2hM/s9ev7Me4XEzDfI3e8Isqvwd /rjPv4V7R6plLQ4sb7DrcRRGh0mSkg2Xk1mDHcw9JYP5lgE3H5JVseKhSYBL4BZu4Ytt qmrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690236; x=1695295036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; b=m1oj1W9gv+2zIo+h5BGC6nykCThbZ/zEtdKBjCby8Cgc+aaJz+h+vNz12Fg7FUHRCV c9DndMmpTwFlcJ8C5c+9qo1q0QQEbjHU5ET92xF3Tp4sucHedvoOZGRfPFcQgj8zKxft IQRe4WFVdrQPVdh79oaE4taY5fdDJLnlgO6AFxZ5Raewv75PlgZ5lE07kfkjmYqslVnu SjdoUfMdInwO9v7w/d1LR8RwQlvQ7D3gcxs5xqA5G+ADAoZJvVtUaa/9ffcUZjsA3xtq yKNkaNlpJCOv1nhc18eFxgRgIPy6BJepWjorpMlsWCXMMxyg3bijFl0xhABJIT1cLEp8 6YQA== X-Gm-Message-State: AOJu0YzNlPn/2jhBRyLQ0ulCTi2O8rpxSfZnteft59ilN0CQH73CAzkJ Ld+V7XmHTYFE6ADVz4Om32kKNg== X-Google-Smtp-Source: AGHT+IGDjoyTHtzNmJttlaj3jNDjN0HhiwRNEyZ8rwnvs9ZEjBQwpDBAiyBTONV+SlXcQ/a1Fasksw== X-Received: by 2002:a05:6512:312c:b0:4fe:7dcc:3dc1 with SMTP id p12-20020a056512312c00b004fe7dcc3dc1mr4103999lfd.44.1694690236028; Thu, 14 Sep 2023 04:17: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 a28-20020ac2521c000000b005008cd93961sm233024lfl.192.2023.09.14.04.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:15 -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 04/17] pmdomain: apple: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:12 +0200 Message-Id: <20230914111712.586522-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041720_708001_84E8612D X-CRM114-Status: GOOD ( 13.54 ) 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 07d2f8165abe..55a9ca191849 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -3,5 +3,6 @@ menu "Power Domains Support" 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 Thu Sep 14 11:17:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385008 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 843EBEDE9A6 for ; Thu, 14 Sep 2023 11:18:04 +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: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:In-Reply-To:References: List-Owner; bh=4PjyaKXYzYCi6jnnfYlWHZnmMqCKriKn7c1xFuu31P4=; b=ZqUGu7sCsPizan Gn8VoqztHdXToXu0E+SgMGRiZGO7kUpAIusy2b1gYBa7jvGjOVFgSsreNdzyBXxZ8lyTK1n+Ok3mu OiTxOWO8JpXalOTl1aABEvIqSB4B9A7XD8hxExEeVU8dn/7Kt2Tn4bqrs0Ye/GP/dVCh9LCshIV4/ 7LDiIehfYj0GhM/gBSCbOL5r7sMxSXRK2pRchN6A6EuymINptLJ5S3/VlAlsTXbSiKga2RawE1Oto bh/FpdI7MG/72wHSqsJ4XQCR++7ByDfsVq/LGsZLdaUQDTTcOk5uqyytF+AdNMxBr/Zq4F88qs1Ki V+KT3OKGcM456y2TVRlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLl-008DJd-0X; Thu, 14 Sep 2023 11:17:33 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLi-008DGt-0c for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:31 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-500c7796d8eso1415463e87.1 for ; Thu, 14 Sep 2023 04:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690246; x=1695295046; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V3mbgmnyoTrMzfffrRfxAP2RkuD6rjug1WQEvOx/n/U=; b=M/uVC5tJSw9Wq2WKJ15t5qy9fRNWz+tHsJKyJQ+18BWVxlHPBdWvWRyDHKjeDrL3i/ UEGXCtTEM6qqyLv/OUhTPuKDOXRevZM3JiUC7Lr9gJ23MOtjz6/fgT7YL2F2b7qn9/g2 CVsbHQkU6jrhQKsZa5MYCxYQr5SFPyBpp/lZxEnWNbNxfbAt+Fc03B1dwj0jgwDuH0zT keX+Eyb4flEzav0fWP+kVXFnM1vB9zVQzSgHfkhI6yMgOcxCkXRDv8i59XXTXthdzNNZ O6so4owACrKk6Bn1WQbxfQ8SKw8gTCBu7SNc69TgQm1e2Y1Idsr+ON/tXZGYh4KL/bLE i3yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690246; x=1695295046; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V3mbgmnyoTrMzfffrRfxAP2RkuD6rjug1WQEvOx/n/U=; b=d53aVB7VWGxC/aOB44FttoQuarDgq9seNYTKUvAfhjmOL5OE7a/QGAlzZ+6MMofRs3 ziLzntIjePp+YdLZX3uEf0NrsUEs7E4/Yv7Xipws4MkVFTSPROj6UgwCoRWd+22wqnSU QActRsY6wqoVZ7EgoF9q5Anld1+c8Vn0Jo2hWd/c+OLsbXwj88rPqgye10w6EtmEaMWV oPjEMdgyxsURsfAN2/L6aLurHdqn9ZmVa1gJQmxaCW4wDMF+Aokd59+1xh2ubo0jg3w2 BktbMKomV3iftK8ue/oSH9LmtoaKCD8svfhZ+UCLarInnU38EqlqrNmnOyTgXDil7YRm wNLg== X-Gm-Message-State: AOJu0YxN0r2YkCiZKUlB3407PRBPAdUUfX5m+RNBfkKIlO60dCzX93v/ YelPRQyAlZcmt+PUDHFgf3faBQ== X-Google-Smtp-Source: AGHT+IEJ5kh0s85nneZdUyXZTaobo6Y9st5U7pZU2uaiIVoFsmea5woLy3l43yDv/hY8fs+c1T43FA== X-Received: by 2002:a05:6512:1585:b0:500:bf33:3add with SMTP id bp5-20020a056512158500b00500bf333addmr6038147lfb.47.1694690246319; Thu, 14 Sep 2023 04:17: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 r9-20020a056512102900b004fe48d0b639sm237143lfr.83.2023.09.14.04.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17: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, Florian Fainelli , Ray Jui , Scott Branden , linux-mips@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH 05/17] pmdomain: bcm: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:21 +0200 Message-Id: <20230914111721.586543-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041730_229658_96E479D5 X-CRM114-Status: GOOD ( 18.79 ) 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 --- 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 55a9ca191849..a0569a44ff4b 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -4,5 +4,6 @@ menu "Power Domains Support" 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..a4ee960b4749 --- /dev/null +++ b/drivers/pmdomain/bcm/Kconfig @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Broadcom Power 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 Thu Sep 14 11:17:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385009 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 99D2FEDE9A7 for ; Thu, 14 Sep 2023 11:18: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: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:In-Reply-To:References: List-Owner; bh=EtxRD9pJKBgR72Na3xM1z4yQ2jUjcpF0LT3iY+TeSPw=; b=dSqM+14w+LTQsi K29cqKZYF/zoLKh3YEIHGVr2cVlnkvnBf1YLcF+eVhvOtRZoZfig4Hd7oAb3M81YYXSV93z1ZsB8+ MdwA6yNTKHJ/y0oJCYuqQLngoHoooqxzIZwW8eK/zXVlEnJdPR0FcyMR0RdG5486z+MMyRNGOBAJz jEzyUB0/Ow85ohNMN5DDGz3jcCTAwPy0P6ackCGLyrzhzIh5ZcMRw7nJz+l4SrHNv7sV8vqcnVHaG 44xsL0DoMvRMyArdVnq7xg17usX7oGVbxZ/51YUHSms/FcNTdX+guHXkw6wCc4B8niE6oZBQav0TO RwIdBBOMBWNhI9nzKaAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkLt-008DMW-0i; Thu, 14 Sep 2023 11:17:41 +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 1qgkLq-008DKq-2u for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:40 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b962c226ceso12347711fa.3 for ; Thu, 14 Sep 2023 04:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690255; x=1695295055; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FEe0O9FNWF0PRk2EeQvO8Dbf6wLGmNuQMW1XScp3I4I=; b=O49Yqbk9UfxZF0SXITF48wMwWEp40QF2kNaQ4Jr6DKn3h/yvVL6+ZeaUqMcONztv77 PvTxvIXVDNXV7ph5YvVVd5ndwc/BuqxaQV+g/dvlBCQYg9eZMj0E8Ps9HYBAh30YP4wW 8N/4cXlDnz6h3E34zPlX7Bvdscu4AweVrh+KvQVUuWDPre70OYwlNM7cAk17RwZ75qrr NwsXcu7o2I3d3961WWJ0oDbXqne9fysJT9KQRNhot0YSqHSCj4sER6gU9R7VM3agSYtx eia6vOGvlLB16I7fSD6igd2yclEb0deyTsuwoDQl+znUJPQ3gk16UVGOr9TSvOwHVYmL UlwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690255; x=1695295055; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FEe0O9FNWF0PRk2EeQvO8Dbf6wLGmNuQMW1XScp3I4I=; b=oWMjQe8LlV1cmWkkW8kw1OJonj3ZpbHn1WT3Iwj2cnH5KoO0guWsUKVjdkLrSrH5gh MDuG7n0p9aITgCsg+3bBjsHpbL2EMj5aR17g/MsrpW2sC1M1Rqbxnl9xxwHrUmOlb0mT LAPuq3PFds5fh58s/aJLJZUQszb7QaFkCEhTjgQtaelM3vgzByqTRRaUCqQeWhziY6p0 6SK+kDRQZvusQ0t0T9iMwY+kfntXbf5Z6NfdZPt1cLtHiHdMoUROHbUaKYsV9VtS0hW2 SY4eQ5ygonbJLHVAOfnXE7Bml5xiFYdVsMPSdRSsLgM3qI8QGcjhqMeeil9YEFimfy1m si7A== X-Gm-Message-State: AOJu0Yzj5eF6T5KbPKdeJNAnCg8MAwD9jyAPBdLxfK2Dk9hb2KOXFV+n dSt3OpxqnwyR9L6LiugJ7DPegA== X-Google-Smtp-Source: AGHT+IGaEOK/RpuGALw8XgYDXCUZMKnfRxZ33kxqHOwpa09VEzdpFcREoV9i67p91oXBarsERZBEbA== X-Received: by 2002:a2e:b045:0:b0:2b9:3883:a765 with SMTP id d5-20020a2eb045000000b002b93883a765mr4950619ljl.31.1694690254937; Thu, 14 Sep 2023 04:17:34 -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 h13-20020a2eb0ed000000b002b9e65912cesm226190ljl.140.2023.09.14.04.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:34 -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 06/17] pmdomain: imx: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:31 +0200 Message-Id: <20230914111731.586564-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041738_934946_DAEB133B X-CRM114-Status: GOOD ( 16.84 ) 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: Shawn Guo --- 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 a0569a44ff4b..8a02523b62ce 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..ef964df0f856 --- /dev/null +++ b/drivers/pmdomain/imx/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "i.MX Power 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 Thu Sep 14 11:17:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385010 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 63D6DEDE9A5 for ; Thu, 14 Sep 2023 11:18:19 +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: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:In-Reply-To:References: List-Owner; bh=JoTM9wjnUYfaFTcTS9lljzgcyPQFcj1ZDbIfW0ZlOYE=; b=PSM4uW68A7u22G yozEVgd3p0hq7RFBZwwApkLeoGrpepnAGzKc71dQc2G98KGCWgUSPDObRa3jTiqAfGJd34/22VPDQ /YHfvmXlOIA6JuZ33ExHXRaAZuJqSI4bK+5zwxCsfxYHo3YOoBA1pxdg0IT3EZuz7cDMcmiw3EOeV 3Ulq+y+OXKJQszJJwPAHs9Pfhdaj18K8zs4IITsa3k83VNriiZnooh16FnAcGxSDjJuF4hArEn0OF typeTq+Lb13Zu2z/vrX3hjmz9suy2rIlDY2UdRbKrIlf9bx/vt1qAFk+kLRU8Z9Zc3EqJB2B1meko 8wGYgzytk9umWp/CaKrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkM3-008DPz-03; Thu, 14 Sep 2023 11:17:51 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkM0-008DOI-0n for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:49 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-502984f5018so1406291e87.3 for ; Thu, 14 Sep 2023 04:17:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690267; x=1695295067; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mRH6OrUr+z0cZQpLuLGyuJMctqYD163Kr9u2QpwLYcY=; b=salKO42jEG4qRyJMNUxBsVAwvOaxV8rcS3JSOeBrcuAUL9juVnf0SsQ0M5+UVGCVPO smp4NYhnmf8RwzUDDKUhxMSbfXTKFGB1CO307gvpH0c3eA6TdADyMQLbnwq2BN3nE++7 HryTO06HuFZoXuTioEydt5r0q5JXz3kziIgjrYeXSzZYXvS6eeJoghospwfmKONCaf6x 2LgaMW6dK3K+GvSll89Jf7b+inKRolgPk6DM7/RZcvAapp2F7GRtxQ7qGNPXChHI3swb OCetn2UUa1EC9wsOLkywfQ5SHmBsZoBTisjdd4BVCNmlr3+ewr/AmbmnPp6Nn4vvl8TM 7IIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690267; x=1695295067; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mRH6OrUr+z0cZQpLuLGyuJMctqYD163Kr9u2QpwLYcY=; b=wyrFa70VGfL3+7wMnB4xwmEJ86EuKiCxymeVUzF5CBaav3tu9ve7IKiVfeW5/sHjPY oUGWuvrZKDu/PrcmyC5o0OndU/QM/Up/Pjg9SxnYsD6UDFo9lWvtjzTOZCVL0pJuEk6g 2CIKb2XvHzh+QeX2XE7sVlS2/eTYl4jzusm/lgiP+1TY4cXD3R7Md0IOFk3Usytxo07d JBnlouk0Dx97kC5+cPKF40bw/A1g3wM/D+ppfCUJU64lu/iGh1McYX37dcmFzmD875uk Bv3Eo1vR2ZEW9/AzbNVH/mmdOMPn4ygDNKYlKqgFGGJDem3JHPilqYx7aDkE1s/ZJ+Pc 24Cw== X-Gm-Message-State: AOJu0Yz1zXyLJvl7El8YFK8nlIFnSgm9aIV6VZcDSfSm64H7YSluAAON qs6/5bqZ3ltt4D68RNTrE1+JXQ== X-Google-Smtp-Source: AGHT+IG+zvfdRoCHg863MO1oc+o242dOyN3OArQ0YkCJDQaEF6fm8SXbA4YZWUC5fkXlYy9dpmXDxA== X-Received: by 2002:a19:4316:0:b0:4f8:5cde:a44f with SMTP id q22-20020a194316000000b004f85cdea44fmr4020739lfa.10.1694690266851; Thu, 14 Sep 2023 04:17:46 -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 q12-20020ac2510c000000b0050092263a20sm236630lfb.6.2023.09.14.04.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:46 -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 07/17] pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:44 +0200 Message-Id: <20230914111744.586593-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041748_284963_E3AB5A97 X-CRM114-Status: GOOD ( 15.89 ) 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 8a02523b62ce..5929f2d31588 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..184011b51615 --- /dev/null +++ b/drivers/pmdomain/mediatek/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only + +menu "MediaTek Power 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 Thu Sep 14 11:17: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: 13385011 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 E05D8EDE9A5 for ; Thu, 14 Sep 2023 11:18:24 +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: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:In-Reply-To:References: List-Owner; bh=Bcu70Emi8KT9p5FNSIfRwmTJpArqySjLUTs4IEXq5qY=; b=U8q27ntgKbj6b0 qo0BiG6w/4HrhWLT2hdDswrJ/sKbfW6vdIcDSIg+Nefp4HCMIH87mutlg9/T3y1wOzXP42k9ZXHXJ 4zRT8M7njCN9/ibRixLfD3I06eFeXDsFP9wCQLliNOdOvXRXbswtjRVkFiSFxuYWQh2HIIY4LqnjO JV4elh/DEoMjLlmI9cyyP9FDQuzHTjOmL+deDePryhInVJ1T3xtwqElMPRwokHVuMvFuxD80Aw4TK lOCRYLpJmklmAF8mF61Y0kXug5HmG/xu+khPbe3KxgZk8W+jHCJ5KfHMV23DniyHV3hKaLzzBEO68 OsyX5zTZj43zq7NToJmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMC-008DT9-0O; Thu, 14 Sep 2023 11:18:00 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkM9-008DS1-18 for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:17:58 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-502b0d23f28so1403695e87.2 for ; Thu, 14 Sep 2023 04:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690276; x=1695295076; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=U0VQhcoNLNdF2hx3KPbex70/0qm7FIzVv2M9Uuzf9Fw=; b=JFOJzqn/Y4FQljA4j9ORrJVEUSEAnNovrhn4+wqTFEjdvHFhXtbj2tzdq4uOb4xhS3 5hJ+ZTK4O6nroTccWEHOKy8YeJFfFE53MvgeCudblN2pglXCPs53CIBdKT4NrvGiS1CD FrWoAXpXQrQMgT0jKhaFNIh5rPnw5A4yJ9p136MlRaf/8a2x/CDZ8lnQwd51kzHmuD4Z GTk6Vp5mbQwUVWReVjdH52JXCExlX2jtON9PYgxFvB+aCI5XBIH0EdYJkA+SzFF4gnxO FYz4CgjGhoN3sqk3EdI6gJA6zJYAknQm6BOwh63jbz1oD78kG6bt1vo+0n6OxpB/OwkU dxIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690276; x=1695295076; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U0VQhcoNLNdF2hx3KPbex70/0qm7FIzVv2M9Uuzf9Fw=; b=u2ISiC5oToWrU1JovQhMH7amTHbJr4wlJ1GjpYL4sS8HbOQ0jC3uxSYP1Ke7Dg0vFw A6u3Nt3wIflTWa2XlyjVyXq1MJphVeZQhsq/m06wz8XYL5+FcrwGUYavXAEcVrwxdYxy AVl3Z3y+c+KmoxoOMvjjUUqq/7Ao02oorc8zdCsPDPU3C300twEfqUFDZyQVflYGLh+h r367j7z+lCo+JfsvGvCGHaE+RntnwaTLql60zsIM/bvXOKDof6u+NZzEAAkVNxyWwlZY JxjoqXPdmKcBdPm/crYqgtP6EIYNyNsrJbySzvY8ddy+rFD8gqy0x+EUgzIVLBDuL2Zt 1Vlw== X-Gm-Message-State: AOJu0YyG8Y622xqBu8pIDN2m4t19skfM8iuEcZwK0/kayzr+FTsKk56w SiTyRfs4eQJlNbOzSnu/g9Z7hQ== X-Google-Smtp-Source: AGHT+IFzbzNrbUhVTufPQvnBjGY+RhRHGIrGu01HNr1LOR9JVppeqQfxnWwuIVvHuE5VImtOF16wYA== X-Received: by 2002:a05:6512:3e26:b0:500:9524:f733 with SMTP id i38-20020a0565123e2600b005009524f733mr4664580lfv.20.1694690275954; Thu, 14 Sep 2023 04:17:55 -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 d27-20020ac25edb000000b0050234d02e64sm240423lfq.15.2023.09.14.04.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:55 -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 08/17] pmdomain: qcom: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:53 +0200 Message-Id: <20230914111753.586627-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041757_405200_B25FD763 X-CRM114-Status: GOOD ( 18.60 ) 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: Signed-off-by: Ulf Hansson Acked-by: Konrad Dybcio Reviewed-by: Bjorn Andersson --- 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 5929f2d31588..d7b554c5c384 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..c67308337805 --- /dev/null +++ b/drivers/pmdomain/qcom/Kconfig @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "Qualcomm Power 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 Thu Sep 14 11:18: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: 13385013 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 B510CEDE9A5 for ; Thu, 14 Sep 2023 11:18:45 +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: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:In-Reply-To:References: List-Owner; bh=vDRearILL3OLHPUs7YOZCxtzatfRCJMqO5L7wnqrXxc=; b=fxiZpFds6kipfK RHdqL4w7X21QoUdaUysjiRLJCaU4E1vSqXNIsOUp0SOaQMkG593jTUh/Rs24x1eMpQ770S3vnSS1o B+PTsO2yevrK4Z+mLwy/dhHAxtF51HNY35gDPupW11xV/Tf/gFyTehDNkLVD1zrfGOl6QuePyUkK8 5z2ahz257D/tFvAmrAm/aGBxhd7tMxHP0GHW4JR1EQ7BrcEbmbo6fTiwysoYkUbsrRew/F7MK3jTj U0CzG39ikhREVZbk3RmT0dnCCt8kVzEmbIbWt80HXb8ME+RCcvbzkh/7tNds6EQxybcbRlFPQyJyl 511DI45i+scq1LEC9/Qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMQ-008DZL-2M; Thu, 14 Sep 2023 11:18:14 +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 1qgkMN-008DVK-2g for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:18:13 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bfc2b26437so12194621fa.0 for ; Thu, 14 Sep 2023 04:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690285; x=1695295085; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w6tggu3w0rnURlQWc2TjYOylJS7t75MUFO6fIbxQowU=; b=izwShy/pQ4elBUkYYMLeOtkTOZLursNY4RooDXiVoDFgEjLP1pdpUo3otdIwTdCgSD GumDJLnhB/CSLXSr5GZcSBe+HFpxt08/mE0vCT+z21uww8yJ3A7iTc4DALW6NeUeszHm AVU8vrbMCCmonfXmEAp4hm1TVE71cXXa/cb/DKrmtsP2eFxKHp1fO2WHvRAxY8mijmdp 7zZs+lbluAfJ+3T3poOnu7hycvxv2DDwxf15d4SP3F+DliAxfI/rJ3ToLqh7uMk6aZng gH9xrST2G2S/VRrM+Pmqj4BOHveY3Uy6vHkqZgA1QbiaJ+FZN2IyorVB5QpK3WJ084jS qREA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690285; x=1695295085; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w6tggu3w0rnURlQWc2TjYOylJS7t75MUFO6fIbxQowU=; b=ehGLtWmdwkKADkM0QBPc3QrNQfGKpFPrh5ytGmMainl3FqDTlh3Q0FJ3T+6sFh9p/e Nb+pX5NLRRx1OmnI3iqzpUqq/Z/XTnzN/7R0/FqskcA/m4eKV8sjA9T41TFlhcRUL+O0 2e9I49N+jxL5PFKL3+G93efhE5YN4ifJT1ObZM/Z+LJyLlzLRuQh+mMNxsrjTEeFS8jB /Cxt5drnWhLrtYfFLMtHgZeRPhZTOVXKVacedsne605U3RPRK07ScX0E0cN0LUCXKeA0 P6SgYpATsztKekV1q/Y5NqOCnnGRnjODVCy7AgVHXZnBgJWK9g9qu0aODZn7Jt7+d1eG 7sEg== X-Gm-Message-State: AOJu0YwMDRxhm+EZsiXntoWs2MEwF2+ok92k5Q/6EUKiupQnSKgD21Oo IxJTlHdfpEs2Gu3Pp538Nw2D584tb8FqClX8+rM6LQ== X-Google-Smtp-Source: AGHT+IFFVQfYZxgU51JniE1rKigE/3fz3t0WhNHu29fyri1xMYFqe7wzn52XOTD5PaH+1d9DT+vqDA== X-Received: by 2002:a2e:90c6:0:b0:2bb:97af:f37a with SMTP id o6-20020a2e90c6000000b002bb97aff37amr5113252ljg.28.1694690284896; Thu, 14 Sep 2023 04:18:04 -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 p19-20020a2e9a93000000b002b70a64d4desm241807lji.46.2023.09.14.04.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18:04 -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 09/17] pmdomain: renesas: Move Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:18:01 +0200 Message-Id: <20230914111801.586648-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041811_867679_C0F2C92E X-CRM114-Status: GOOD ( 13.42 ) 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: Signed-off-by: Ulf Hansson Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven --- 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 d7b554c5c384..e8181782751c 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 Thu Sep 14 11:18:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385012 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 20DA8EDE9A4 for ; Thu, 14 Sep 2023 11:18:45 +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: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:In-Reply-To:References: List-Owner; bh=tR0dXfawt7hnqQ30z4pRTgoeI1D1WmKhbRnyZ5ZAHj8=; b=DKfQV8/leOv05H BDiq6YwAzjOLjp+PBpZwBL7aDGlFLyUo09MBYlujDEX9C3nlUH4Xm4o5E3s4aDQp1ofEHgmmLAHFD M0E/XoPMDPS8b+bqMoiYgB4GZdMaasrkO580LuKl171CjV3zL0asio6WX5ujKLDxb0799Zh2gq+/3 LQ6Z2NXLDdgXJh/BQUjH5d5HyPdOUHdO7kb1kKNMxF3H8mzIPfjAq65c3+PNoqgNjzv5dyidqofhH l/AezLKyX5kBlDhPCcNqv9pO8lzRhVxnzxlfDcN3lj7Ld9C0cQd3/DbXzR/mbjFMDm7mHsAVlMY+j KoL+pWq8pgWVez5H7pEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMU-008DbI-2l; Thu, 14 Sep 2023 11:18:18 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMS-008DZi-0b for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:18:17 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-502e0b7875dso1440007e87.0 for ; Thu, 14 Sep 2023 04:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690295; x=1695295095; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZgTaOHBfImHk+QFs8F8yB4KkJMugQjfBX2V5uwaw/P0=; b=HsC46NkPV/VV4Roq2NwPKW4nGElOotU+68jLbQOeMV+Ap3Rm4Sko70N9ZHWh85u/ej RnqlAOeyp0/5Hd0N0PF2cy1GUsO6j/y1MRzpX04sDNR2tCx7xJ0GMmLGAXYXqIGx0zlk ebz5irNpIGOWRx8Z5jZQVsZurnc6gL7I1ZLkkiF0DAfjsUtZ07zLLExCbPBf0ZczZCVQ aU1AMFh9rjHT4Kt5X47RJ8xv/+qZwO7ACq75O42Ht4Z54Qc0p+V60g6ynFcglaeAIzRL BuZE11M49SHzpUa6k3TgUyH3ZRoqZUBqLd7EpextYCCtthOTQidYFQcDha6Xg+bseoNQ UaIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690295; x=1695295095; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZgTaOHBfImHk+QFs8F8yB4KkJMugQjfBX2V5uwaw/P0=; b=M+U4dxGlW4zKFhXN+vmVUzN2qb9KxcwEaaopqgnONPI03VGGA/XygpNOHBEZjJxudx F3l4WS3v0qp4JKk0RZGB8vNItRxEgM6WjQwIj0X2TMp6VYZMpQwHAB3uI44UL4vAVOmL k1mi4Pvxd76G5CRuAiqoduqeecTBYdrzmBKM5BBLZSS/Z9TSz6teTrvRLxjyeWJCR682 L+2mK3cZXCwX2bgXLoo9hWjndNnb+GT/x5nBa+8sekzm4x2Xf5AwEcoOBYJ5JRx/jp+S l/XMg5jcUvamx/9b09V1JQzyHzt025dXKx43pvEFoKwx4tLESUqVOP/9TBKVgU/qGP1X ullg== X-Gm-Message-State: AOJu0Yz1/46GNZyrp9R3ldpacYF9PER8nd3uBwE1jcZfEmVImYcVgyBd nwTjGyDlpiHG8Lt81yTprT0SgA== X-Google-Smtp-Source: AGHT+IHQhK+nElK2gIDtqvOYyMwT+vSbvR3SdvfQ2bS1iSqYmdY9eUO8VZUnxX/es08eft+TEf1dEg== X-Received: by 2002:a19:651d:0:b0:500:76aa:b962 with SMTP id z29-20020a19651d000000b0050076aab962mr3733875lfb.15.1694690294671; Thu, 14 Sep 2023 04:18:14 -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 d20-20020ac24c94000000b004fb9536bc99sm233052lfl.169.2023.09.14.04.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18:14 -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 10/17] pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:18:11 +0200 Message-Id: <20230914111811.586668-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041816_234648_C9865530 X-CRM114-Status: GOOD ( 16.82 ) 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 Acked-by: Heiko Stuebner --- 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 e8181782751c..74066c5daa37 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 Thu Sep 14 11:18:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385014 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 B980CEDE9A5 for ; Thu, 14 Sep 2023 11:18:53 +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: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:In-Reply-To:References: List-Owner; bh=iFVZiiPDFTZrijTICo+2+tQUS871PDjkY0LsEnFHMWM=; b=4kcyhZQFisLEvv Dx45ev6yyhTrQSicTY7ApYiyldzN1f2tWvxYOiCM8a80IFpdxACK3YjO1g0qbQS937v2vZ4uFxamv WbM/lUruRMRvajkk0KclQzM3IvT3ip5yBPOexFwqs2saT9gqlgkROo5YcIrHrcusdlyUfQQSgMYXX owd0+LCpNF8DK0CsFZNrCdslmovq+l81ym7GBPEX9r7v19IQ2JOgggFc9PPWJZj4/iZh93iF0hy6A Cih6kQWoPPLEEYNCTSoHvOgO4+5u7aexZ7srSyof0bfAgutolMIKV6g7LJVvD9XCu0WY3TfywHLcs ZopNa1vkKB7ThX3KQDRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMd-008DfT-2O; Thu, 14 Sep 2023 11:18:27 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkMb-008Ddr-0j for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:18:26 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-500913779f5so1373376e87.2 for ; Thu, 14 Sep 2023 04:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690304; x=1695295104; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dxUofEX7JvW4d1sce0CQyOiNxdylns5iYNZqQoeIs6k=; b=D9Kh6Fv18S762An3qdqVQoMVAt/Bn2eZDAENLcbDy8pyVaE/oK/vFvD46athsZd4sj FXySyRTR9f4ibEqgOiL/BfXaJrnjcxQKHxkknIZuO52/NElD0N2OOvczSW09bdh/xE2/ mlM6NSbcPnwwKekgid3fY2M13UgPMV0ZYFRP3rewbgY/vjsfoiuW3fb0BF+Vv0QsDJ78 mCL9D/37uD/sxm3swgKBCYIAK61f247z6874kZX9ekfPrCzvfKqoxkHY2vHAxXDbgW2V UwFYTp4ssZYlAOnfn52lad0l1fyOUPtZAb9kKcvdEILvXtM5OyxxiDyPPjHmTbMuTepw rIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690304; x=1695295104; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dxUofEX7JvW4d1sce0CQyOiNxdylns5iYNZqQoeIs6k=; b=UcR+j2+srGgJRQ5NJb9X4uH6DEND0zqfpNnhvVkfVqbWYV6zCp85Z9jy4TG8IVJyIH G8V0DXF1GyMGkG7vMfBLQ9n2CbsLi09ZyyVyRI0oFgobRGuKvQ1YEXodUduPtAeSFycN BeUDsdkWAnTap00qUCdtBDdNtsyYpY/t/X+Xa4EBdFm0BkBsnelSAkz/0Xnqi+fbsBs+ meR0xLyjdVenyYdCnDO2OST29z4kFJDr+lSE4a3mPz5A0wEEp/duVQ2lR5jAwrqqx6/d XZwuOSW3Hua+xlggv2nuaDBIm33vkvSVPFiMCm5MUXuqo+Q8qamaLXQo7zamvvkWTM8f hnNg== X-Gm-Message-State: AOJu0YxjuomNoLwP290dFTj7d3TWfskhTa1AKn0hKaRYviCcODIgC89I ZuM4FaSBGAk4/wVSUrYCBCqf/Q== X-Google-Smtp-Source: AGHT+IECyQHUqtnFN9/j9xE0JHalnzMd/YBsRnoVECOTPF6IR0x4USQA3KdxsBpACd9No4jnwUmqcA== X-Received: by 2002:a05:6512:20cc:b0:500:bfcb:1bf6 with SMTP id u12-20020a05651220cc00b00500bfcb1bf6mr3670193lfr.57.1694690303682; Thu, 14 Sep 2023 04:18: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 r10-20020ac252aa000000b004fb9c625b4asm231711lfm.210.2023.09.14.04.18.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18: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, Krzysztof Kozlowski , Alim Akhtar , linux-samsung-soc@vger.kernel.org Subject: [PATCH 11/17] pmdomain: samsung: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:18:19 +0200 Message-Id: <20230914111819.586688-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041825_265110_E32CBDB5 X-CRM114-Status: GOOD ( 14.53 ) 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 74066c5daa37..1e2c5f531638 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 Thu Sep 14 11:18: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: 13385034 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 AB2F4EDE9A6 for ; Thu, 14 Sep 2023 11:19:29 +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: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:In-Reply-To:References: List-Owner; bh=1RdjPbz7uTbgfAUZjV4jC2fP824ni+nJGawtTg4X964=; b=RSs8RAwDyVnGay upVKA1tQrmBJRjWLrAjY3A2oEc4CGqboIztG5jP/SqmOj2ze0Q4L6fi8QTrfIRQrGBoz9dvD/9KtY 9NzUH6pjc04QoJpqjNNYlqBlqPOQp2VClMZmHvUtil6xIB9tFY2zisI9rbr2KsJtjVP8dhph8tRWi TZjK+I13yV0rh7wr/oZKQLlmnnxI7KUsvioB+3R1Lttu/zaCmIRWjouuqovE8dksrllN8rrLKbYsA z45Wy6ld7gjINJIHNziXcePLQJ2tn/y7STTTJPqWInXSYKMkJ5bykLFPtBAhn/paDLZqWZkokTv+R McI05hmHTgfpoASkrIOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkND-008DpV-0o; Thu, 14 Sep 2023 11:19:03 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNA-008Doa-1J for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:19:01 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-501bd6f7d11so1351815e87.1 for ; Thu, 14 Sep 2023 04:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690338; x=1695295138; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iylS42xIwfKwNaPXWAAIowhde9V6LPMJgFO7eJ5XP8Y=; b=Ri0gGH9ZTDaw93j8zgwnTK7Mqu1jbGIbUgXmIj7dU4YvGJM0c0xu84YXTXr1q9U5vw EDuxlWAYT9VJOoIUr07HMARpdwkvsUYdJJM1qoxzoYTMVt08UlMOi31Lw5er6fAUu0ch PCaiLjMPRqxO6N/gRHJjiZEvbO2i5fUmiowTJTJx8lmqLguP53WfSUyoLemxA3q6P0+z lgSHy7kJi46mpRjXgBQc+6RwNZx46OYF1DXTwiZ85mH9oPOVdS9wR4nlNmLZjldw2Prp 0QRN6dQ8IRH4S+cgZRZZ4G8XW02FdrwXv39RdxRn/E4Y4ckLNr5551bwo7fgoFrMN7Of Mj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690338; x=1695295138; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iylS42xIwfKwNaPXWAAIowhde9V6LPMJgFO7eJ5XP8Y=; b=eU9WNxeinaFvySWlLKqfybWdEqBcOARY0S1mYCnWmIw2+1JGJ0m1RdcqraWnRH9bLL OvBh+Gin78rOcquj358XYP5kl9Rm3/n+x8b0eMFZCxKdmBfL82J0ovrfvEq/bf0u1uRR zDW+WMIQEU9emncF61hp17fLr2Tta8nxWeG0KPhK3Bowt2L9U7JWSH2A0NLOI1bcTYcJ d2by1VdPqSR3A7xjZAN326Gs7XiIxdgKMEOz22I7QqvChudhNG89tBD3M7fWWtBmork1 mCWCKpDJufcrASfhgkeObO60P64MGZHkIeOJVlyUxBWqgGaacg7UAEbqmmJIjJhahhyK sZtA== X-Gm-Message-State: AOJu0YzZiDG6CSSg32fvXBMiNlcU0hH+kGrtpKmuW4FPo5hgH1iE8p/K iQ/I1oa4MHjJHN7IiVCLCA5TAA== X-Google-Smtp-Source: AGHT+IH2zQb2iOtho5IVrl2r1apG7cvFkXqz2DHfQwHHBvuWKPs6io8VlsMrHsY2rYku1hB8rETSoA== X-Received: by 2002:ac2:5b1b:0:b0:501:bc0b:6118 with SMTP id v27-20020ac25b1b000000b00501bc0b6118mr3988441lfn.50.1694690338693; Thu, 14 Sep 2023 04:18:58 -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 v13-20020a056512048d00b00501c6d78f11sm233222lfq.298.2023.09.14.04.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:18:58 -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 12/17] pmdomain: st: Add a Kconfig option for the ux500 power domain Date: Thu, 14 Sep 2023 13:18:55 +0200 Message-Id: <20230914111855.586724-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041900_448186_5B52F5C5 X-CRM114-Status: GOOD ( 15.19 ) 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 Signed-off-by: Ulf Hansson Reviewed-by: Linus Walleij --- 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 1e2c5f531638..cfe9ea754062 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 Thu Sep 14 11:19:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385035 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 C69B1EDE9A4 for ; Thu, 14 Sep 2023 11:19:36 +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: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:In-Reply-To:References: List-Owner; bh=YflL+asSaJrRATl4ZNZbVQ9vGSKri3O5rvlqCiV79hs=; b=tbGzfNj/+gi3fD 9eoEs/4OJFYSwjLxpl0YTEglMypMXwTC7GD/TzsVtHJnlQLExZR139XrvhbAJM/rWZevY3QDwoLpR vgXNSDlM8+vj4o3+u3o4LwriGOp4FvAVS7iheggr/zRGfREEQSyLyzgUKj1L1PjjMkPn4ZclTL/FM nN1aR39FN0upoV1Fk1OR8208nlrUD3HDHGS1r8aGAMmc73BvmN663ZIrpFJKWfG1y7/JNLI2fnOYS aw8OJOVeRj5x6YK5Q5ZK1MYWJkBPTFeei5jts19Pnphlde+lPVfdb/Zrv+I1i/aw1pByo2dE1yolk nFb7tkIqSHurzW69e0Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNK-008DsD-1u; Thu, 14 Sep 2023 11:19:10 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNI-008DrF-2T for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:19:10 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-501bd6f7d11so1352028e87.1 for ; Thu, 14 Sep 2023 04:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690347; x=1695295147; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=re3ccXgEY4PCpIWQZxRpCI/lf6THlIYVapQUmLrOGD0=; b=GmxB4DooYquv1wxImrm0fG1AKjXCrXALeW92rdcQtzbY9Xf8cKAG6t3B4X6wokXP9c BMj9HMcnZUJv8SC1qA94p2rEH/hD2yosTVphlpga0QHvBvqf2rwC3QuRljyOc02V8MUm 9LjtRK2nbUpm0+PPRCqwDJNYH1GVHbVbjYTvFOIhDOuXTH211+UBoIQrJjnBvrjiCD1E UbOzCScoIIWoTW89RvMkQXYWxnuS5FW+clJZrBjaKxlKgq/ZP6R0nM6yCRMLcCcvWQ0d IfczWGOcdEso9hHN4fr3NNgUWzeyP6obsfm1qkhiM1x2+GrvEdMrwQp79eAjlB8KOXUl LiNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690347; x=1695295147; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=re3ccXgEY4PCpIWQZxRpCI/lf6THlIYVapQUmLrOGD0=; b=wHCuq3rc60pqd406j2VKiQw0Ybuu/lcvkn0fPIz4IuXooFmYofJO3ZWnRQ04LCJoNk ribaILw9F0Gv6Ow9SNFEsX8yBPANgk3yyXiGxVVTnYLKvg5b/3qRxnZSQc8q6lLNVH4s 3Z4VCysIamGSos05dSZOpJaeAAckz9h36EYw/H68KsD4/1ysFcqGTGY4+p7scs0nyBP5 7ZE0a+CVn7MSq/jbEecrheQbvTz0Eeq8/yzzLqxf5Gx3tFUSx2kAAU+RyMWvNdyMtjnu EaKNFTWJVPgdJIupPYiay06aI1CYsUxfugIf60Tz6+9fSYnfUJel+WzyEr829i5ayhPL 3Gfw== X-Gm-Message-State: AOJu0Yx15jNXnGcSkBtDlBJyosYEFox8jsKM8qMgzMTYKQakcuyvNLP3 3oHAHFJY7vqMQh2fwyzoitCMKA== X-Google-Smtp-Source: AGHT+IFMIk+ZnIOfvzIXcwK0L67jrQVRTEsaCfy623g2MVHPfq9rLx8+/oZMJ+vnLz8E9Es/1EIlYg== X-Received: by 2002:a05:6512:12d4:b0:500:c5df:1872 with SMTP id p20-20020a05651212d400b00500c5df1872mr4961180lfg.44.1694690347245; Thu, 14 Sep 2023 04:19:07 -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 x5-20020a19f605000000b0050089b26ea1sm230413lfe.276.2023.09.14.04.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:06 -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 13/17] pmdomain: starfive: Move Kconfig file to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:04 +0200 Message-Id: <20230914111904.586744-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041908_803444_49F7CF20 X-CRM114-Status: GOOD ( 11.72 ) 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 Signed-off-by: Ulf Hansson Acked-by: Conor Dooley --- MAINTAINERS | 2 +- drivers/pmdomain/Kconfig | 1 + drivers/{soc => pmdomain}/starfive/Kconfig | 0 drivers/soc/Kconfig | 1 - 4 files changed, 2 insertions(+), 2 deletions(-) rename drivers/{soc => pmdomain}/starfive/Kconfig (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 6b491ebcf790..b8eae18f0fb1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20523,7 +20523,7 @@ 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/ +F: drivers/pmdomain/starfive/ STARFIVE TRNG DRIVER M: Jia Jie Ho diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index cfe9ea754062..67049ebf7265 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 Thu Sep 14 11:19:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385036 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 21AD6EDE9A6 for ; Thu, 14 Sep 2023 11:19:43 +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: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:In-Reply-To:References: List-Owner; bh=cookZHIqy523/V04efr+y1RR5mEcHoqJOay/u3weWBA=; b=hd03W//ZwLFgiv lSdgNPIBfYpr9BlmAZ7xNz+lol9NWPVjcd/2P6Gmiw+z420Jtv+AWPTFatpBUwAIBlI7zKIu/ROvY 9GWmm0nIEepB3oivpxSttX+57IcHG9yGlsOIhfSNv+6x7cdEdVTB8TLslbONNxs3i8PA+k6IWVJVi Kkm9Cf/us9LpeLTj17Btw3kJ9uXorxir4yg0FlBHxQVt6ejbpv5A0xRLwOjUKJSmfHUkptRs6BpbP EPEtXOiTJDtd8PrpBDd6EfqYA4T1n3uTocX0nrwsxfApg7V42UrnblZg2UP/uLbib26LDF1cLv/cm j86LVkvGWkJ5nkrt8mVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNT-008DvL-1F; Thu, 14 Sep 2023 11:19:19 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNQ-008DuG-2L for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:19:18 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-502d9ce31cbso1372452e87.3 for ; Thu, 14 Sep 2023 04:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690355; x=1695295155; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/kiVpD+HqGq1+e/c8vvIDGsaa2qWD6QDzovb4cVyxMw=; b=hy4sUWLgw3FJv0yjF4KARmZ7K31sA8ZcXX6RBz7PxnyYX2mMAs8n9dkh2wNMJ4IgT4 DXpZ9Us1UYTVAKyMRLmZiuQ1XC7LiQu1ZNBHM8PGATzxlQOrtbrpP1N2O7ThVMsKOZjp FZnKG/FSrbiDvxwfRGY1U+v12g+P/aTTkI9U2JsVdsBxAgPGiyVcm5ritCh+k3DkoONC 859lyyJzFGzWSi+CnbG/F1tYj3oVOL6bzsb003JqXE9A8jC1iUyHxlP6pq9c2uI7+7kp 5LM43r8BV4h+lqXeg01zxDBlHIn6JpXR03XFR7LLebBI82SBYcj2oIpBkca5ZdPgtXUo xJgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690355; x=1695295155; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/kiVpD+HqGq1+e/c8vvIDGsaa2qWD6QDzovb4cVyxMw=; b=EHGOh7moZavPt89TobLqVc4wqz7eCQIgkv6Lab6b0QyXet/AfXJiBgk8WxLBrYdCAi cAtz2SQk4BLCZ6qCSRxd7iX6j8exfRUoFVZTwFM2+a292rpVhQlVGuSDXr/jTZjQugzE /QtP4HvQ/U9+oE9Whi9n43YhYf3Lz3uimZpAjSGwI38ogDk+7t0cGEH6Pody8aUdFExN eE9VyigDV/bcDYFucHgG1haRkxF8ewzK+ICRHQk1kjN1Qt7G2WAFhbRe6WOQECjt87nu vn8Zi7rd2eGmP4V2wpvHTh9yZkFCokcKFTsE8Smnib97OmG3Ddk+RniYqmcijUzviyt4 TmDw== X-Gm-Message-State: AOJu0YwBlYgmskJgNcoKcZlMoOMJzeg2BnTi8vxJBY4wtfSwwWTnxL88 DilFrphhesk0ekZi+9/jKX4ISQ== X-Google-Smtp-Source: AGHT+IFqkXKsu67+BKk6H70B+cKDioBZ+IuAUNUhmOS/mLfep1SUOlJkgAmyyCuS8EBH4ZwvZ6equA== X-Received: by 2002:a05:6512:3c93:b0:500:c3d1:4d60 with SMTP id h19-20020a0565123c9300b00500c3d14d60mr5381224lfv.24.1694690355165; Thu, 14 Sep 2023 04:19:15 -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 c5-20020a197605000000b004edc72be17csm236671lff.2.2023.09.14.04.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:14 -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 14/17] pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:12 +0200 Message-Id: <20230914111912.586764-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041916_760119_04319523 X-CRM114-Status: GOOD ( 15.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 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: Signed-off-by: Ulf Hansson Acked-by: Jernej Skrabec --- 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 67049ebf7265..39f358f27f2e 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 Thu Sep 14 11:19:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385037 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 C4105EDE9A6 for ; Thu, 14 Sep 2023 11:19:53 +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: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:In-Reply-To:References: List-Owner; bh=onF4LbtvskqNHt8YL5EwZDoys5LqDkkJkzfGC0rM8jk=; b=l+/QElo8zjNt1l O21S+W5oam7pff+g7bMViqZqGlNcagEe9jdzdqWv1zytM546V2cm9gkW6ldNJ5nAmSRBfFijYOGP/ BdrdUTceOQfYg11Vh/Y+vffR3GDJCFFmK2wkyp7QAbQZCs0dhqvKgHi4RKp/yHf1emhecTYVJ4cSB Zc29TLXVDD4/i8U1z6fXTIeC6Zp45Nn80tiou86wx9XIkIt5+Onks1O7Al6/AALARzgIr6Hxi0Roz rI3FxM8gZ6a03rXdx/phr3DUnoBpfRoFWVPPEXmLWp44IwL0XZ0ayYWdqahw0jo3u/XTa1M/MeEgg PFhZoy+YjT+QFgl3OtvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNb-008DyZ-0M; Thu, 14 Sep 2023 11:19:27 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNY-008DxM-12 for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:19:25 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-5009d4a4897so1465672e87.0 for ; Thu, 14 Sep 2023 04:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690363; x=1695295163; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MVq5zLi24ZjH2OBzcFU65XomWHmUtYcghlhLwRhU2bo=; b=wBsMO25hO+pCwo99syg5HxpQmfxNOcM67K0KZjCBPGh/OJIz7LNtF5YFAnvw/64Zps 0FVza8cGjPHzTdHitmn4qc5BqyKMGiePL3jZHSvmdwNiw9SmfLl5oM4fDYJpBHk196SH KjTwnqqmULOxbR4zVmx1PBZcGRz/sdFXzmAVNDLQOzod6dX4ehb+AKyMe8dNtBFqMMJg nwXwfE0xiyZP0UZxK2AqDmKx/e2HbU/ysEHtNKY8u2DL+TEc65kN3CjzdMJRMz5yj/fz jiTGoslyc9bUeT8jPkz5JsdRymstxQcRAIV6ghfBcQFgodhIdBxGu0aLp8OzXbGXbzDW E6JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690363; x=1695295163; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MVq5zLi24ZjH2OBzcFU65XomWHmUtYcghlhLwRhU2bo=; b=lKsq9ADTTEvSSmIwh+BXC4zQcczbVgXqCVFOx3m/4WokgD1vRKqfpNbTZS9xbYSIbh pQTu3TBEF8AKZgdI2fAcDiJbP356LG8nB57EFBbHj/+2iRPjWOsneQ3ZlU5GBgw6vOKo dx+c89+KD4S2ZP3umtlgVYKgGyj/tdfkmujf1MsEpgbCLTnUGJyjLyNj4bNBeEJ2z3jL LvbbURcBHUk5QoFFQWzwGlFE0bml2fWPU6jMXZHo1GVdI98ABttEH1X4BJgwXdj9FJ/p tKDPmEtxEilR0kkbXn+Ngq2MGH/aEaK2trJ7SsboRT0Fk7e79PQUTJfn7IUZbqNlTrvd RFFA== X-Gm-Message-State: AOJu0YxCl/vZuoTTuDhyV/uAwubCYALNVLe3v2+mRoLeLBMfQ0ti3JVU iB20YmGDvyBWcaheDlrxJbyX6Q== X-Google-Smtp-Source: AGHT+IEKoLQ14tXcZedXg+7ur2HyspF1KFVJqKExrXMlRMnh2zk12sEOw6eQcPmi901vqUO7zuS5Qw== X-Received: by 2002:ac2:4c54:0:b0:500:7e70:ddf5 with SMTP id o20-20020ac24c54000000b005007e70ddf5mr5312397lfk.43.1694690362925; Thu, 14 Sep 2023 04:19: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 p14-20020ac246ce000000b004fdc0e37ecfsm232938lfo.227.2023.09.14.04.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19: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, Thierry Reding , Jonathan Hunter , Mikko Perttunen , linux-tegra@vger.kernel.org Subject: [PATCH 15/17] pmdomain: tegra: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:19 +0200 Message-Id: <20230914111919.586784-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041924_358105_A3DC15E2 X-CRM114-Status: GOOD ( 14.10 ) 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 39f358f27f2e..08a7d43cb884 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 Thu Sep 14 11:19:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385038 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 AD291EDE9A7 for ; Thu, 14 Sep 2023 11:20: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: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:In-Reply-To:References: List-Owner; bh=FAonE1n0KBCvnTfNSoLZSeWdwpJVMRpt0LChpKtEo/Q=; b=cS0e+ApVUHUyk7 SKrlqHhFfrUw/wY5gHvTL6vMgl2j6jhs12fXPPwdUGkDAaCcsG4L+2efe8T7Qd4HWbRhX/Yv9B3Qh hsqLeV/jhwj3WTYKtKskO5wpnBfWJ8DxRYD96IMLiE1si+fQf+VSzLmlmS0nSoL2sKHSA6H4uGUu0 bPZ41/C3CaBgj7VRRWoypcNgsuLBZJ7FRHgLQLGOccHcTOEc9aAXCAjeL4f5P5rFCn/kggiOsdaqb trouWGxNI0zpr/BE9Ea/hV0P7Q1gWPVhhvXt+uj4ROcriJOWEBjzSXTXMtFLFLYM/acpTBxeQAFsH uAMVEIC5M4uyWzCtjuTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNk-008E2q-37; Thu, 14 Sep 2023 11:19:36 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNi-008E0J-13 for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:19:36 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-502a4f33440so1389787e87.1 for ; Thu, 14 Sep 2023 04:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690371; x=1695295171; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3KM4mPZd+qqdQiD2rn9oFHhMiK2AO9uYvTlNg8D3ph0=; b=pEzPnaaueOh7EkzntUhbzqg0GTNJOVuqP4jmcBukpRJhg/vHIVx520JJAJIAA8CQE6 AiiWfHQPnMCAK1/TNIU3X7Ek3GRLFrqUDkiZtvmAaiqJE5zKBbR+97D9FaMBl2yOFvIr 5/M/vk11Jz614ki41yeTnZ3IbGR4j3QXEp5xFuHkiMtfktUqkUn/pKG+QJcYx+nBePwE 8YI/HEgmRZnujy4+b0WRS3B7uBl+344bFn8y+w8mz0PqnlPUJJoPfITB60s/6U/0OYzO 1RN8xqx7IFKdci9Y6LyuvHZGqjaj0+brAGqrE/Q7dMobfOaJoAeWG0HjQ34CyMkNqWKF B3nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690371; x=1695295171; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3KM4mPZd+qqdQiD2rn9oFHhMiK2AO9uYvTlNg8D3ph0=; b=fHilFGDw4ysiwwHVvB++DO7VLcZi9uniVkddlUWVdUTnlOVUgi+P05st68Rk8xrjPl hRYQhWIATnVhAt/1I+eKU/qw8PuafAInUCQI/jA6EuCEqr+jviFaev1PnESWY9B2nFn+ /IH0p5w/q5DUoRfEKta1mDnSMwgKmhndBIuxcsKE30PGtsQNvBp4MlvoWIaBqc/qgVxq HHDNBbOyA4Qy/k+GhV3lujCyN4wEkqirHBbKsOreRmX2Mrqf7ToQte8qMEBDcFz9DPYd YyFAhCqptOBgy8Frl1QbFWkCjR2USCbesf4X1yBHVW6eOWKqoN+Uo92lgwTGzeLaKXTe 1pgA== X-Gm-Message-State: AOJu0YwEL75TCs+24ygm5GV5esKAmIU7yNdk/lDWH0Zc5JQzOeZ0wpzq o7f4zLi50aSexAL8MJ79BIXbrQ== X-Google-Smtp-Source: AGHT+IECqMBho28Duuu16/mg7efrXmaic13mRC0RWXhvTwikNjeVVVzG7pitDe8XRgpx3IGrnF79yA== X-Received: by 2002:a05:6512:e83:b0:4fd:faf0:6591 with SMTP id bi3-20020a0565120e8300b004fdfaf06591mr5084981lfb.10.1694690371089; Thu, 14 Sep 2023 04:19: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 u19-20020ac25193000000b004fe5688b5dcsm233315lfi.150.2023.09.14.04.19.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19: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 16/17] pmdomain: ti: Move and add Kconfig options to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:28 +0200 Message-Id: <20230914111928.586804-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041934_372638_18B449EF X-CRM114-Status: GOOD ( 17.89 ) 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 --- 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 08a7d43cb884..785d177b0ad7 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 Thu Sep 14 11:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13385039 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 97BE7EDE9A5 for ; Thu, 14 Sep 2023 11:20:13 +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: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:In-Reply-To:References: List-Owner; bh=O2T9to/wgu5yzDLhzBWmoXr8/m+9ZuGPe5ipiJxgVIQ=; b=f1GE1eH0UrZ1mM SQMxtZISKEFLC8ERfXZoMQHmOn69cAWEcHnDWac73IWGjcD1rxJjuWo0OG0pJj3YRRKVJTyjSYFlA yEbwBcj06gsHRNbEqr+AiJyPYKiJP2EJlU/VKtNy6iGmn0jo6kzMj6WPUeS2C9QWDbVUM6nSwy7u2 2KJrvVsWBx/zsKu4L7OmiVvsyn03WVCGzN4kG1xKwKTBGsO6K+AMi2jfdPbhgnxzghGOFbDunnd4X Q8Mjji2/PlwIZEtn0dm3pzMTM5sX0+rLMB0o+59fn+RByQy0SuKDhKeCd58VuMC6gUF2gfsQM6/Wb EHVC/Lor5e71kLjWx+6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgkNu-008E7X-1U; Thu, 14 Sep 2023 11:19: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 1qgkNq-008E4A-2K for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 11:19:44 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bf5bf33bcdso13406411fa.0 for ; Thu, 14 Sep 2023 04:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690379; x=1695295179; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; b=DP/8SBDlIaJpsKHZHe1U92z602VBya+zp3B/nErMkgCzO+ql8EW/QaI9qe47M5aFik P0rwPPufOsyujnwzKCMD3mdyE/gr94b/JGAcE1ShrAQ2xXyF55ilXDO8eqjt89/4It3G NfhuvNeZbfG7YIX8l/smk+rf1SLQgMW01Y8CjtQ7c8vjeo+1eRhI5f4vTWaVLnBYniOT tEXgfp7kR7wEDSOwN8IFzVIW3nPHPvh4Bjhf88lFyg0Lrmzr0kVuWwZQRgqJhszqoNWc YYdBDFhWBBRx4hDmYeI/V7p4roKJv4eYpmFEa5wKALFdj8Sfdz26XGZLs7HGpY0S6DgN Ga7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690379; x=1695295179; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; b=bkBPuOH3gnXXY5KFblokofBlhqMIKVrmxMSyHu8owwLQJqqk2WDbAEljpiCEOPcdBt SCsKOok/E6ZD/cvL9xfOwVNBoTR1euiRwM681b3qlFDR+zHaeKB/Z0Nnsbcy3uwEC9pw DIZ0r7VFDdLs9BOKPqocgZKBIrZEsBTi8r36jP8ByBL8xfqCcBYguXDzkZCs38S15zIv as2Q/B3CAglk+dtZX8DQefIYl1DUuRkT8/ZPw44+kVENBE16RTLDtrkZDxqpnIICTKyh DDBvuYm5bSmtPyiZgNUAPNbUdygSqxRnHrhx7wOiAkAwB9GIRKdrcU4VqWL+6y/y2d6c xYuw== X-Gm-Message-State: AOJu0Yw025EFbg+8d0D9I4vxmREDF2F4xgpDKlbR64poArm2PQADHx35 E7ME+82oFa7fO+3E2z1pD+zVBQ== X-Google-Smtp-Source: AGHT+IE3SErW6Lewr5rbpUuacMhs7ikzrG/xi+QG4UxR8L4l4rUK7dvv+mXMyalbYMVAoJaNPiKf7Q== X-Received: by 2002:a2e:9154:0:b0:2bc:efa4:2c32 with SMTP id q20-20020a2e9154000000b002bcefa42c32mr4690301ljg.37.1694690378945; Thu, 14 Sep 2023 04:19:38 -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 y15-20020a2e978f000000b002bce38190a3sm237679lji.34.2023.09.14.04.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:38 -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 17/17] pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:36 +0200 Message-Id: <20230914111936.586824-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_041942_767162_3399E959 X-CRM114-Status: GOOD ( 13.40 ) 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 785d177b0ad7..dca0899cd210 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