]> git.sur5r.net Git - u-boot/commit
arm: imx-common: introduce back usec2ticks
authorPeng Fan <van.freenix@gmail.com>
Thu, 25 Aug 2016 17:03:17 +0000 (19:03 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 17 Oct 2016 07:04:43 +0000 (09:04 +0200)
commit436baaa2f58b06dded81388853d0ae1277af5bbe
tree41fb88f7d8ec8284a58acc713f49372aff29280e
parent6e1f4d2652e79c5afc3a2b1411ff261bc355bdcb
arm: imx-common: introduce back usec2ticks

This commit "2bb014820c49a63902103bac710bc86b5772e843"
do some clean up to use the code in lib/time.c.
But usec2ticks is still being used by security related job ring code.
Bring back the function to avoid build break when CONFIG_FSL_CAAM
is defined.
The computation logic has been changed, using 64-bit variable
to ease the process, making it work on older (MX5) platforms.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
arch/arm/imx-common/timer.c