From 2096da452b32c7fc52e9fbd6c38e874ce635d664 Mon Sep 17 00:00:00 2001
From: Peng Fan <peng.fan@nxp.com>
Date: Wed, 19 Apr 2017 17:05:55 +0800
Subject: [PATCH] imx-common: timer: clean up

Drop the unneeded code. lib/time.c use timebase_l/h.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
---
 arch/arm/imx-common/timer.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/imx-common/timer.c b/arch/arm/imx-common/timer.c
index ee6eff2b28c..9b011147d66 100644
--- a/arch/arm/imx-common/timer.c
+++ b/arch/arm/imx-common/timer.c
@@ -105,9 +105,6 @@ int timer_init(void)
 #endif
 	__raw_writel(i, &cur_gpt->control);
 
-	gd->arch.tbl = __raw_readl(&cur_gpt->counter);
-	gd->arch.tbu = 0;
-
 	return 0;
 }
 
-- 
GitLab