intel_scu_ipc: calculate divisor for osc clk
authorTuukka Toivonen <tuukka.toivonen@intel.com>
Wed, 14 Dec 2011 15:11:28 +0000 (17:11 +0200)
committerbuildbot <buildbot@intel.com>
Thu, 26 Jan 2012 08:24:49 +0000 (00:24 -0800)
commit88810d3466afe40bfc6d8ce5df5a983116a4ebf0
tree792f3bc3f920f20152ef9c3aced82a2eee285ef2
parentf4c796bf6eac850c10efe3620006f594785360e9
intel_scu_ipc: calculate divisor for osc clk

BZ: 16972 20596

Accept requested frequency as parameter to intel_scu_ipc_osc_clk()
when a clock is enabled. The base frequency varies between
different platforms so take it into account in the calculations.

Also fix any calls to intel_scu_ipc_osc_clk() to provide the
requested frequency.

Change-Id: Id1ca4f1067e766de744543018fe5427db2de0b75
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/32620
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/include/asm/intel_scu_ipc.h
arch/x86/platform/mrst/mrst.c
drivers/platform/x86/intel_scu_ipc.c