Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp820254pxb; Tue, 3 Nov 2020 13:28:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7yW0P0TFDYFT7myRhE18U5mxmRn/QY2iWHGttLX79x1dxhKBBoGFo34v/Xym45MhYqL90 X-Received: by 2002:aa7:c358:: with SMTP id j24mr23966564edr.265.1604438912926; Tue, 03 Nov 2020 13:28:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438912; cv=none; d=google.com; s=arc-20160816; b=zPx09prvMDVNw+VqzceUCzfK354ap+JimWpUND6s8ipH5G6ioaHqS1s+XiEYXh1x0J szuuT/dhv8oOeSFG9bwws/PQReA+fKSzA8OvbBW3HUWNy2VNvKyDUc7ib4zy1SpkyvVZ NGQs+1QKGno3z6vt0aRcshGwIReFBwqWtkDHBaCQi0+HFneoS9MBcrDFRUlPa8VrdAUn fcA5tZmimxdmbd0GbtTe7YuJ509Osgn2aLUk84jBrrhXMRjs2ZyeAwbfqVT9jRaGeoEI jJOAwMMPA2lfiarsvEzK1+BHHyew+Qb/DaXheDirJkcE/Yq0PkmltC/mORVfeWa1GccF Haig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rOumGA9hIXd+HcuCcrYZu9OkFMjpc/fvQGW3RnSSC54=; b=JjaZDNLOg6NB/alyNVsocp3ekojBHhLNMHBCx/kcLjwRcVCXwcMORmK0ncqS2qmStt A94Uxzt1DhccolXes8zeGTau6y7VXdvFVe6Q45n7Yw9fhJj49qy3mGQMSODwz9DIWGDG MHRRm+P2wZSiBa+8rP8U32gh2bEUVYGeTAAy2WToPJuV6c3c4vPiibr471CGrfET0fIg b6yxBp/Veu2x4zvF6HrD3Pb5n6sZPsrLIpGB9Uaa9ANj5jnJ3IROXWjhE2bwsP1sTh8+ kArtEiRWDVzKzrTYxsF5kL5SjAJoKiUGo6MSMRoiBezJVfhmKzealxYMx7dVY4u/Ac1e PtWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gHGwDt+B; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si50219ejb.420.2020.11.03.13.28.10; Tue, 03 Nov 2020 13:28:32 -0800 (PST) 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=@kernel.org header.s=default header.b=gHGwDt+B; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387955AbgKCVER (ORCPT + 99 others); Tue, 3 Nov 2020 16:04:17 -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: linux-kernel@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