From patchwork Mon Aug 31 06:10:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 11745537 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C5C291575 for ; Mon, 31 Aug 2020 06:13:02 +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 A007420707 for ; Mon, 31 Aug 2020 06:13:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mWnsz/yt"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=me.com header.i=@me.com header.b="A9NHYq4g" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A007420707 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=me.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=HhIKDkmOIv0JE1nVG+ufqBeECFBg9QSlmq1ErPJCwDQ=; b=mWnsz/yt8GeGS+wrZi952wxj63 54nyA7DKmv1Lg8kqRr2fsb1pzVWY0GTdNVO3hSyje+BmjuVzInrrhzTGX1SDwT674BRArRo84bN7j e76OS9Ae46J7vzfvzWtSjworL+bFKkqek3jW3TtiCguJyrPIY7RKkOfS8rVl5z4BRqvwVcd7yTBWR IZiYqApvcx9XNIeu/EcXObP60KP2ksHewxVUbgIFtyXk1NctiTjZy1gdzQq7tTpeKQGA6o+W28ZG1 tSpUzVcUWJYWv4lRfbR+F175f/2n/qW32FWsSwoNOaz+FxQiga4t2CLM3xnxj2a+0L6+YCk2WBV3p 2dvkCtOw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCd2K-00034x-8K; Mon, 31 Aug 2020 06:11:24 +0000 Received: from st43p00im-zteg10073501.me.com ([17.58.63.180]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCd2E-000344-N8 for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2020 06:11:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1598854276; bh=Qfuzybr979VMJFYuutCB+9GTM8ocBV/zhEcZJGiJypY=; h=From:To:Subject:Date:Message-Id; b=A9NHYq4gRgTpiFYf1sDY6b4PyXd/sHtJp0p2MdXnqAANZMGJYrJhV9d10i838QBPe TUtZltqPACc8HKviGV3CdZAO3uVJn39AwkOEAARkFpG6onblBf7fVVCDk5iVVMJspX aomelzYy2iHFCpyX3GLqfKN7POxeFodiC8W39pZ56pQE8FbK+qSysxcKDGelmvvxMs Rb+Y/ECut4Ad9+0chm8vEdInYO+Zs3WkN1BECzj4HyLogW972RZH7jJGg9FxryGKHG w0rZ7/Y68qej40vb9/Sqg1MK662SxTAjEk7xsL9j/+XxpIl6/snv1CY8TE2kDvSW2F PBCJr9bDCU9gA== Received: from localhost (unknown [80.214.144.204]) by st43p00im-zteg10073501.me.com (Postfix) with ESMTPSA id 5BD82AE06E4; Mon, 31 Aug 2020 06:11:16 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support Date: Mon, 31 Aug 2020 08:10:11 +0200 Message-Id: <20200831061013.4327-2-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831061013.4327-1-avolmat@me.com> References: <20200831061013.4327-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-31_01:2020-08-28, 2020-08-31 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2008310043 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200831_021119_134584_13FAA6A7 X-CRM114-Status: GOOD ( 14.15 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [17.58.63.180 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [17.58.63.180 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [avolmat[at]me.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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: avolmat@me.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The STiH418 can be controlled the same way as STiH407 & STiH410 regarding cpufreq. Signed-off-by: Alain Volmat --- 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 a5ad96d29adc..4ac6fb23792a 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);