]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx-common: timer: clean up
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Apr 2017 09:05:55 +0000 (17:05 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 11 May 2017 10:31:16 +0000 (12:31 +0200)
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

index ee6eff2b28cada0fca04044a90873246d879454f..9b011147d66861ccc8c9d2188a8de9536522901b 100644 (file)
@@ -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;
 }