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=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 29F67C388F9 for ; Tue, 3 Nov 2020 20:54:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E4C75223BD for ; Tue, 3 Nov 2020 20:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436895; bh=UI+huKp/NjLjpLSbAaV4Y2FsL5GoIL2RSYpGPaFsFrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=UcOF5sU+y4+XAo/GcuP0N59SaTOhhvicj8YgL2cIn8XkC5qik5u1en6Xpys0k98QL dbf/4QwSJjnTJfQ2TUEaAMc+YO99bk3L/EKzfxJtlhkhnoyCtnwbrBpQpVJ96b1Clp WSgacsqyZvDSaPVS3SryV0dHWuiTbs68ZRvaM42k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732640AbgKCUyy (ORCPT ); Tue, 3 Nov 2020 15:54:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:54518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732596AbgKCUyw (ORCPT ); Tue, 3 Nov 2020 15:54:52 -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 161CF2242A; Tue, 3 Nov 2020 20:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436892; bh=UI+huKp/NjLjpLSbAaV4Y2FsL5GoIL2RSYpGPaFsFrw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=khqth1LYErQrCR9S1SSHxgBbd0B6bB8jc1dEaSXTMymU1aDAyqH50x08rjOp4ejFT mZDapgkXyj1ezWcAd4RIYddCRHTG4iC6H44H4oog+d5EeoOwh5BhExlWXT8EfhNHkj tyFdR+98bD8dKU1F+NAdasDft+o8KifG6yNr+4Do= 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 5.4 056/214] cpufreq: sti-cpufreq: add stih418 support Date: Tue, 3 Nov 2020 21:35:04 +0100 Message-Id: <20201103203255.565690549@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@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 8f16bbb164b84..2855b7878a204 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.27.0