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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 88183C2D0A3 for ; Tue, 3 Nov 2020 21:23:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 471B8206E3 for ; Tue, 3 Nov 2020 21:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604438626; bh=zdg92P/vxc+dxJT+bzylolB4z50kOpufn6f2r2lzS5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=m1HmVZ0nifKBCS6KEnDSXMciDHYAFx4p9K8w4sJ5QTDtlsLFRdjbxmPmBx1z2O1Lh ZlSnSa1tjXveQB0mt1NzwWsM4+tedH6HiiiFuDCYiwZJBwlE/wqzbEREVzKFplTO+G MG15ECyDj6Dmy7XrhxcRSC34TyqmPyhuQmXaZq38= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732399AbgKCVEP (ORCPT ); Tue, 3 Nov 2020 16:04:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:42252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387958AbgKCVEO (ORCPT ); Tue, 3 Nov 2020 16:04:14 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 630AA20757; Tue, 3 Nov 2020 21:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437453; bh=zdg92P/vxc+dxJT+bzylolB4z50kOpufn6f2r2lzS5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gHGwDt+BB+G+tgCm296iWWu92zAwNgzFMrBIYrz5lLbY2cHBNJCLrI8hnChPdTpk1 gwaf5sCSOk71nnEhYvhDQ5vPZxD8yDWylZNtWc9v4AzfWXtPWAyF0CwCiL3zNr8vgT CwlXRfIQKuhlXyJc/6R6OZo0cL4lRFMf7DQMOHm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alain Volmat , Viresh Kumar , Sasha Levin Subject: [PATCH 4.19 082/191] cpufreq: sti-cpufreq: add stih418 support Date: Tue, 3 Nov 2020 21:36:14 +0100 Message-Id: <20201103203241.853275941@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.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 47105735df126..6b5d241c30b70 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -144,7 +144,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; @@ -261,7 +262,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.27.0