• Johan Hovold's avatar
    rtc: omap: fix clock-source configuration · 9128a05d
    Johan Hovold authored
    commit 44c63a57 upstream.
    
    This series fixes a few issues with the omap rtc-driver, cleans up a
    bit, adds device abstraction, and finally adds support for the PMIC
    control feature found in some revisions of this RTC IP block.
    
    Ultimately, this allows for powering off the Beaglebone and waking it up
    again on RTC alarms.
    
    This patch (of 20):
    
    Make sure not to reset the clock-source configuration when enabling the
    32kHz clock mux.
    
    Until the clock source can be configured through device tree we must not
    overwrite settings made by the bootloader (e.g.  clock-source
    selection).
    
    Fixes: cd914bba ("drivers/rtc/rtc-omap.c: add support for enabling 32khz clock")
    Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
    Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
    Tested-by: default avatarFelipe Balbi <balbi@ti.com>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Tony Lindgren <tony@atomide.com>
    Cc: Benot Cousson <bcousson@baylibre.com>
    Cc: Lokesh Vutla <lokeshvutla@ti.com>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Sekhar Nori <nsekhar@ti.com>
    Cc: Tero Kristo <t-kristo@ti.com>
    Cc: Keerthy J <j-keerthy@ti.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
    9128a05d
rtc-omap.c 15.9 KB