From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 943F9C55178 for ; Mon, 26 Oct 2020 23:55:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 249CD221FC for ; Mon, 26 Oct 2020 23:55:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sE6tLKsW"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="mm+Tj8ze"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="UXkiXokx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 249CD221FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=a5ySqgwHtqUu8DhPPj3UKtdA4tRr2bf00gFP1QI066E=; b=sE6tLKsW0OxohY/qw2IQbJ2sq ZFElW9BPc9uBWgjwz030r58tpHdCKmR8uB1ZxAUk01Y9OL8LQmv8s7vqtxH9kM0TmbyOxW8eEvkxg +M3osuid62iqMatq5PMwE2ZTGjFgZRpZCzODcyWISqVjREEkGQkFClqeSU5M4wi4Cjp+ESen+PEzR 9FLYSQS0EoZIeXtpjSy1Byds0qAhlEx/Q0Fy1TsJR28UN583YZmNBeoMStqSxqXc1WqYsgfHSR9BR UuyqWQPSFYECWupCGNgYhelrPgZGofaCvNkAUaQoDBXRtWN015ZJdip1hV4bVUqiIdfcTVbT+NVLV andyeFZ9A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXCJ1-0002ZW-So; Mon, 26 Oct 2020 23:53:40 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXCGA-0001Mu-2l for linux-arm-kernel@merlin.infradead.org; Mon, 26 Oct 2020 23:50:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=buP9zrqeBpQ4Q2AkkSTzQhJHO7AQGPIBp2WewkNjFUI=; b=mm+Tj8zeMhJel0EqLjzatSvNZs sPp/ElbvQQ0M4w1AnPtZ3A7bH1HvBLx6baBTTsABP1+YcFSgl6ElqwTAniKhpCcXcGcT8Z/5bLwDL zfWTf2jW/Gj3vv1Mq/XD74w+C5Gp2Q1w9zI5hnRPT140vPFvUrTK+Qe2mcslnf/UXJj7jL9cxRdER vJbIzsGssNbldRKGh2B4sndTUpQN+NkV69midlO8734yUGPlVmYWhvUy7nuQx2qwOtAZOmmWo8x/H QPGcdJDiJ8OlGSVP+Tu0UlY2fukxSaodL8nzuM1mh6JAe+Fw3E0hcFc0g+RhLOwOB3oV8FgTIj7Jz fGRVJRUA==; Received: from mail.kernel.org ([198.145.29.99]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXCG4-0005vV-GC for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2020 23:50:39 +0000 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2CA5A20872; Mon, 26 Oct 2020 23:50:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756234; bh=WNpDCz6GEJtJzyBdSTxEG6+fLp1ZJ7VVzTxNq8Y0yEw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UXkiXokxdPBBSqgnmrR/fHN6MY1YaQAfeVvPE/7RO2PX+8NqfZvT/bPBd2++1VZpe W8qx0xzajKocdM7gUdo22X5CMPNhoTn8M8iAM8Tm/4vdMRnNCbpHfLs/pflKGipKiN GC41CkOyMCK4wcAXqVTpjf3PChuZLnwSH7ACnDT0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 072/147] cpufreq: sti-cpufreq: add stih418 support Date: Mon, 26 Oct 2020 19:47:50 -0400 Message-Id: <20201026234905.1022767-72-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026234905.1022767-1-sashal@kernel.org> References: <20201026234905.1022767-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201026_235037_197284_C715AB25 X-CRM114-Status: GOOD ( 11.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Viresh Kumar , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alain Volmat Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alain Volmat [ Upstream commit 01a163c52039e9426c7d3d3ab16ca261ad622597 ] The STiH418 can be controlled the same way as STiH407 & STiH410 regarding cpufreq. Signed-off-by: Alain Volmat Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/sti-cpufreq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c index a5ad96d29adca..4ac6fb23792a0 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -141,7 +141,8 @@ static const struct reg_field sti_stih407_dvfs_regfields[DVFS_MAX_REGFIELDS] = { static const struct reg_field *sti_cpufreq_match(void) { if (of_machine_is_compatible("st,stih407") || - of_machine_is_compatible("st,stih410")) + of_machine_is_compatible("st,stih410") || + of_machine_is_compatible("st,stih418")) return sti_stih407_dvfs_regfields; return NULL; @@ -258,7 +259,8 @@ static int sti_cpufreq_init(void) int ret; if ((!of_machine_is_compatible("st,stih407")) && - (!of_machine_is_compatible("st,stih410"))) + (!of_machine_is_compatible("st,stih410")) && + (!of_machine_is_compatible("st,stih418"))) return -ENODEV; ddata.cpu = get_cpu_device(0); -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel