rtc:ds3232/ds3231: Add support to generate 32KHz output
authorPriyanka Jain <Priyanka.Jain@freescale.com>
Mon, 29 Jun 2015 10:09:23 +0000 (15:39 +0530)
committerYork Sun <yorksun@freescale.com>
Wed, 2 Sep 2015 02:37:23 +0000 (21:37 -0500)
commitc340941e443748bbcd0e35172b481ea2077d2582
treef90085efd86b1abdb69abb100135ca190055dfdf
parentb7e84c93c450480ca4ff51ad2eb56bd83c1dc368
rtc:ds3232/ds3231: Add support to generate 32KHz output

RTC devices can generate 32KHz output if for
-DS3232 device, EN32KHz bit and BB32KHz bit are set
-DS3231 device, EN32KHz bit is set, BB32KHz bit is don't care

Patch adds rtc_enable_32khz_output() which when called
will enable 32KHz output on 32KHz pin

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/rtc/ds3231.c
include/rtc.h