]> asedeno.scripts.mit.edu Git - linux.git/commit
mfd: Add support for enabling tps65910 external 32-kHz oscillator
authorJohan Hovold <jhovold@gmail.com>
Thu, 28 Jun 2012 10:20:21 +0000 (12:20 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jul 2012 22:16:14 +0000 (00:16 +0200)
commit712db99df155eeef7bbab8677d8a02d0eff50d11
treea3fad6d54e08614df20385818702568afa9eed0f
parent54210c97c8bfff67a4c5ec09ff797543bf291d6b
mfd: Add support for enabling tps65910 external 32-kHz oscillator

Add flag to platform data to enable external 32-kHz crystal oscillator
(or square wave) input.

The tps6591x can use either an internal 32-kHz RC oscillator or an
external crystal (or square wave) to generate the 32-kHz clock.

The default setting depends on the selected boot mode. In boot mode 00
the internal RC oscillator is used at power-on, but the external crystal
oscillator (or square wave) can be enabled by clearing the ck32k_ctrl
flag in the device control register.

Note that there is no way to switch from the external crystal oscillator
to the internal RC oscillator.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps65910.c
include/linux/mfd/tps65910.h