Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3213860pxb; Mon, 9 Nov 2020 05:46:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoQ4FxhDuY/ct7+Su+TK9q5fhf6lwToDazdmvL64MAv9QyxmipVWQMB4gBTCgr1ziFHHS6 X-Received: by 2002:a17:906:9719:: with SMTP id k25mr14793352ejx.226.1604929570259; Mon, 09 Nov 2020 05:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604929570; cv=none; d=google.com; s=arc-20160816; b=r0KkiJjZn/B4l10KX/BvUNUCRdHzLcqimkQ5HJjQm3IrAljwu+ivJDrs0bKWjmsGxs pRI4lyAhXjUNdPteFpfVdcKQqwS47J4Yf/Sc3bGh+ikO/c6Jg7SBodWcRr66iiPVUrWc hmSQ6dtvounr5D9TNkVKSVkb1xiPbeDGpDl9HvXjwsxPH/gVCiCM6z9Jj+V7+IVL0kNE daEJprc80I+8QfuzHT2D5txeFjNJ9zH6o85Xb7xI1rtg+nfzbN3kyoJ5XlM5zx880U5n cEb64UJ3Zeta3aqBMf4DujjXdofNEAxd3+ph+xrS2etckXG1N0S4t1aQPP5h2uSOrty2 UrZA== 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=EkeiKXNMuvf7Z4TR++TMbyAaYk7GqGMNmLuZ6q/DurQ=; b=cD0q2ZvmWj7D9kofzVpV7RFE8GCGjkzSPhTNnLHNEtNTvzK8HDzeP/A2fIRaymbqeF pmPZvNbGigPJMl/1goRTSXMXKGHUi58ljmWDuPu/RSlpzAnrGvrOZ7mcGAkG+Im5HtfS etYsJ7OjmSWC8t4/M3eaHFYjxXjkjkTkkAQE4JugqyylZCkItJP5S5kfk98zU0Gj99eX 1462MsK7Xypz6UZH2VPEzX1d2ytzjmgAquVSdHrtscx3i8UxQnPIofXpBzCotlc2OPUM CJ3MpATbaCeF4axQTYAK+yVT8k8P/i6aZ9FlU/PjysrNN7l6z8heP+jFjAJg/go3UM1g AsUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="k/Qf5fs9"; 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 s19si6460815eju.549.2020.11.09.05.45.46; Mon, 09 Nov 2020 05:46:10 -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="k/Qf5fs9"; 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 S2387611AbgKINmO (ORCPT + 99 others); Mon, 9 Nov 2020 08:42:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:55066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730544AbgKINA7 (ORCPT ); Mon, 9 Nov 2020 08:00:59 -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 069F221D46; Mon, 9 Nov 2020 13:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926858; bh=RAApNINermXK/f6q2UBCW/71796ZPIc1C8iRoEvxzYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k/Qf5fs9lcPrRrte5bUE48THrTV1f9yI5b7QFLxRzj/wDKvgfA5YG/3aV58wrxEZx c9dZJnDOFIhYEAh1P762glA7WSSQtBvGxOKP2b8TQuOIt5RhFvW75IL6gJEtWYQt/L d/sOAR4Awo61yXFYXj7iqTHp65el23LdzCYmWsWw= 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.9 029/117] cpufreq: sti-cpufreq: add stih418 support Date: Mon, 9 Nov 2020 13:54:15 +0100 Message-Id: <20201109125027.035471484@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125025.630721781@linuxfoundation.org> References: <20201109125025.630721781@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 b366e6d830ea3..2cb3346e82d35 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; @@ -260,7 +261,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