]> git.baikalelectronics.ru Git - uboot.git/commit
timer: add OF_PLATDATA support for timer-uclass
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Jul 2017 15:19:58 +0000 (17:19 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:36 +0000 (17:12 +0200)
commit9af6d1987fc8c06ace046a2c184dc89e48d133e8
tree3f62c51e4cda6eec40c1ad1d882e9d3e07cf8c86
parent88ea9c362015f2d87aec78a9d1eb86d3d07b2e23
timer: add OF_PLATDATA support for timer-uclass

The timer-uclass depends on full OF_CONTROL through its interrogation
of /chosen and the code to determine the clock-frequency.

For the OF_PLATDATA case, these code-paths are disabled and it becomes
the timer driver's responsibility to correctly set the clock-frequency
in the uclass priv-data.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/timer-uclass.c