zephyr/drivers/clock_control
Maciek Borzecki 14482f0940 clock_control: extend API with clock rate query operation
Extend the public API of clock_control driver with a function for
querying of clock rate driving given peripheral. This is useful when the
driver must calculate or configurae values that depend on the rate of
clock driving this subsystem.

A baud rate setting of UART port is an example of such operation. To
configure a particular baud rate the driver may need to set the internal
counters of UART port, where the actual value will depend on the clock
rate for this peripheral.

The implementation returns DEV_NO_SUPPORT for clock_control drivers that
do not implement such functionality.

Change-Id: I4e7ec96cd3678a4bb1ff289b0247488289310f2d
Origin: Original
Signed-off-by: Maciej Borzecki <maciek.borzecki@gmail.com>
2016-03-16 18:09:32 +00:00
..
Kconfig clock_control/Kconfig: move quark_se entries to separate file 2016-03-16 18:08:11 +00:00
Kconfig.quark_se clock_control/Kconfig: move quark_se entries to separate file 2016-03-16 18:08:11 +00:00
Makefile clock: add Quark SE clock control 2016-02-05 20:24:48 -05:00
quark_se_clock_control.c clock_control: extend API with clock rate query operation 2016-03-16 18:09:32 +00:00