Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4657056rdb; Fri, 15 Sep 2023 08:32:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERtv5w1duq9C7/+zOO4gU11BUITgpuJGri1vfhG5RXAYQ1BjiHYcvxpRwnrAdZI07q+lV5 X-Received: by 2002:a17:902:c403:b0:1c3:f745:1cd5 with SMTP id k3-20020a170902c40300b001c3f7451cd5mr2595554plk.34.1694791940297; Fri, 15 Sep 2023 08:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694791940; cv=none; d=google.com; s=arc-20160816; b=CShIuAq9mGLvcBYMP/QtA6+HLlmuvOwFkr6BXnIx3bhvFWGuA65fZEsmBuRCRT6QRC 8uV8r6OISKl0mtQeLM6Pf34X+2mHrGPvHn/8+3zyBc4hMBw9jiV9+69XQhdPboM0sDuA 1ppw5gZad4VDPQcX5U+g03joB0Tq1RNC7T9VhTM3B05lJOBvkHwPv23Xdjug1NIZ2Y5t yKsM+TyIKAywNeS2AoajveczHU83+IsLbGMUVBMGFpeL6L5Qfp/tcj8dV/S9LhQDWudj YUhZNX88GRDFBRaAYUoWcCAtrFl5W5EfTNaJtu4gxJ/UNP7gMOGffT7WJZ+C+/9sb3dE MzQA== 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=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; fh=HexBHC3xHoIm0vjw6ADsUQnZy9bvL1VB1A3TRNG5gsY=; b=iekrdcWfvpr59CJZdzdmL2+Ul2LhlioANbPsWlD91ctOxxm3oChAGnMUl+sbOuzw6j ApXVhkp6Q4DMb09pHsb5bXlu7rp5UeJKEEmILnqSYScHqTduf0VBR0WiE9PNps3Y7rpz IvMOQeuASxZCdOhE/njjTQUljR+vbDQjCc/FlB5OrFUo0wG8LQr3s27ln16Z3E6+K+w3 +t8VRZwSJbFggZvAGv0n/B7SAZpJ2v3MgTZWtwFnx1topbHW4D2eWkRuv/coX0wJ6zMQ Ij62sWZKOYVsobLriCWbPH6iOg/HQiQ9W3hEehFP0RoTSnAgtDBz4I4lryT4kWdEu/OE jrdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cBAxrWMI; 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 p12-20020a170902e74c00b001bbc84f3ba7si3689329plf.282.2023.09.15.08.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:32:20 -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=cBAxrWMI; 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 EF41484DC460; Fri, 15 Sep 2023 02:22:08 -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 S233779AbjIOJWD (ORCPT + 99 others); Fri, 15 Sep 2023 05:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233580AbjIOJVw (ORCPT ); Fri, 15 Sep 2023 05:21:52 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBF421FD4 for ; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bceca8a41aso30792511fa.0 for ; Fri, 15 Sep 2023 02:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769685; x=1695374485; 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=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; b=cBAxrWMImUdlcroirPosqGC/rKOEGd/g+yMgI1Y7OYLmZzy+8JkKHF8i3OrT9fBPBd AX8bHqdoFEkrhiwgIF8PqRVVnJf2+YjQ2kGVBdMsJJIm/b3muUx1PX1QyWZGouIdkWGx z/1nFXZJ/v7QLq3Do7yR5vABMhqNwSSAmE7RMx44gaI0FW8r2CT5ujAqK555O2uyIufH q8iaqQTnraBEbfZI8EgS/a/Ng/bNXRXnjN60JrPMvrkr2Dbu+TZbPDF6Pg8mLd1ZGrvU 16QX6LGraVKvprjmMihEMoJ9GAyBY+hvxMbAprcydthgRkZNljEehDRgIR0R0OKCmy32 jtxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769685; x=1695374485; 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=VKisBqk8Z2ap1nSKbct53Lj3iZDRshdX+0gS7XeCa7I=; b=bSRch651VU8zdkyMg9f6TIgWQmvLnJ6hzOeY4t6LmiIQD/BuHghBjimfzygwoZTLoP IwHrg/8jBZesbqGJ7EDyxW0OGMtPbA3hgA5mRllxBAz4NJ0pHV2k8pGz7treAuGGep4u jfVUtEEftpZJl1EoPnNnk40QMfYr/j068tgpBOGiW1WHIDqdjUf1eBs3zdpULhZivtJz c/0UtSxyA4S4gRmmpFkojKEc2tNoyYHiVDlLqfmpUOTkPVO79ayO6tIZZfchFHOSZ8MN Lsx2nx5tdgZ7J2n8J67QG+xe188voaJLJ/vVWvtLyzzb/m7toHgf2ROLX3tK5TzzYbWd 1/Ng== X-Gm-Message-State: AOJu0Yx0gTXkHaNCikxVKWWiqZ0wTK5TA6mVUzvjAwBE4h1ZsddUyDmu BlblM3cellN5BqccXFGg5UaZvg== X-Received: by 2002:a2e:8055:0:b0:2bc:39f5:ecb4 with SMTP id p21-20020a2e8055000000b002bc39f5ecb4mr1074596ljg.25.1694769685101; Fri, 15 Sep 2023 02:21:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:24 -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, Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: [PATCH v2 10/17] pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:56 +0200 Message-Id: <20230915092003.658361-11-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:09 -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: Heiko Stuebner Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/rockchip/Kconfig | 16 ++++++++++++++++ drivers/soc/rockchip/Kconfig | 12 ------------ 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 drivers/pmdomain/rockchip/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 0a75a17f2f3a..8afe69251dd2 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -9,5 +9,6 @@ source "drivers/pmdomain/imx/Kconfig" source "drivers/pmdomain/mediatek/Kconfig" source "drivers/pmdomain/qcom/Kconfig" source "drivers/pmdomain/renesas/Kconfig" +source "drivers/pmdomain/rockchip/Kconfig" endmenu diff --git a/drivers/pmdomain/rockchip/Kconfig b/drivers/pmdomain/rockchip/Kconfig new file mode 100644 index 000000000000..b0d70f1a8439 --- /dev/null +++ b/drivers/pmdomain/rockchip/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +if ARCH_ROCKCHIP || COMPILE_TEST + +config ROCKCHIP_PM_DOMAINS + bool "Rockchip generic power domain" + depends on PM + select PM_GENERIC_DOMAINS + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, a power + management unit is designed or saving power when RK3288 in low power + mode. The RK3288 PMU is dedicated for managing the power of the whole chip. + + If unsure, say N. + +endif diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index aff2f7e95237..785f60c6f3ad 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -22,18 +22,6 @@ config ROCKCHIP_IODOMAIN necessary for the io domain setting of the SoC to match the voltage supplied by the regulators. -config ROCKCHIP_PM_DOMAINS - bool "Rockchip generic power domain" - depends on PM - select PM_GENERIC_DOMAINS - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, a power - management unit is designed or saving power when RK3288 in low power - mode. The RK3288 PMU is dedicated for managing the power of the whole chip. - - If unsure, say N. - config ROCKCHIP_DTPM tristate "Rockchip DTPM hierarchy" depends on DTPM && m -- 2.34.1