mfd: twl-core: Add API to query the HFCLK rate
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 10 Sep 2012 10:46:22 +0000 (13:46 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 18 Sep 2012 13:44:39 +0000 (15:44 +0200)
commit2275c544cb824b469a386e411cbcaa01a19d4f55
tree3bc3a273d49bc2b21613721c8e8d91dd54f6db58
parentcdf4b67099ee8e038178a9e7d83c1aa16618c1ca
mfd: twl-core: Add API to query the HFCLK rate

CFG_BOOT register's HFCLK_FREQ field hold information about the used HFCLK
frequency.
Add possibility for users to get the configured rate based on this
register.
This register was configured during boot, without it the chip would not
operate correctly, so we can trust on this information.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c
include/linux/i2c/twl.h