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