Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp916650pxx; Tue, 27 Oct 2020 03:56:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcEBX9he8yy6gBgKKuwu2WWm2SoN9M2NSbu5BYrMvj/be9UTFJ1KWZTEZ9YtPs1g8J0+le X-Received: by 2002:a17:906:1446:: with SMTP id q6mr1818484ejc.549.1603796218814; Tue, 27 Oct 2020 03:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603796218; cv=none; d=google.com; s=arc-20160816; b=EOC/T7tm97bC44Y73kRaB3d+y7B7aKkTOFRXbC6wOV2u/r7yqlkSMq1yH269RjTqeG ROcWSfB5jFj8EvydPlwugXQG4tE14ofRtpa+sNSiR2Me66CX8cbrGZ07ZtkYuHhgDgjw LCTjI7zAsTg1IV6H0u3ik9PrLRcZq77U/V0bDPaFpsdICm1nGK5APBvuKJZesvfsxyPV Zrl37vkm1NZ7psdgNefQYHgYjagKXgCB2wfYzanSf5ml52OrFmX0xAIYT7dUUec7C5Sd n8apu8CaEbkL0C/XEvOuuBmQX/RZc9g2h/uLmPetQ7m+9iBSm/aoQqqPw3Qroy1w/UVB 0vmA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YWNSaGwTal+3noug4otlcmtBGpbLusk2dWVkRmiyMwk=; b=mLYuHPujRZYuVzxGq79IEpC/yyqRi2jA1cs+VppqfvN6CR4k1dMSJ+akQbRf5aQ6vS lhDicxi2k91/AkpHzt9rfW/o+Eih6h5WJvRijMP0qgC8QDuqWtqdO/hqFvisJSVfGX2a mjdWMBV+zmwhb7BmSK2bPBOFRVUFUegwHAvDXq1XIISmxOBZYXmtzaddnmcX0D6mlk1X 4Eb0iiFCZYPIxpTQvQNT11jbHYo3/xHUPH1YpJAvoIiNAfdQFjwiHRs7mzX9ggGjJ++m Zsh5xq5IVAYz+P+9yM17Zc681Eyeq+nyqlDWf8FsoCVm0oaZ35qmXlyw18MoKjOKwWSo eLKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vKK6+U6m; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg24si675552ejb.18.2020.10.27.03.56.36; Tue, 27 Oct 2020 03:56:58 -0700 (PDT) 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=vKK6+U6m; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728035AbgJ0ADt (ORCPT + 99 others); Mon, 26 Oct 2020 20:03:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:35250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411022AbgJZX4C (ORCPT ); Mon, 26 Oct 2020 19:56:02 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 81A9122242; Mon, 26 Oct 2020 23:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756562; bh=ZWgRwuEvYiS7hPKLY3kpwcl1I7Msip/q8JSi+nhLDfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vKK6+U6mobuH5qLy6BNKOSw8jPZC8AOr8KFrNMOcLwXUzj+ZxyG/uKnrNbWS0RWDm 2hmwlL02XgBjjGowlrTblQPDZ8662wvPyppEguokiIOgIVUhg6fFMuLFEfrm6g82a7 eoFXJzJJ5G7LkxBbFzP2dCAdtAQYke8CDqMlHjUE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alain Volmat , Viresh Kumar , Sasha Levin , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 37/80] cpufreq: sti-cpufreq: add stih418 support Date: Mon, 26 Oct 2020 19:54:33 -0400 Message-Id: <20201026235516.1025100-37-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 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.25.1