]> asedeno.scripts.mit.edu Git - linux.git/commit
cpufreq: qoriq: enhance bus frequency calculation
authorYuanTian Tang <andy.tang@nxp.com>
Fri, 10 Mar 2017 01:28:43 +0000 (09:28 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 12 Mar 2017 22:10:53 +0000 (23:10 +0100)
commitb51d3388e2350138f6acc5cacda009a67f6f6352
tree98b7b60180ebe6afc553f478200bc6e8bebea4d0
parentcf9a2438257da2cbc55f82085b2e0add7583cf79
cpufreq: qoriq: enhance bus frequency calculation

On some platforms, property device-type may be missed in soc node
in dts which caused the bus-frequency can not be obtained correctly.

This patch enhanced the bus-frequency calculation. When property
device-type is missed in dts, bus-frequency will be obtained by
looking up clock table to get platform clock and hence get its
frequency.

Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/qoriq-cpufreq.c