ARM: tegra: Initialize timer earlier
authorThierry Reding <treding@nvidia.com>
Tue, 28 Jul 2015 09:35:53 +0000 (11:35 +0200)
committerTom Warren <twarren@nvidia.com>
Tue, 28 Jul 2015 17:30:18 +0000 (10:30 -0700)
commitaa4418770ef9c143b0027e5038c690539b0ebb1a
tree60ff9ae9c218eeda8c103dcc44dc8ab9f21a0d2f
parent6527268d6e8628cd121376fd0ceed2be81ebd64f
ARM: tegra: Initialize timer earlier

A subsequent patch will enable the use of the architected timer on
ARMv8. Doing so implies that udelay() will be backed by this timer
implementation, and hence the architected timer must be ready when
udelay() is first called. The first time udelay() is used is while
resetting the debug UART, which happens very early. Make sure that
arch_timer_init() is called before that.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/mach-tegra/board2.c
arch/arm/mach-tegra/clock.c