exynos5250: Add mct_start to the timer init blob in timer_monotonic_get

A previous change removed init_timer from timer_monotonic_get because its old
implementation set up the PWM based timer which was going away. It would still
be a good idea to initialize the timer at that point, just not the pwm.

Change-Id: I4816710ec2c9d5ca53b704c6b9397bcfac183fdc
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/64160
Reviewed-by: Ronald G. Minnich <rminnich@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/4419
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Gabe Black 2013-07-31 22:50:21 -07:00 committed by Patrick Georgi
parent 61cd11187d
commit 88fdd930ac
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ void timer_monotonic_get(struct mono_time *mt)
uint64_t usecs_elapsed; uint64_t usecs_elapsed;
if (!mono_counter.initialized) { if (!mono_counter.initialized) {
mct_start();
mono_counter.last_value = mct_raw_value(); mono_counter.last_value = mct_raw_value();
mono_counter.initialized = 1; mono_counter.initialized = 1;
} }