From patchwork Fri Sep 15 09:20:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 723858 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 C131CEE6450 for ; Fri, 15 Sep 2023 09:22:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233562AbjIOJWG (ORCPT ); Fri, 15 Sep 2023 05:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233700AbjIOJVx (ORCPT ); Fri, 15 Sep 2023 05:21:53 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9172102 for ; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bfc5218dd8so29978501fa.2 for ; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769689; x=1695374489; 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=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; b=IJjT8vy3KXgaSwnc25Fw68yp7QjBX057yNx20TPUc795dnKZqyInQQwtiOwA92nT/o SYn70PksHZaQXe48doWAuOXXHzL+0HbCURjIijRXB1MIvN2mVRMo336eN9orF0Cd2M/d Wjsp6Oaw+vxixUNeoTkwexOSIfIHGH/emXKN5MCXrrnqDx+iVGAKQPmFumsjEX+A5Tq2 RzchKReROrHYzXcfR2eHA22Scj3VSczY+Wnay3aBEA9BY0eJAXakDC1C6XJvxAJ5yl4F nQUpZhwtOvoXlZk+zzc2LExwQWZHpQlrD/UXwc4Z3M1v9EMDtdFabvYg0t43ACgIMnBp LpDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769689; x=1695374489; 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=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; b=leoWqPb9Uc5zKNEchukgMdvPKWmPUZIN1LgOAG16kLpbUrVF7lzyQoAEvnAdH2DYXj dLp2clpdgE0UVaLvDtuq8/fuFljSmI76bKcXpkAYDOqjzaj2uVlDKl4J+R4m6AL/N5rf 0VvbjuuVlsxNCuvHJp/Aw9b1MooI93qdjbtqyxy0TKzaCRrnt7BnKhOY2FNNW8ZNJKUS IhSliWiupdHiQzlCOW1TwBFvUf41o+Tf1U0Drmu/aWVHEYBSc+V3TlEk0ydEmQn+mE1l g9aT8Pk7OP9u8Pbi6VIKuugK6Q0uMXgb52WVHd8DEmZbm/Ou6o81HZjuk08ed0nW+SG7 1MIA== X-Gm-Message-State: AOJu0YwxN0N9pol0W2lCwDK8aa2lpQrznXly5hBAhl5YGimFgWDzmyYb FRWIgdLGAlyHIlObMO7Q+lx0sg== X-Google-Smtp-Source: AGHT+IEVb+rybmAw/IHW2BTXH8tfpMjLEmySPO9nsUGKFLlub7WqeGnWblxKCQk1yld1rt/N2pe2jA== X-Received: by 2002:a2e:93c2:0:b0:2bc:da4a:4649 with SMTP id p2-20020a2e93c2000000b002bcda4a4649mr1078194ljh.22.1694769689024; Fri, 15 Sep 2023 02:21:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:28 -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 v2 14/17] pmdomain: sunxi: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:00 +0200 Message-Id: <20230915092003.658361-15-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 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: Acked-by: Jernej Skrabec 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 2286c36076db..10c3bc2e2444 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.