Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp506927ybg; Tue, 9 Jun 2020 06:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGiUDvMFuB5Rf5VAfUsrN+kSw3ie+Ig3HqmiTUErKx/r2oO79qkndm/JUJ7oqqnRJ8HHxC X-Received: by 2002:a17:906:e2d5:: with SMTP id gr21mr24569794ejb.219.1591708734372; Tue, 09 Jun 2020 06:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591708734; cv=none; d=google.com; s=arc-20160816; b=xJW8UObu6zinsJo7j71mzTg+UPeFk9jahCgMkH6TkwkqH6mYTpbU10qV+KuAUGDG7m 8AyUfKTspoOgs6O0zHiMzq151ZvVP4zG8PEqH55oqi85CddxObiQKDoT0+M/XzePlE31 3jXc/TsuHf+08Qp6s0og50L2JQQjBP03f1rbxILoKLCbhLHBzwcEXEyUoYh8s+dZEcGX 3nHtDj90OIiB6yJaHkJcLIleCwV+bBekR7PMpNK3EEXn9akTsyARHWKYfKWBb2yQLi/0 McoEkuHXzIgbtpFqFf3CAeqpxFXBbH+Mqb0iwMCvnS3SxQ/+BAxACNxzJN5CpNqmpByF B7EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gODohnu3Esv2qlUienjAVp66GFOWKMfQEeRzgVApqO8=; b=uOHadPeQVbop4zRHB8RG9HD6D2uUmxnjOOIW/KKDgf77UDt3ka66J5WFBusQts5DGA eXm3uaIAY8oEFOrDDgjxMiYLYHu26UfTmpnd3BcNFoEOQD3x+Vkq4I602Tj2uBxSCfk2 e9KXDHf8x0TrmVKGO1sZ1UeZvlez8T5DzBYq5j+G34YA7NlNf/IguNe4eC+/oICtMT9k FxNqb6fnT5m/5KG6Dy+lUBGP8A2IpyoWvgIFKTdvlkr8EN9W0Nqrm1Bm9Vy9gVIcpX4d 6iriuBFoNWLBPrjh1IPNMakN8nULhw3dt5CBa97dtj448ZaQK9eyVdAoXccSvVIP5izd p9IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q4s89G5i; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j25si10392488ejs.86.2020.06.09.06.18.31; Tue, 09 Jun 2020 06:18:54 -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=@gmail.com header.s=20161025 header.b=q4s89G5i; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729815AbgFINQH (ORCPT + 99 others); Tue, 9 Jun 2020 09:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728767AbgFINPG (ORCPT ); Tue, 9 Jun 2020 09:15:06 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D642BC08C5C3; Tue, 9 Jun 2020 06:15:05 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id s1so24998545ljo.0; Tue, 09 Jun 2020 06:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gODohnu3Esv2qlUienjAVp66GFOWKMfQEeRzgVApqO8=; b=q4s89G5iheCGw9OQAjJe2Zc6d+GgU/j8R0VUdl5NnYbuBl/XK2ztpBsz2Ef3lR4KuW JWioKUSN8scZ1jlt622kBg9OsW6EIhozc9XVBh9w2w0xrIYsWIAkJvIMD8+rOFMTftLP raRlky6+p1TUfxgB093IFSiTZWzQdPoRUK5PiNfWmeWUh5I9SA1WV2nEgPooQrYiNAlT CMRiHzk6L+H5f3CXce7iG1XxWJn+n9VSEOGY19V/u+3GJwljxr04lUnfd8G0cGsWv0I0 B9CiR099u9pr5P+TANsbtEG9lIsHOYGauGX8i+f/2OxRYOaLmstOwQH4NOHQvDghYIj3 yrtg== 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=gODohnu3Esv2qlUienjAVp66GFOWKMfQEeRzgVApqO8=; b=g6jmoVIT8BvdX0jMMOLGbVDYXdEBmM3/yLAiDe1LJaFV4351cyenz91D+WJ9ii4Sut HLtVTjuWElcxiSqL2VxamOc5qUxxePiJXJ/lqXrk2LaACG9I29hgC3itxfB5kp+uRrds 4x0skbx3TNJCwZ5evVXhnCXRsCa3vCoHOi0/RO21nFbdW9ZHfnP7ODsrO4XylFbT03Fv qvz+H4z1m8wJ1JZNCWXI6eKqNv/YrTYZd1WC2RPKGNMb6ZJOwnbSNiPyzpHCXMEaeKcj 5Ckx51UebImtWYgrccQxoaptb5CoKDqgcVn7AUWaKsWmYJXBuHstW07bN9vla0+XfvHK InIA== X-Gm-Message-State: AOAM530/0n1h/AIMQgAf5RFJfWb+tSJiZ4Eir1i3RGln5wDEs77Anj5b FC36xKW9FpUFtK3m7ii4NQg= X-Received: by 2002:a05:651c:2cc:: with SMTP id f12mr684410ljo.329.1591708504216; Tue, 09 Jun 2020 06:15:04 -0700 (PDT) Received: from localhost.localdomain (79-139-237-54.dynamic.spd-mgts.ru. [79.139.237.54]) by smtp.gmail.com with ESMTPSA id l22sm4323522lji.120.2020.06.09.06.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 06:15:03 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Mikko Perttunen Cc: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= , linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v4 32/37] memory: tegra20-emc: Create tegra20-devfreq device Date: Tue, 9 Jun 2020 16:13:59 +0300 Message-Id: <20200609131404.17523-33-digetx@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200609131404.17523-1-digetx@gmail.com> References: <20200609131404.17523-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The tegra20-devfreq driver provides memory frequency scaling functionality and it uses EMC clock for the scaling. Since tegra20-devfreq is a software driver, the device for the driver needs to be created manually. Let's do it from EMC driver since it provides the clk rate-change functionality. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra20-emc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/memory/tegra/tegra20-emc.c b/drivers/memory/tegra/tegra20-emc.c index ef0f5a69f24b..59d85e527516 100644 --- a/drivers/memory/tegra/tegra20-emc.c +++ b/drivers/memory/tegra/tegra20-emc.c @@ -877,6 +877,9 @@ static int tegra_emc_probe(struct platform_device *pdev) tegra_emc_debugfs_init(emc); tegra_emc_interconnect_init(emc); + if (IS_ENABLED(CONFIG_ARM_TEGRA20_DEVFREQ)) + platform_device_register_simple("tegra20-devfreq", -1, NULL, 0); + /* * Don't allow the kernel module to be unloaded. Unloading adds some * extra complexity which doesn't really worth the effort in a case of -- 2.26.0