Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4648271rdb; Fri, 15 Sep 2023 08:18:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNnUdqqzulHoODZ0SFsbDqcWyHvVQ1x0JFAVuWDUDgyj9OQ5IrHGGhpM1ktPrputeihgXQ X-Received: by 2002:a17:902:e552:b0:1c3:3682:f83f with SMTP id n18-20020a170902e55200b001c33682f83fmr2506814plf.30.1694791118686; Fri, 15 Sep 2023 08:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694791118; cv=none; d=google.com; s=arc-20160816; b=nouUziMmJfWMYjbXI6SCP2T+JU/3h1tUwXX2vlZXbY7KsUp8AxhvRnD63wV2yO4DUA BvI0wiIaZLTziLIYo0r48DbDp/OukAqxcI2UlnYkiVwFi3Q+4emCmvB60fPCQYh6c/yE pGbl8SlUeI5oeNE1rOnZTEpxO/NXMmSmIC+TUnZmECeXAftvTIx98nbntnmHbzgwsbBy nFXqhaaQUw4IddHCQtZil5vbhCXCuJctzyeqdQuNH70eaDZlVDzohYI/LD8SYOvl5h0N nFie7LU+EETLF6VJxEjIARv5jXgn+Wxgm+WTtR1WZBUcbwjxNUfADhmt6/nwS56RAB3+ 2/RA== 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=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; fh=/x8KmlQhxIXq8GnydM4eQol2D0bt1gCXWId/EA1oSHA=; b=plD4GqDQ0wj9TBq/F3NCOMn726J5yMuyAPQD8dr95It/NHKAHQXtkw7twyLuE7dtkf /pSzoZKM60zoo55pFSygWMAOe/Bf89CCg/dQiXvjfPY1psDEgEEmYcOXS8vqJwZq3lVP B/D4gbMsdwZElIoXI9IZea69/JsH+LeG6wl1qjjnM4U03xA5RoPfLgtqU6Uwn+1dPjRH PGgTmMGGcRO1aZ27LiCh97drc8Bnj923VQ0WaUHmRr5FPOD0P98P4idaMLoEYQGagTB/ 1w8wYmJaWpCHwZ1l9fKz4389BFYHHvz81NP+mkfhC2liF8pJLG/e0wYFWN9rU/DGs9ZV YuGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lJwaHkbZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k7-20020a170902c40700b001b3c63eba76si3672230plk.492.2023.09.15.08.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lJwaHkbZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 1514E826DBEC; Fri, 15 Sep 2023 02:21:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233701AbjIOJVy (ORCPT + 99 others); Fri, 15 Sep 2023 05:21:54 -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 S233586AbjIOJVi (ORCPT ); Fri, 15 Sep 2023 05:21:38 -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 C8726270E for ; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2bf66a32f25so29934411fa.2 for ; Fri, 15 Sep 2023 02:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769682; x=1695374482; 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=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; b=lJwaHkbZHaSzWzs2VvefBPHGWQa4zX05rV6Yj+V5gIwQ7EyL/cuQhgXGDWIA7v1VZL hjCLuzehSmkWLhAWgFn+n3HpGjzZKlPZC5W09STyutM28hv+Cu2IAgUjlivQKwCZ4kec VVy1Z8ctGvPG6HN5D35KISqR9PO52JfWY/SoRGN6DSv5s576IbL2kwf9IBKuPY4a46tZ gsRdkSLtKQZWhCTs18K84CTXcuPFL19Dg3nIhPMI4tR0hOQpNOjGXYuPMBTmM/ppjFYL luqkYToi2WPr2avKtX/4wefvcdt08EPdJ+UPIrxmBZTT4mx8U8ShewlZzanxCA72elMA U6eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769682; x=1695374482; 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=1Os6bv0Dt3LeB6u/HS9K4uZVY2Yt4IFbSegYd0tcLec=; b=xSeFHFJWz1w+Bcwh1x6kHoJiW3/I7mrnVuwv0Yei/zIrSQGhWdg88nx4EcyXokWyEK hyeUvyG+/dxRdawAVI14DFkMcayyYGiQCLFpGjnxsHBzElukn/HlyZAqNPcGYYMoDHgx YxiGxIYSXBzEv/nYzKnqIJ2lLyOmI9vHeaB1iR2u+YDM6bC8UnhdqwmsZQ7dxs9k1l6K ahYTQfQjt9tYxrhGSKBwTHnYiHfzO8B1OPKpTUkC+Y/zbkhakkVZDfyB03pq0I4rHoBV cvjxYS21TN0gwxQRvXpcnipazc7KzY6mb+80ImZEBdoSPA5I1KUsGZX10T2ipWeSI4gB bbiw== X-Gm-Message-State: AOJu0YwIrh5/VXPxXadgFZEW8W5k6Eb4PdDSR1RVK0o6O3ytuJdxFMZ/ jydVWnBWRwB1dHbVPClfviZAxQ== X-Received: by 2002:a2e:b001:0:b0:2bc:ee89:6976 with SMTP id y1-20020a2eb001000000b002bcee896976mr1063977ljk.24.1694769682154; Fri, 15 Sep 2023 02:21:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:21 -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, Matthias Brugger , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org Subject: [PATCH v2 07/17] pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:53 +0200 Message-Id: <20230915092003.658361-8-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 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:21:56 -0700 (PDT) The Kconfig options belongs closer to the corresponding implementations, hence let's move them from the soc subsystem to the pmdomain subsystem. Cc: Matthias Brugger Cc: AngeloGioacchino Del Regno Cc: Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/mediatek/Kconfig | 29 +++++++++++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 23 ----------------------- 3 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 drivers/pmdomain/mediatek/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index e2c85f20a0c3..b1d9dc7d71e3 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -6,5 +6,6 @@ source "drivers/pmdomain/amlogic/Kconfig" source "drivers/pmdomain/apple/Kconfig" source "drivers/pmdomain/bcm/Kconfig" source "drivers/pmdomain/imx/Kconfig" +source "drivers/pmdomain/mediatek/Kconfig" endmenu diff --git a/drivers/pmdomain/mediatek/Kconfig b/drivers/pmdomain/mediatek/Kconfig new file mode 100644 index 000000000000..21305c4f17fe --- /dev/null +++ b/drivers/pmdomain/mediatek/Kconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-only + +menu "MediaTek PM Domains" + depends on ARCH_MEDIATEK || COMPILE_TEST + +config MTK_SCPSYS + bool "MediaTek SCPSYS Support" + default ARCH_MEDIATEK + depends on OF + select REGMAP + select MTK_INFRACFG + select PM_GENERIC_DOMAINS if PM + help + Say yes here to add support for the MediaTek SCPSYS power domain + driver. + +config MTK_SCPSYS_PM_DOMAINS + bool "MediaTek SCPSYS generic power domain" + default ARCH_MEDIATEK + depends on PM + select PM_GENERIC_DOMAINS + select REGMAP + help + Say y here to enable power domain support. + In order to meet high performance and low power requirements, the System + Control Processor System (SCPSYS) has several power management related + tasks in the system. + +endmenu diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig index a88cf04fc803..0810b5b0c688 100644 --- a/drivers/soc/mediatek/Kconfig +++ b/drivers/soc/mediatek/Kconfig @@ -49,29 +49,6 @@ config MTK_REGULATOR_COUPLER default ARCH_MEDIATEK depends on REGULATOR -config MTK_SCPSYS - bool "MediaTek SCPSYS Support" - default ARCH_MEDIATEK - depends on OF - select REGMAP - select MTK_INFRACFG - select PM_GENERIC_DOMAINS if PM - help - Say yes here to add support for the MediaTek SCPSYS power domain - driver. - -config MTK_SCPSYS_PM_DOMAINS - bool "MediaTek SCPSYS generic power domain" - default ARCH_MEDIATEK - depends on PM - select PM_GENERIC_DOMAINS - select REGMAP - help - Say y here to enable power domain support. - In order to meet high performance and low power requirements, the System - Control Processor System (SCPSYS) has several power management related - tasks in the system. - config MTK_MMSYS tristate "MediaTek MMSYS Support" default ARCH_MEDIATEK -- 2.34.1