Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4587241rdb; Fri, 15 Sep 2023 06:49:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRYhjCpc9SEpEv9MtILZ01pjBN4y9ydbUmK43Lo/+wFi4t2k89jaBgFN3WtApp4R6zPpYF X-Received: by 2002:a05:6a20:4423:b0:153:353e:5e39 with SMTP id ce35-20020a056a20442300b00153353e5e39mr2138693pzb.51.1694785774782; Fri, 15 Sep 2023 06:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694785774; cv=none; d=google.com; s=arc-20160816; b=Kr/LRoTlb/uupaoB1ARtYFMB0Qy0mOKp3G7Zkm+xyqyiq2nZXUqdB/JQJO4TUwaBHs 0hF/5Fa07SV/opu57i6+RwgnE3Cl89qkY6JutqMH+chCDG4mAdHQJn6BffqblRQdNbuV QtmenD+JR+//z26qS0HAGunzP+uD33xiIZbDFsW9GoF2SLeVtUsbA5liky+IWN//24sr oIF4bbX5h7eaqOuuT8b/yFT9fvuMTB18ZfQW60y69S0W1fUX0NENPNSoazV/vyGADLwr Mkap4V6McyL42AmHKHwUQCfXTo0i/Cg/PnrLsqrEVwQO9J+LX/f6EymQvS6r6aZ8+35z W9bw== 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=JuZx/GEW25gG646YvVI9ekfBTZl9JZLAF7Xs48rC/qQ=; fh=/blnZJxpzNbklTtQJCs427MFzfqwcZZF6y48ekqzT14=; b=PWSaorvAujfLNp7y+tOSWk0MUdHz8hUZo2NglPhK77EvlQxwM5v6AU7jbRtJNcY/5k 4jIIFPPYQoPlCKvVPKA1PCZb5W6fqgMZ/P3DU5bvzABy6KpNpRXZuilyJhmsNiLbdwvf YqsfzNlu/xBlRrcqxx7v1wG/rr8Li4/X/7v5j/ljNtuLrzUMj5nc7DkVz4VTdJTcZ8Kq juydEyr95asaqL8rLkQ+x18TWahVTWdBhT1ljiFFtm7pyk+79U2UBQnS9qxozh9ArmPX LXNTlLcpnNg9MZ4YjT5ZeVL26lAUpv9YxE5V0IqcvkFEXE4DxLnQydMtjLoGCiGvGaLl Uy5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJjT8vy3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v127-20020a632f85000000b0055c8d58cee9si3141408pgv.714.2023.09.15.06.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 06:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJjT8vy3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 8D49384DC461; Fri, 15 Sep 2023 02:22:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233804AbjIOJWU (ORCPT + 99 others); Fri, 15 Sep 2023 05:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233703AbjIOJVy (ORCPT ); Fri, 15 Sep 2023 05:21:54 -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 9BE1A268E for ; Fri, 15 Sep 2023 02:21:30 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bf8b9c5ca0so30272761fa.0 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=bIWljzjuw7uO4GYjBOjGu+6u8upPr1fr61v87Iyvx6OSaGs2f+OkEbbDf/+c0FuZYi dHskIP25v/Xgq2rmWRP+6Sumiy6Lr//H8NVh5IUd12GBWTvlIfbtbZGoj/69R/QDjc2a wGBcA/IwBpxSp/YuqRuGkmS34gW4XJtDwNE5Zn15zN4HdhZWzyreB163JRBUoTrf3xxE o9WT2YwaaNBUOmH7TzymOphQLZcqlA9Tsq03JXu2qAS7KbG91eRV6+63awDtFDi+Smen awowYZ+G3dkz9gCnr8OEWiw53iWfjXMqSDp6OZIfk3VRhGOUA5EvDwgyClslsrlvAlYq KyCg== X-Gm-Message-State: AOJu0YwfCEYDWezxTNvBbkwzqNqhNMeB7b+i6TzNKQUDZ23AU6A+2t+h RytvX23q5luUdrrSCAkzLfK2oA== 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:22:21 -0700 (PDT) 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. -- 2.34.1