]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-ab8500.c: add second resolution to rtc driver
authorAlexandre Torgue <alexandre.torgue@st.com>
Wed, 19 Jun 2013 00:08:05 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:32 +0000 (17:27 +1000)
commitdc60efff9140d4ffc780e9eb380bc4a018ac2591
tree16faf83cbfcc12e3e1ec4a38f1ab57229549606b
parentb2cdf57af0974541c6a5bb4d9cdfa401b1bfcde3
drivers/rtc/rtc-ab8500.c: add second resolution to rtc driver

Android expects the RTC to have second resolution.  On ab8540 cut2 RTC
block has a new register which allows setting seconds for wakeup alarms.

Existing registers (minutes hi, mid and low) have seen their offsets
changed. Here is the new mapping:
  * AlarmSec     (A) 0x22
  * AlarmMinLow  (M) from 0x8 to 0x23
  * AlarmMinMid  (M) from 0x9 to 0x24
  * AlarmMinHigh (M) from 0xA to 0x25

Signed-off-by: Julien Delacou <julien.delacou@stericsson.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-ab8500.c