From patchwork Tue Oct 6 16:05:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 314110 Delivered-To: patches@linaro.org Received: by 2002:a92:d603:0:0:0:0:0 with SMTP id w3csp710347ilm; Tue, 6 Oct 2020 09:05:31 -0700 (PDT) X-Received: by 2002:a2e:7e10:: with SMTP id z16mr2079236ljc.439.1602000330917; Tue, 06 Oct 2020 09:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602000330; cv=none; d=google.com; s=arc-20160816; b=Uk3cTNY6QQ3kPj1UMmPDWSCO3yjQlA3IX7q7/0B1G5Ik4oRroPHwnIG/o7IOGDiJKR J54vah2efBqbNst6OR5FrVdhohLJ8O5Q8ImY2u6arKMyNdxKQXUyaHJx0gkGbYPMfBw9 J1X7qbgRY3l93MayCUUdDniVrEbj0aZlsUT4zMqPbgMn3fzQXmX4yUrwsvy1pOnxz+C8 7zXn9hacyKnu8sdpssq+pVtc+TJKzMe8r7q4Q5isW1NWeaW3SwDrv4vCcxm+mt9lO7c1 z+C/s7hNBETuXmxg2K+wB6qCMP3/qQYRSnfkpi7hNzlmsio9yKYz1uH6QaCm4WfUxKtG jHdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NF7N2mRAW3S3z+E29H9n2GJWFQgwjLjZu6wXpmNrAjA=; b=qAg7CfWX6BtJWjzG/NN26eeipvlGF2In7C0Gm5GSXsIQGyRQF3NN/WmIHNfqwHiseC JEsw2DG+sbvKoMyUkxStmaeZcBRbyP56yQ5LcK/TRGfQ+d+cDII8XTn+ixJ9Jo+2BnP/ 9dN7Qf5Umxwo9tgOrkknZIuLPVdnumiHHPAXRNi6t56wtY5ig13+2hFntPVG2FeMu6eM CvJ8R93Ls9yOmdADEuHedq0qxe1CKt9VsxhbRmJCF1Zhd5Z2cWXhEzm2eFT70x9SKwQe hx9OWx73xBBqNgJz4XeZ1OKAs83VbDjrIYjbHjmibNDqklFp2LfkB5um6UTbTPeqZsTu LF8g== 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 ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u5sor1552004lji.47.2020.10.06.09.05.30 for (Google Transport Security); Tue, 06 Oct 2020 09:05:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QnuSjKv9; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=b7q+xGEOd6UhQ9t3IoUT7ul9wmdPiUqSYwf7YGSg7a+E1kVMNBBsPgp6ofP6uDbEUb 6V7EZi2SdpVY7UB07CD5qqTf73BOaTouo5WLMHSB47qpYXBVZ4j3UoemwAtC4yr4ekOd AYh8gncsESalLDYXerYdwQpsYkVsM1iQwEbQT5/N58ZYOEMYMC6qxSRJ2ZDwpfD8XD6Y HCvpkBV68p4iWb0YpkEze3f4fG2bNDNcoec/9NLFI3Tl0547vo0CUw25j/pYIKI6x4ay 2qBB2BWgzftDD4zPSxKCOVpG5sc4u9w+iLLFyM3EHoaWmHg+hDSYqytyms+ro+PDWKr8 v3gw== X-Gm-Message-State: AOAM532Biz7ilQh3w1BLHBZyIFHktbHDmmGkwyF1t47m9btO1F8rWaCw Z0Oy5r/OzY/+2CRxs9wWhqXljcx8 X-Google-Smtp-Source: ABdhPJzFR1bW78+ImmzRtpoOmMSKfadbIQz9q34xFBp+SWTiAX3i+KDBgDh1vUYYVDcwMdNCwHBdFQ== X-Received: by 2002:a2e:97c1:: with SMTP id m1mr2005098ljj.289.1602000330485; Tue, 06 Oct 2020 09:05:30 -0700 (PDT) Return-Path: 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 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%) -- 2.25.1 Acked-by: Heiko Stuebner 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