Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp405201pxu; Tue, 6 Oct 2020 09:08:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTDAa+jSrKmbu1vaac9QdmsKL30BIpzgg4/bwpe2VQu3roeYQIUhB2CmAGT1MvkTkEUYqi X-Received: by 2002:aa7:dc12:: with SMTP id b18mr6304230edu.295.1602000537704; Tue, 06 Oct 2020 09:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602000537; cv=none; d=google.com; s=arc-20160816; b=z2IwyvzlBNXbbRXI4wgtSJyDp36Bw9ZvThNSF9vpxJW2y0oviUqtDJygGqPqvWsr6I xVS+Huc1CH5Rhn6+R9ah/9GMlO49q1EqgVzvgoU0XQ/XMG6CyHZzWtzXNv77FDgwwQpb YgBYbYr58oZxPtSRk9fuGdcX0H7+rFtb6tHcekMjFTmdODkR1SxC2esDON2P2YoTcKtp TmxG06EpOsTxfSvb5GAPCAc/dD7kKhdIAEU/w2e27rZ5Le1eAHnI9mNaU7YhYu1QmYR1 hkOP4XoAJ5INBupJxXHXSIs0oBdFr6vFpqZh9lK/SBet/thXT3we31IyogucL2cGiYSl sGXw== 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=NF7N2mRAW3S3z+E29H9n2GJWFQgwjLjZu6wXpmNrAjA=; b=RSxb0/7RdtIP1/j5Hn4qqB2JPzNm19sUfwoRPQE0i9UznyU7jGdFhVQFfcGSsvyVBM LRgKEVlq2htifYSg3QPoUPnzpLoXfkZfSHMc1ADhr87uRvKaGEXSAUxuHRkRObPAUtgZ XC5cXKh+h/Gp5SjIiJ6p0ekWBfhbB91oMXckxv2BG72zNGOc8aZ+UUbo5GXWQctXoOaa On1UXWEO84jWsMRZiDqINq1hCIMv8KtSwHQCv7oL89iX8VU9vZD+loM53obh2gri3wwe OTDfoBXtd8Z2QGPOZ3NofR4o0ZMKmZzLUfj81iYN1sqfQmm63yF6nR37LFvppsk5pulp im7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QnuSjKv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l14si3189241edv.496.2020.10.06.09.08.34; Tue, 06 Oct 2020 09:08:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QnuSjKv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgJFQFm (ORCPT + 99 others); Tue, 6 Oct 2020 12:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbgJFQFc (ORCPT ); Tue, 6 Oct 2020 12:05:32 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15C07C061755 for ; Tue, 6 Oct 2020 09:05:32 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id v23so11491099ljd.1 for ; Tue, 06 Oct 2020 09:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NF7N2mRAW3S3z+E29H9n2GJWFQgwjLjZu6wXpmNrAjA=; b=QnuSjKv9RKJSS9usSHdc3csUNh37+SWBojV0KbiqRB/uUTyHw3PUCuPMbBoNLbSxch ctAIEo0CDVjKJevPf8p4VuE6HubydpRxVZc5eeZYpcPCPuuydsALWD1AsCayyx2NYnUO zyaCyTWKvoPYy/StmNcDNA20FouWPO/eLpEL/w6uUaDJl/xgZVobJnAY/bclDGlibLEB VhtT98t14R2Wn5t2aOyfegJrVQG58LgYY1pesyCRO2hrouJk5XVsSuFAKCVmAJa/CaGL P0BTqIS0stb/5p33JCdbJ1247LON+riDWu/XaHSTEniorXOPZ7QsRmYRWlyd2qbVXntJ 5AMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NF7N2mRAW3S3z+E29H9n2GJWFQgwjLjZu6wXpmNrAjA=; b=NxV342Fx56oLK8YYexADajxfdE4wz2jU2JBcAOtOCsCv2bPB9XJakR9foKpsIqmyk/ kugi8YeeRP3LN7wJPBK2/SUbwLjPJuZgPvi+NefQ54KESjgUVmzddU4f5lyjcd6VZDri ebQ3cy6TzGufPxS2jx9rNljxpV6nmpmq69BJaE4lSk2Hq2TBbBY6JYlwJFWmYzDRyIOf JegtLnzDTdv6AWFHXIqh1KqDa2PuJxtIeJto7hb97wA+SNx/fTA5nd3gUneaQGNeSMbO IharCxaWfzA6XGk1xG7mU2br8+Qjp5ZRW20DlbjMLjNpRZMjKd6V+9OQJjtnEwOCygPL xq6A== X-Gm-Message-State: AOAM532l37fGj+RCZBtupYk+6aiyRSY8q2rFgoVLFQRUQoKnIBj7JBaP UZmScOWvHM+cS2dch07rw+AExQ== X-Received: by 2002:a2e:97c1:: with SMTP id m1mr2005098ljj.289.1602000330485; Tue, 06 Oct 2020 09:05:30 -0700 (PDT) Received: from localhost.localdomain (h-98-128-180-91.NA.cust.bahnhof.se. [98.128.180.91]) by smtp.gmail.com with ESMTPSA id c16sm640925lfc.304.2020.10.06.09.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 09:05:29 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Nishanth Menon , linux-pm@vger.kernel.org Cc: Aaro Koskinen , Tony Lindgren , Andy Gross , Bjorn Andersson , Niklas Cassel , Heiko Stuebner , Ulf Hansson , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 2/4] power: avs: rockchip-io: Move the driver to the rockchip specific drivers Date: Tue, 6 Oct 2020 18:05:14 +0200 Message-Id: <20201006160516.319830-3-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201006160516.319830-1-ulf.hansson@linaro.org> References: <20201006160516.319830-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The avs drivers are all SoC specific drivers that doesn't share any code. Instead they are located in a directory, mostly to keep similar functionality together. From a maintenance point of view, it makes better sense to collect SoC specific drivers like these, into the SoC specific directories. Therefore, let's move the rockchip-io driver to the rockchip directory. Cc: Heiko Stuebner Cc: linux-rockchip@lists.infradead.org Signed-off-by: Ulf Hansson --- drivers/power/avs/Kconfig | 8 -------- drivers/power/avs/Makefile | 1 - drivers/soc/rockchip/Kconfig | 8 ++++++++ drivers/soc/rockchip/Makefile | 1 + .../avs/rockchip-io-domain.c => soc/rockchip/io-domain.c} | 0 5 files changed, 9 insertions(+), 9 deletions(-) rename drivers/{power/avs/rockchip-io-domain.c => soc/rockchip/io-domain.c} (100%) diff --git a/drivers/power/avs/Kconfig b/drivers/power/avs/Kconfig index 089b6244b716..9dde5a7e75c9 100644 --- a/drivers/power/avs/Kconfig +++ b/drivers/power/avs/Kconfig @@ -11,11 +11,3 @@ menuconfig POWER_AVS AVS is also called SmartReflex on OMAP devices. Say Y here to enable Adaptive Voltage Scaling class support. - -config ROCKCHIP_IODOMAIN - tristate "Rockchip IO domain support" - depends on POWER_AVS && ARCH_ROCKCHIP && OF - help - Say y here to enable support io domains on Rockchip SoCs. It is - necessary for the io domain setting of the SoC to match the - voltage supplied by the regulators. diff --git a/drivers/power/avs/Makefile b/drivers/power/avs/Makefile index a1b8cd453f19..d541d436f01d 100644 --- a/drivers/power/avs/Makefile +++ b/drivers/power/avs/Makefile @@ -1,3 +1,2 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o -obj-$(CONFIG_ROCKCHIP_IODOMAIN) += rockchip-io-domain.o diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index b71b73bf5fc5..2c13bf4dd5db 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -14,6 +14,14 @@ config ROCKCHIP_GRF In a lot of cases there also need to be default settings initialized to make some of them conform to expectations of the kernel. +config ROCKCHIP_IODOMAIN + tristate "Rockchip IO domain support" + depends on OF + help + Say y here to enable support io domains on Rockchip SoCs. It is + 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 diff --git a/drivers/soc/rockchip/Makefile b/drivers/soc/rockchip/Makefile index afca0a4c4b72..875032f7344e 100644 --- a/drivers/soc/rockchip/Makefile +++ b/drivers/soc/rockchip/Makefile @@ -3,4 +3,5 @@ # Rockchip Soc drivers # obj-$(CONFIG_ROCKCHIP_GRF) += grf.o +obj-$(CONFIG_ROCKCHIP_IODOMAIN) += io-domain.o obj-$(CONFIG_ROCKCHIP_PM_DOMAINS) += pm_domains.o diff --git a/drivers/power/avs/rockchip-io-domain.c b/drivers/soc/rockchip/io-domain.c similarity index 100% rename from drivers/power/avs/rockchip-io-domain.c rename to drivers/soc/rockchip/io-domain.c -- 2.25.1