Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4724826rdb; Fri, 15 Sep 2023 10:16:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi2WvkrEdLjLb60p7y2MOy4/s4ZXe5BaNTrPW0Kq7xxEA7T4c01JPF5K1dNnLodE3zZkCl X-Received: by 2002:a17:90b:18a:b0:26d:14cd:fb1a with SMTP id t10-20020a17090b018a00b0026d14cdfb1amr2312654pjs.23.1694798205714; Fri, 15 Sep 2023 10:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694798205; cv=none; d=google.com; s=arc-20160816; b=cLTZRq56JxebRshrb8oPNBe8WDvMNIh8Jz7quvA9Loe+it0vNHRIXBjPy9qlQqscfG t50fPZ/NtXfSqAHWO+o0jbqB6WGaL/jXPs8q5B92kVRrEWQJqwubddR9LvbwMxwqYmno 8vm6FarHBNTHgI+QVhlDSyvx69n6Fn2WfVDd/RjXEtx7NZVGugusL+vSeQ/buPiQX18n icNWt5r2g3kNXlIeY9vWoHmFhTCz1mUZXs5jC4V0Rv4rYO5s481URXzBx6aA1ufjuGyo TCMTgjGeV7Zw767wETZVXJv4GkynfaVClxz3KJJ0FnWVhbObPrQLoA3XsoUPGKrMIQnz IS/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZuAjnu1aml6mLrGf4NjQSS9NQOpzPUDHjaWJhb6ElQI=; fh=pGbpOwOaqvRJoQd1c+ErqzieZ2VAvtKm0ytk/IeCF2Y=; b=js1K5g5TE84TNtRcDIz6ZQs1eymFp38U5K1GcO3Jx18/Zp2Yz2X59fAp/toOSxal9N c7pN1mWbxXUFaqNyragf8D/0+dwKYLP72fLgXk+DU4KuKByqnMO8JBfxAOwSh2V+vGhW atKxE6Mn1FH7bzpAEga9r8c4roKB2KUSIaiRU6KJx6wa7HNnSPn2y8EJju5edU9E8+ke 5RZ0bnI+HjExqxoq/fZh6WhOtJe9YhjqFZlsjaP9Dz2n1stBFrfvTPOHhyHcy8JgMbsN 98QLNg/cygKQwedCblmpyTNLNtIXA0/EuQnNKxJCJV3lp5Bd9l0BsD3aovsdNzp/nH74 WsTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s5TADoJZ; 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 pf6-20020a17090b1d8600b00263cfc9753csi6284357pjb.5.2023.09.15.10.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 10:16:45 -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=s5TADoJZ; 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 6C7C08294F69; Fri, 15 Sep 2023 02:21:52 -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 S233642AbjIOJVq (ORCPT + 99 others); Fri, 15 Sep 2023 05:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbjIOJVi (ORCPT ); Fri, 15 Sep 2023 05:21:38 -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 09E1D2709 for ; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bfc5218dd8so29976921fa.2 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=vger.kernel.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=s5TADoJZjIV1YQ5UMnw5KulHyneootBKndBYX6dx7y3ZX0ISe79Rt5vhPvcKEkEKET qTSHM6wY+pZOb7qdk4IEOuM6l+XggqfUu7f8m1EY02lXEUK5JEA9xarFhSsryARliEZz En6YLln0u0sOMD3Fm9ofTQIB+hpQL93cXH+CQ2PSotPpupBqdLj1RrIbWFJ+oPaSBYua se6eX/p4t4dF1F6IBuZJYGvle/1mgObf9W9Z378i0lp2VagfSF1gT+ZOVwkR6tR9PwpC mikAlJd0IElNb/NIbpgxGRpPwY/BgJrM3rVcnU5kYBbbhp6xMGVYW3Lr/Jr/vArBwIR3 6S/g== 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=SpAesNqq2HW1B00C0XZxOaidvVdPsO+GVCzj7Kunra/TcpvtEevKnk7dZ9SSKfCwpD i6X825tuLN91gr+KyFWhMjQ5v15x20C2Vns4B3OPES3xkRupPaSJ1gLWVwvLzI61UkvA oPIfB3A+M8aBEFP6i4rQSaOnnOoqjoAGXic+s14/5oQJ+DD3e4INJf+fBjTVKifkoAWM /nUSiKusJas76BhhtyL75b15JYkyh46+j+AtVCklgbrfaYzGzt/GF7AatUDgSfPbtEhe OyXIkaaRhNQIouEsng3YsdOf7yq9tt7zUfIbHdStwtsSirDLXzWS6t2pZMps6EFofv2T bsJw== X-Gm-Message-State: AOJu0YwHYSWj5xqltU2AZEuAeLfdtcpeeA06FDfA7Vo+DPXlM2Xba04o mGx1YRuq92A7UIOHkQCvmYcfsg== 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 Content-Transfer-Encoding: 8bit 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 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]); Fri, 15 Sep 2023 02:21:52 -0700 (PDT) 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