Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp829619pxb; Tue, 3 Nov 2020 13:45:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr86SdnLN/zP3kPj3D/neEhEtFLDFV5/8Vw9aZA/aOrV0mu4YhKqbzCxJAbxmZmpbG07dI X-Received: by 2002:a17:906:65b:: with SMTP id t27mr21715509ejb.74.1604439945146; Tue, 03 Nov 2020 13:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604439945; cv=none; d=google.com; s=arc-20160816; b=H/KLYjWuNyODAbPNsPRmyaaQGmKGRQdMOFhHGN1UbDq2PzoN8R7klf+KBhEnRgekM1 B7rrNEB6X3+leTvIi+oucYGqYXaxWYG8lZrBYTWxO5i4XOizDp08TgSn++v8rMHDdIlg kiJPBLQu1NmymqJ6pqgTEn4xTBfPXdKik9wBSu2tyqojPBBfKeQ1bGWee3jxwlabsVJa /v+CnKi2Pme36MvKNNBZOuHKpNfVizCTlRgGz0rYzgqnpxHpe7sUATv4UxfbFFvXOrPP 9qEx/XJS+CBnog/y4ofNqcBflMc0+DOjaQl3m53Jek6raOv7o3ahFSiC5cqaTk2E22Nj 0HgQ== 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=oZ7HUsIdWB/icnQdr7TGESN53JrXWo1l3FK22g32Nko=; b=ZKWpDNKAqNwtn/bd7UtlS4krwRRWyZrT9hAai9DubeaVJU24GZs4kdtfqlFob4zbYA v5km7goMIjJHg6Sf9fCTlszgLV8GCmeYmgXwNQuGUBx+lGU3A1S1tlikPxC9/he+zQ+t ZcUZjrKSkYDtLXxPVjvoNNzJHFHEk+UdYZ+dhK/fRmRBXWqQX5BfKDyA+eM1qgmI1tGe FJG4xHfNSDG10WubZACDXBB0bV8qH1ZMr5nMzkd6oeTyYqWJqYx70alRJIy8jdbPaHNd 6SYb23yGIE9z0KfkCR90WMD7N7Ln6e0Sj6DEXclr0sm/fFYCxHBweK8xttuwBIEDiYVg 2QtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=khqth1LY; 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 x7si6807044edr.509.2020.11.03.13.45.22; Tue, 03 Nov 2020 13:45:45 -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=khqth1LY; 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 S1732639AbgKCUy4 (ORCPT + 99 others); Tue, 3 Nov 2020 15:54:56 -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: 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.27.0