From patchwork Fri Sep 15 09:20:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386691 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68FAAEE644D for ; Fri, 15 Sep 2023 09:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YKuSWn7YVe10u3vIFkK8QFH1Gd1fBzTVJR27mhmW44E=; b=nqRF8Y8T1o51mr WUN+ZRokS+10PfJC/VLJv4hoIz/kHzzL5srrEIERfct1NB9kh/JGcb1iDkejRb95pqcBXBgG3KK54 O9UgH8bAEZxwH7Eikkb98awGP6FHorTCxKRApAoSTtbrSBETmTBlAKErZdtQ0VbjzsHfwd3YvxqFn 5kD0QBjrwqmKCIrq++zYdCVCwqJwIvnq+ooQ1rFR2wRhol/5ByAf6gX95xeSaSZmgddB2nQLECQEv hD/cjQZb0yOavyCS6+I5JlTkx4DLB2Jj3H77rsFU6b+f220US/fLzQcBTrIh8TgOq/OLpI8sAezYC HdjgkmMxCc33WOoRKOZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh51J-00AGAF-00; Fri, 15 Sep 2023 09:21:49 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh513-00AFtC-2Y for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:35 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-500760b296aso2341363e87.0 for ; Fri, 15 Sep 2023 02:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769691; x=1695374491; darn=lists.infradead.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=rSDTY9PIBZaWnuB156Z6IV6vLXbcGWaKRrqSpGIqxY0=; b=a4wzFFuGnaX8pnRMwgJHQfX5Jb+dys8CvdDMGJY8hZnu00Oj5+XjC7Ir9l9n5kRauA RVm0WnFywY5sRj4lSSK92kjUq+0MW1qioBcyaFWwldXezmlkLxgw74P8nXrCgCqfuBof bADtNJlLxnrerhmPXWPeIpfU00uqid5jeFS88phsekk1WALim2DQv7npEdLP4UAi/3jH npxD1q8jIW/CuS9nu1CC+5ZcDXo8Elm3xDhTpUUH47ZrIzUoPToUdKfAige2ARjuishi vYuP30Ubhh1bHx2q/GmDUFVk7/8OyL6eC4B444UVBzwBmC76D5obLlDf6AQA+PwI99e1 KGbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769691; x=1695374491; 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=rSDTY9PIBZaWnuB156Z6IV6vLXbcGWaKRrqSpGIqxY0=; b=Avq9itn33hLkvkwGLot3lvlHzfQvX4S3YafK+qDT90Jx5ne7MnIG94sfaSjClJrTJX ViqetCGHAmPOuozxwPzT1g6MYvyL6EjRYhtqSwA4xMdqYjDQX3/wUZ38pq5pB8qnfcc5 9wV/KPnrPwf7lkiEaTKK2qev1VFJlWEGYbPXlahOyJnTAVR1pmhMZLcYQ2TNQuKitrNL 5aSx/7pDy2CVMKvXA2qpNDoqi72EULuWu5SxJPLW/qx5b4K+mMQIanCT+Zi/f4JlOraS t4iHcHZAgrNJRaHW8WxGAGPQMbY+9K09X5bcLQYr5gBL5b5UxlFCNoq1Z46HLo41KZjV T1Ww== X-Gm-Message-State: AOJu0YzFSSijNh+UrCje/IjZQkXEhZPm0p1N/pVcdxM3r+289/hPUsYm AAHKBsI4vUnBeHfctcbiyB9RNg== X-Google-Smtp-Source: AGHT+IE8ou11tW8HL58ljba8dxgaBkkR87BS3tgnZFYHGFtichyS2uz30CZsvntAaczYxD65pJiO/g== X-Received: by 2002:a05:6512:39cc:b0:4fd:d254:edc6 with SMTP id k12-20020a05651239cc00b004fdd254edc6mr1290975lfu.26.1694769691466; Fri, 15 Sep 2023 02:21:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:30 -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, Nishanth Menon , Santosh Shilimkar , Tero Kristo , Tony Lindgren Subject: [PATCH v2 16/17] pmdomain: ti: Move and add Kconfig options to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:02 +0200 Message-Id: <20230915092003.658361-17-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022133_850403_A71C27B1 X-CRM114-Status: GOOD ( 18.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The TI_SCI_PM_DOMAINS Kconfig option belongs closer to its corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. While at it, let's also add a Kconfig option the omap_prm driver, rather than using ARCH_OMAP2PLUS directly. Cc: Nishanth Menon Cc: Santosh Shilimkar Cc: Tero Kristo Cc: Tony Lindgren Signed-off-by: Ulf Hansson Reviewed-by: Dhruva Gole --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/ti/Kconfig | 22 ++++++++++++++++++++++ drivers/pmdomain/ti/Makefile | 2 +- drivers/soc/ti/Kconfig | 12 ------------ 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 drivers/pmdomain/ti/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 98e04589bef4..33bfec9c4f7a 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -15,5 +15,6 @@ source "drivers/pmdomain/st/Kconfig" source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" source "drivers/pmdomain/tegra/Kconfig" +source "drivers/pmdomain/ti/Kconfig" endmenu diff --git a/drivers/pmdomain/ti/Kconfig b/drivers/pmdomain/ti/Kconfig new file mode 100644 index 000000000000..67c608bf7ed0 --- /dev/null +++ b/drivers/pmdomain/ti/Kconfig @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0-only + +config OMAP2PLUS_PRM + bool + depends on ARCH_OMAP2PLUS + default ARCH_OMAP2PLUS + +if SOC_TI + +config TI_SCI_PM_DOMAINS + tristate "TI SCI PM Domains Driver" + depends on TI_SCI_PROTOCOL + depends on PM_GENERIC_DOMAINS + help + Generic power domain implementation for TI device implementing + the TI SCI protocol. + + To compile this as a module, choose M here. The module will be + called ti_sci_pm_domains. Note this is needed early in boot before + rootfs may be available. + +endif diff --git a/drivers/pmdomain/ti/Makefile b/drivers/pmdomain/ti/Makefile index 69580afbb436..af6cd056c158 100644 --- a/drivers/pmdomain/ti/Makefile +++ b/drivers/pmdomain/ti/Makefile @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_ARCH_OMAP2PLUS) += omap_prm.o +obj-$(CONFIG_OMAP2PLUS_PRM) += omap_prm.o obj-$(CONFIG_TI_SCI_PM_DOMAINS) += ti_sci_pm_domains.o diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index 2cae17b65fd9..1a93001c9e36 100644 --- a/drivers/soc/ti/Kconfig +++ b/drivers/soc/ti/Kconfig @@ -50,18 +50,6 @@ config WKUP_M3_IPC to communicate and use the Wakeup M3 for PM features like suspend resume and boots it using wkup_m3_rproc driver. -config TI_SCI_PM_DOMAINS - tristate "TI SCI PM Domains Driver" - depends on TI_SCI_PROTOCOL - depends on PM_GENERIC_DOMAINS - help - Generic power domain implementation for TI device implementing - the TI SCI protocol. - - To compile this as a module, choose M here. The module will be - called ti_sci_pm_domains. Note this is needed early in boot before - rootfs may be available. - config TI_K3_RINGACC tristate "K3 Ring accelerator Sub System" depends on ARCH_K3 || COMPILE_TEST