summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ds1216.c
diff options
context:
space:
mode:
authorMylène Josserand <mylene.josserand@free-electrons.com>2016-03-21 20:06:09 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-03-25 04:41:13 +0300
commit59a8383adb75459c9d6766656bccc05950b783ea (patch)
tree1e05f7f7883155af28e9bc43b76cefcd0f8a083a /drivers/rtc/rtc-ds1216.c
parent85062c9b990b1dc8bbb8971ee7d3044a999cf25f (diff)
downloadlinux-59a8383adb75459c9d6766656bccc05950b783ea.tar.xz
rtc: abx80x: handle autocalibration
The autocalibration is separated in two bits to set in Oscillator Control register (0x1c) : - OSEL bit to select the oscillator type (XT or RC). - ACAL bit to select the autocalibration type. These functionnalities are exported in sysfs entries : "oscillator" and "autocalibration". Respectively, the values are "xtal" for XT oscillator and "rc" for RC oscillator and 0 to disable the autocalibration cycle, 512 for a 512 seconds autocalibration cycle and 1024 for a cycle of 1024 seconds. Examples : Set to XT Oscillator echo xtal > /sys/class/rtc/rtc0/device/oscillator Activate an autocalibration every 512 seconds echo 512 > /sys/class/rtc/rtc0/device/autocalibration Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1216.c')
0 files changed, 0 insertions, 0 deletions