Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3905547rdb; Thu, 14 Sep 2023 06:26:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGn1dQ3dHXW+yGz2X+RNvr8pqd0Q75Pg0sYhGT7lxlBgX7YCMZ32gjST2+tiSkIWZG9J5Ur X-Received: by 2002:a05:6359:5e9e:b0:142:fba8:dcfe with SMTP id px30-20020a0563595e9e00b00142fba8dcfemr581554rwb.16.1694697994311; Thu, 14 Sep 2023 06:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694697994; cv=none; d=google.com; s=arc-20160816; b=LcxjblobXSOd0CKHjO6VUCTar7NpUo6CvYBqJEi5D3OhAN8FxAs3XETE3UdopkxPTQ vKFrdWhz6qgMUzuLSCU5K60wmJaSmQXkc5NN9VFJugG2zucto0D6mqu0uEv+4r9opOKE /dFum+sZx+12OHw4Ize4k5B26DLfhzmyKfjGba+KQoO6z8/DHPZqmnRizf8WtY5Teain ocfLTZdl+VJlaUcBExk3jYLXgSAfa1mTJr8gWjpH/CEwKfPSI9OdUXbljymHlQhpyiGo VbMcKcOvSLfXNqHUKF1ZdEyFfPwVkCrMYgVkrHUNiUq/D7SwLpxEsZX+p+7FFYfUdcoE m22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FEe0O9FNWF0PRk2EeQvO8Dbf6wLGmNuQMW1XScp3I4I=; fh=pGbpOwOaqvRJoQd1c+ErqzieZ2VAvtKm0ytk/IeCF2Y=; b=ktpFPsw/61oxCOHrHf23IP5CVw+45pPqlH0IbWsE6tcaB4qOXYfYxD6PAKRoVEMaoS +mIRiZj28vuJKGHhRYSB6AlxTq5XNu7Xvxrr547EE5BM84jFKBILWdCQaNipYC8qr4gg rhBT5I8agY5bCHG6BLP02xyIYj+SntBGWs9cEcAwhaqcO+dvjPUS4D1H5QBPWIkuyhH6 wrQM8le6a2zOq6DgKfBIIzlg+gHR9kZtsfJK/T7IdtntRG4dUD5RHCfdyD6FaUXXEvQ9 SxlRe1oygFH1EJ53BAPjwb0ZjuejOcOgNUAMSqxKRAJ/GJTfeQKhcnihFn0BIRZHXCRD 4ibA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rpAyaVGo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bs8-20020a632808000000b00578086eb5e9si630320pgb.97.2023.09.14.06.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rpAyaVGo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 37D4381F966F; Thu, 14 Sep 2023 04:17:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237120AbjINLRz (ORCPT + 99 others); Thu, 14 Sep 2023 07:17:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237576AbjINLRs (ORCPT ); Thu, 14 Sep 2023 07:17:48 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0CCB2111 for ; Thu, 14 Sep 2023 04:17:36 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b962c226ceso12347671fa.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=vger.kernel.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=rpAyaVGodUaz2/bGnt6kIKtrWgpC2AGCyh3ku0tzkccjJtLq659+/+B5u91rxbTx6B ufjuGzoRpaNLNBZdScqnxeOxbTis3oHh8oRqy+1iOaJslLWTjv2ut4TDVUeUradUEBQw IgdubF4ZYEgXQmt1GwVbKQlvE2B7Y8/6OvP1wCH4FHeovCuqqdcoqX2oQeAUjGaZOGvO o4GmUDfO9XArDOOIBIvvXAMLGk6XJ0AtZXVoW+uvkOLtBVNldVOfpLWDW/F+x4XtfW93 PA+4l09bjgZdWABTSPlwmAHlt7HqtjQkP3w9NU0QsBEpRlwCTlJ/BDvrBQPsIMqhjqqF dqLw== 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=IJBDgsp8bqNTOgJrAOO+sKWMStTWES/emnZpQHM+GMWc6j0YheHqyucuJOtuscb/oo 0y2RZON8pgnvjKQKA7EvuYInjMrm7XIKOAm4EiiByeIl+IOuqXOJq4eJ1CnKPYftYGbW VG86HSEDxUV26p2xFv05JcDXfX10cs5YX8F2bXgbBY54Fn+Z93zF+DhYj+BRHwqjUt7m 7wOx45jRKVUEDiFtexiJiYJz/PflcqHAlC12Yf3WJ2on61tfC3qewPuW8TvANPH8cvmP Q0gaMWJteIiydZhwMtEM6PvwObdsEwG1CrsYTCdz81mgLJfozEokaISHYEJQW+1EdL/r hdyw== X-Gm-Message-State: AOJu0YyTJampVZkMvWmPvL2N5PCHNvS50o4/QuVHFYqoTvzM8cldLMID pFyJW1+1X39ojY8IeD1reukdWw== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:17:58 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 --- 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 -- 2.34.1