Patchwork [U-Boot,1/2] socfpga/spl: Remove timer_init from spl_board_init

login
register
mail settings
Submitter Vikram Narayanan
Date Oct. 23, 2012, 10:21 a.m.
Message ID <50866F9C.1070608@gmail.com>
Download mbox | patch
Permalink /patch/193421/
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Comments

Vikram Narayanan - Oct. 23, 2012, 10:21 a.m.
Timer is initialized already in board_init_r function in
(common/spl/spl.c) No need to initialize it again

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
---
 arch/arm/cpu/armv7/socfpga/spl.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
Albert ARIBAUD - Nov. 4, 2012, 3:22 p.m.
Hi Vikram,

On Tue, 23 Oct 2012 15:51:16 +0530, Vikram Narayanan
<vikram186@gmail.com> wrote:

> Timer is initialized already in board_init_r function in
> (common/spl/spl.c) No need to initialize it again
> 
> Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
> Cc: Dinh Nguyen <dinguyen@altera.com>
> ---
>  arch/arm/cpu/armv7/socfpga/spl.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/socfpga/spl.c b/arch/arm/cpu/armv7/socfpga/spl.c
> index 944238b..23053fd 100644
> --- a/arch/arm/cpu/armv7/socfpga/spl.c
> +++ b/arch/arm/cpu/armv7/socfpga/spl.c
> @@ -37,9 +37,6 @@ u32 spl_boot_device(void)
>   */
>  void spl_board_init(void)
>  {
> -	/* init timer for enabling delay function */
> -	timer_init();
> -
>  	/* de-assert reset for peripherals and bridges based on handoff */
>  	reset_deassert_peripherals_handoff();
>  

Applied to u-boot-arm/master, thanks!

Amicalement,

Patch

diff --git a/arch/arm/cpu/armv7/socfpga/spl.c b/arch/arm/cpu/armv7/socfpga/spl.c
index 944238b..23053fd 100644
--- a/arch/arm/cpu/armv7/socfpga/spl.c
+++ b/arch/arm/cpu/armv7/socfpga/spl.c
@@ -37,9 +37,6 @@  u32 spl_boot_device(void)
  */
 void spl_board_init(void)
 {
-	/* init timer for enabling delay function */
-	timer_init();
-
 	/* de-assert reset for peripherals and bridges based on handoff */
 	reset_deassert_peripherals_handoff();