intel_scu_ipc: calculate divisor properly for osc clk
authorTuukka Toivonen <tuukka.toivonen@intel.com>
Fri, 9 Mar 2012 14:41:45 +0000 (16:41 +0200)
committerbuildbot <buildbot@intel.com>
Mon, 19 Mar 2012 15:01:14 +0000 (08:01 -0700)
commit7336241de2e4a0a4c119b62959ac575e262b8857
tree9f21fbe9bf9d2c50a961c32fbdddb009a3e67f66
parentea5eab4bbc664699490ab49e8a7f5237b1acd4d9
intel_scu_ipc: calculate divisor properly for osc clk

BZ: 26932

intel_scu_ipc_osc_clk() calculates incorrectly the clock divisor.
This affects at least camera with 9.6 MHz clock in Clovertrail.
Fix it.

Change-Id: Ib35fa790346cb316288e5244f0d65d3b2accfcc4
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/38189
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/platform/x86/intel_scu_ipc.c