From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752064AbdBULNt (ORCPT ); Tue, 21 Feb 2017 06:13:49 -0500 Received: from smtprelay4.synopsys.com ([198.182.47.9]:41859 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbdBULNl (ORCPT ); Tue, 21 Feb 2017 06:13:41 -0500 From: Vlad Zakharov To: "linux-pm@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "viresh.kumar@linaro.org" , "mturquette@baylibre.com" , "sboyd@codeaurora.org" , "rjw@rjwysocki.net" , "linux-clk@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" Subject: cpufreq: get cpufreq_frequency_table from clk driver Thread-Topic: cpufreq: get cpufreq_frequency_table from clk driver Thread-Index: AQHSjDOLuBd/d7waVUGOYJla1ym0EQ== Date: Tue, 21 Feb 2017 11:13:35 +0000 Message-ID: <1487675614.25108.30.camel@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.121.8.100] Content-Type: text/plain; charset="utf-8" Content-ID: <5E738EEAB7746F4F93A8B73912CDD7FB@internal.synopsys.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v1LBDqO1003770 Hello, I am trying to implement a cpufreq driver for ARCHS cpu. And I faced with one question I am not able to answer myself. cpufreq framework allows us using cpufreq frequency tables that store available for current policy range of frequencies with any additional data. As I understand for example it can be clock configurations for this particular frequency. Also I have a clk driver that manages actual cpu frequency. In fact it uses very similar tables that contain frequencies and corresponding values of clock configurations registers that are to be set up with current frequency. So the question is can I get such tables from clk driver somehow? I would be very convenient: this tables differs for ARCHS CPU. E.g. on different boards it is clocked by different PLLs and oscillators. Do you know any way to get the tables from clk driver? Any suggestions or comments might be very helpful. Thanks! -- Best regards, Vlad Zakharov