CHROMIUM: mfd: s5m-core: Enable low-jitter via DT.
authorTodd Broch <tbroch@chromium.org>
Wed, 20 Feb 2013 16:34:45 +0000 (08:34 -0800)
committerChromeBot <chrome-bot@google.com>
Wed, 20 Feb 2013 21:36:48 +0000 (13:36 -0800)
commit2488c7ac30fe9211830a0f444ff79b4edca35734
tree8588302f40d5ff6455fb6464dafd9ba8d09bd8cc
parent00d6e6593271d8ca1cad23890c4b12748ff6ca98
CHROMIUM: mfd: s5m-core: Enable low-jitter via DT.

Provide facility via device tree to activate the low-jitter
capababilities of the 32Khz clocks (BT, CP, AP).  Note the feature is
enabled for all the clocks or none per the design

Additionally fixed two small nits:
1. added __devinit to declaration of probe function
2. fixed function name of s5m87xx_i2c_parse_dt_pdata for the case when
   CONFIG_OF is undefined

BUG=chrome-os-partner:17833 chrome-os-partner:17858
TEST=manual
1. boot kernel, login as root
2. examine CTRL1 (0xa) register and see Low Jitter_EN bit (<3>) is
enabled for the spring design.
  i2cget -y -f 0 0x66 0xa
  0xf

Signed-off-by: Todd Broch <tbroch@chromium.org>
Change-Id: I80750a3049806692c1c1e214982577f2f39899e1
Reviewed-on: https://gerrit.chromium.org/gerrit/43624
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
drivers/mfd/s5m-core.c
include/linux/mfd/s5m87xx/s5m-core.h