1
0
Fork 0
remarkable-uboot/include/dm
Simon Glass f26c8a8e77 dm: Add a clock uclass
Clocks are an important feature of platforms and have become increasing
complex with time. Most modern SoCs have multiple PLLs and dozens of clock
dividers which distribute clocks to on-chip peripherals.

Some SoC implementations have a clock API which is private to that SoC family,
e.g. Tegra and Exynos. This is useful but it would be better to have a
common API that can be understood and used throughout U-Boot.

Add a simple clock API as a starting point. It supports querying and setting
the rate of a clock. Each clock is a device. To reduce memory and processing
overhead the concept of peripheral clocks is provided. These do not need to
be explicit devices - it is possible to write a driver that can adjust the
I2C clock (for example) without an explicit I2C clock device. This can
dramatically reduce the number of devices (and associated overhead) in a
complex SoC.

Clocks are referenced by a number, and it is expected that SoCs will define
that numbering themselves via an enum.

Signed-off-by: Simon Glass <sjg@chromium.org>
2015-07-21 17:39:29 -06:00
..
platform_data dm: sh: serial: Add support driver model 2015-02-12 15:17:17 -07:00
device-internal.h dm: core: Convert driver_bind() to use const 2015-04-18 11:11:19 -06:00
device.h dm: core: Correct device_get_child_by_of_offset() parameter 2015-07-21 17:39:23 -06:00
lists.h dm: core: Add a function to bind a driver for a device tree node 2015-04-29 21:02:32 -06:00
platdata.h dm: core: Allow a list of devices to be declared in one step 2014-10-22 10:36:54 -06:00
root.h dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
test.h test: dm: Move the dm tests over to the ut command 2015-05-21 09:16:17 -04:00
uclass-id.h dm: Add a clock uclass 2015-07-21 17:39:29 -06:00
uclass-internal.h dm: core: Remove unbind operations when not required 2015-04-23 09:05:52 -06:00
uclass.h dm: core: precise comments for get/find device by name 2015-04-22 11:03:16 -06:00
util.h dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00