Skip to contentSkip to conversation

imx-common: timer: clean up

PATCH New Peng Fan 2 participants 3 messages Apr 19, 2017 – May 11, 2017

Subsystems (2)
lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 imx-common: timer: clean up

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

Cc Stefano Babic <[email protected]>
---
 arch/arm/imx-common/timer.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/imx-common/timer.c +0 -3
index ee6eff2..9b01114 100644
@@ -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;
 }
 
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/1 imx-common: timer: clean up

Quoted 14 lines · Peng Fan

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

Cc Stefano Babic <[email protected]>
---
 arch/arm/imx-common/timer.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/imx-common/timer.c +0 -0
index ee6eff2..9b01114 100644

arch/arm/imx-common/timer.c int timer_init(void) · line 110

Quoted 9 lines
arch/arm/imx-common/timer.c +0 -3
@@ -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;
 }
 

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#2 lore raw

PATCH 1/1 imx-common: timer: clean up

In reply to Peng Fan
Quoted 14 lines · Peng Fan

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

Cc Stefano Babic <[email protected]>
---
 arch/arm/imx-common/timer.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/imx-common/timer.c +0 -0
index ee6eff2..9b01114 100644

arch/arm/imx-common/timer.c int timer_init(void) · line 110

Quoted 9 lines
arch/arm/imx-common/timer.c +0 -3
@@ -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;
 }
 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================