From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 539D5EE644D for ; Fri, 15 Sep 2023 09:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Dj13Gm4fXlEfB95O8J8NYlMpiNFU+2mATwxlrkwvtHo=; b=ogSnwWPzSOHhJY kKG6oCzRFDWVSJbV0rO5HOzSyvxETYay3x7Njz3j0SD4s8E1UT0soO8DWBRwgs8KQoFRO7667aHO5 Yw3jZG5hIrPau5qsTu03/Tfi0LNdQEZdXVV+V6y93oFveqit9sv0h7XTGPuO9Pwd/qpO+qCkoaD4/ F2fBfAMMb553yPrQAwVFv8bFZQ6+cLKso7a6T96ObhyNumiy9nqZ+BD1IKd5nWGopto0KJoHrKXcc /YBNjbOR78oRrnU2q1b4LQ9ndRQ1EyV+ukpZqfLE1CmXfLyU15rCLZx6lhvLQ3R5XxP9N0pFSYm8w egpk/c0CqLOna81Cieeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50y-00AFpI-1d; Fri, 15 Sep 2023 09:21:28 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50s-00AFhd-23 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:24 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b962c226ceso30023611fa.3 for ; Fri, 15 Sep 2023 02:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769681; x=1695374481; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; b=I+qdzateCT5BYCO66/Pd/CpLy9kvBFKJ2vEFPW3v2G/sVYG7YQyDI9up6WSW0aK0/b k1mRuk4FOFuz3JEbCbwOxWSJSBr30k1Sp0Gk7nBKGtNrBlKdbAnc2G1Amq0mg3NPv5xx qY4TWCh0ZAQnMV0XqbEonqK7sFV8aylCJmPIvvgJRV2srMtiFOKhKD43knn1G3egZaBd pigmyOBCthD2H8XpVUWusuAdsktR9AjP6ygj4Vwkbc4TFsHe1zZZpGVKVppVs65E7mkn KrkcOQLMAeus3rpwHIo7W8C9BKsXn8Hv4L5cObZ7bHCgK13/yo5DONBeX1xSACEQUenx g0OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769681; x=1695374481; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; b=hMoD8bhsVPUxBnWwh1iXsIBnNnemMG3tbWH+h1BI2tkjoQkvk9iW6qQVrzOLGOBz5A yaI/D00wc7aPxt55vDRfLRdjuyq3w+aG7z183fpdFFhx3wNr8jjhrIxz72Ak5wGXPCSv K1mjBMB9NV68uhWHuybzHLuWXKFzGzXCFbFve81wloKHaFv1GVQeXqzEF8VJn4Tg3Y+Y nzQie2wE79XLWXP74Bdjfyx+Hw+mIsjQJsbuDal2TEoh62CCmHWmKXnH7YH89mPh18E6 8MCwbEqhajtfHe7uUmjaTEAxuBIBM5dQv75Hom7JUgiJ8Nb+xp1aGV/6a3BNt/0+zRHe Hryw== X-Gm-Message-State: AOJu0YxO67meST0ALLBxGNqg364BFz4bh3LNZkFoSFNjJ/J1heyrKyhv /nG/6uEq55QUWX7dJGIfPA8Ozg== X-Google-Smtp-Source: AGHT+IHXR2CQ7Hv88Rx2+B5/Du0EO5B0lQBAb20t9J+UIEwpeQW6vZcWCwAfDkQD/PfD2zXRvkmw0A== X-Received: by 2002:a2e:880c:0:b0:2b6:cf64:7a8e with SMTP id x12-20020a2e880c000000b002b6cf647a8emr1038527ljh.19.1694769681271; Fri, 15 Sep 2023 02:21:21 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:20 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shawn Guo , Sascha Hauer , Fabio Estevam , Peng Fan , kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v2 06/17] pmdomain: imx: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:52 +0200 Message-Id: <20230915092003.658361-7-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022122_681661_57F9568A X-CRM114-Status: GOOD ( 17.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- drivers/firmware/imx/Kconfig | 6 ------ drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/imx/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/soc/imx/Kconfig | 19 ------------------- 4 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 drivers/pmdomain/imx/Kconfig diff --git a/drivers/firmware/imx/Kconfig b/drivers/firmware/imx/Kconfig index c027d99f2a59..183613f82a11 100644 --- a/drivers/firmware/imx/Kconfig +++ b/drivers/firmware/imx/Kconfig @@ -22,9 +22,3 @@ config IMX_SCU This driver manages the IPC interface between host CPU and the SCU firmware running on M4. - -config IMX_SCU_PD - bool "IMX SCU Power Domain driver" - depends on IMX_SCU - help - The System Controller Firmware (SCFW) based power domain driver. diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index ddc05d6af100..e2c85f20a0c3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -5,5 +5,6 @@ source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" +source "drivers/pmdomain/imx/Kconfig" endmenu diff --git a/drivers/pmdomain/imx/Kconfig b/drivers/pmdomain/imx/Kconfig new file mode 100644 index 000000000000..00203615c65e --- /dev/null +++ b/drivers/pmdomain/imx/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only +menu "i.MX PM Domains" + +config IMX_GPCV2_PM_DOMAINS + bool "i.MX GPCv2 PM domains" + depends on ARCH_MXC || (COMPILE_TEST && OF) + depends on PM + select PM_GENERIC_DOMAINS + select REGMAP_MMIO + default y if SOC_IMX7D + +config IMX8M_BLK_CTRL + bool + default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS + depends on PM_GENERIC_DOMAINS + depends on COMMON_CLK + +config IMX9_BLK_CTRL + bool + default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS + depends on PM_GENERIC_DOMAINS + +config IMX_SCU_PD + bool "IMX SCU Power Domain driver" + depends on IMX_SCU + help + The System Controller Firmware (SCFW) based power domain driver. + +endmenu diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig index 76a4593baf0a..2a90ddd20104 100644 --- a/drivers/soc/imx/Kconfig +++ b/drivers/soc/imx/Kconfig @@ -1,14 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only menu "i.MX SoC drivers" -config IMX_GPCV2_PM_DOMAINS - bool "i.MX GPCv2 PM domains" - depends on ARCH_MXC || (COMPILE_TEST && OF) - depends on PM - select PM_GENERIC_DOMAINS - select REGMAP_MMIO - default y if SOC_IMX7D - config SOC_IMX8M tristate "i.MX8M SoC family support" depends on ARCH_MXC || COMPILE_TEST @@ -28,15 +20,4 @@ config SOC_IMX9 help If you say yes here, you get support for the NXP i.MX9 family -config IMX8M_BLK_CTRL - bool - default SOC_IMX8M && IMX_GPCV2_PM_DOMAINS - depends on PM_GENERIC_DOMAINS - depends on COMMON_CLK - -config IMX9_BLK_CTRL - bool - default SOC_IMX9 && IMX_GPCV2_PM_DOMAINS - depends on PM_GENERIC_DOMAINS - endmenu -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel