dm: timer: uclass: add timer init in uclass driver to add timer device
authorMugunthan V N <mugunthanvnm@ti.com>
Sat, 16 Jan 2016 16:03:58 +0000 (21:33 +0530)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:21 +0000 (19:06 -0700)
commitc8336975381d481829e3e6a81c38cd118826ca03
treefae575cc1e4752a6a2272fd3607c1d124e1a1e5d
parent28a6c01187d30f0e7b7dbe6e4e198e76ce6246f1
dm: timer: uclass: add timer init in uclass driver to add timer device

Adding timer init function in timer-uclass driver to create and
initialize the timer device on platforms where u-boot,dm-pre-reloc
is not used. Since there will be multiple timer devices in the
system, adding a tick-timer node in chosen node to know which
timer device to be used as tick timer in u-boot.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
doc/device-tree-bindings/chosen.txt [new file with mode: 0644]
drivers/timer/timer-uclass.c
include/timer.h
lib/time.c