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: 723456 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22CB8EDE9A4 for ; Thu, 14 Sep 2023 11:19:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjINLTX (ORCPT ); Thu, 14 Sep 2023 07:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237440AbjINLTW (ORCPT ); Thu, 14 Sep 2023 07:19:22 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7497E1FDE for ; Thu, 14 Sep 2023 04:19:16 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-501bd7711e8so1382627e87.1 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=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=/kiVpD+HqGq1+e/c8vvIDGsaa2qWD6QDzovb4cVyxMw=; b=cUZMz+CTOEsrdBDAsEjVLxnSVZkBODraJGmOXdSUtIRrTY4zr7ivH6Nf8bJmAA2h5b rJwmjLTWMKcDYfEQ5w1ln2LVZUxDnTVgRFjy0zp7HoPrY+1j3CssxZ1ViLPOVv6H7Wuj psQmZQphOFtnwkR0K+107pjUMGg1S1qwFU/8ykkkNFY2CWdtEH0Re1Jkj5TEI7H+UCNz el63Ow86/TxiY3lHyikrO9L7RoTfFZ19SIOy/Or2DQfbkYsV0Euoj9kX8WZhx4eYLSV+ q5vDU+jqrTdqiNpU+EXiXIs1ZNkaxuPkxXOizi+buABFiSFiT2b2KDlHbkGkm3MnVWfm 0S1Q== 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=KQO9alLiiegKLjbolodweoPYVzAcq5ok2cVqPwdn4Nlrrarzj8cuwvqHkFKzxWa35U QBf8I0cVtxk6EnbiDEOG7rbjYe1A8LsGIQDcU4xCyGdLTAkDqEgbANXzRwXuooK2L7M5 w+uoY3sngl+J75LSF6NgF67PVaN5o+MHk/hpYA8GNDPauHxVXRgc1DzIMrQEmI1PHe+7 bi8GUwYHD4et2DsJ+3J4UeMhG4Rat5PZdXlsipjXLWeZzQbb19Sv5tVC0DyuS9FINTvk mlpb0lKYaMEI1C7SQEyvkLKQ6lAlvmZRnpIWXPRvkaNMI+h3ILkPgCPGXhYk6yZE9BfT ZcMA== X-Gm-Message-State: AOJu0Yx4CKZgrGEgQ3iTNQ/IA5txt5Q+C32trFBfE38mjaqARZa4UuXU G27NNGod3fUP9sDhioL4krNcIA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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 --- 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.