Patchwork [U-Boot,11/13] mx53smd: Place machine ID into board config

login
register
mail settings
Submitter Fabio Estevam
Date Sept. 22, 2011, 6:07 p.m.
Message ID <1316714842-18271-11-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/115990/
State Accepted
Commit c4c596fb4653f163eaa704584b02a0adf5df70e8
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - Sept. 22, 2011, 6:07 p.m.
Let common code set the machine ID.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/freescale/mx53smd/mx53smd.c |    1 -
 include/configs/mx53smd.h         |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)
Stefano Babic - Sept. 23, 2011, 8:54 a.m.
On 09/22/2011 08:07 PM, Fabio Estevam wrote:
> Let common code set the machine ID.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  board/freescale/mx53smd/mx53smd.c |    1 -
>  include/configs/mx53smd.h         |    4 +++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/board/freescale/mx53smd/mx53smd.c b/board/freescale/mx53smd/mx53smd.c
> index 4a7ee55..776784f 100644
> --- a/board/freescale/mx53smd/mx53smd.c
> +++ b/board/freescale/mx53smd/mx53smd.c
> @@ -214,7 +214,6 @@ int board_early_init_f(void)
>  
>  int board_init(void)
>  {
> -	gd->bd->bi_arch_number = MACH_TYPE_MX53_SMD;
>  	/* address of boot parameters */
>  	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
>  
> diff --git a/include/configs/mx53smd.h b/include/configs/mx53smd.h
> index 49f8c6e..261f0bc 100644
> --- a/include/configs/mx53smd.h
> +++ b/include/configs/mx53smd.h
> @@ -1,7 +1,7 @@
>  /*
>   * Copyright (C) 2011 Freescale Semiconductor, Inc.
>   *
> - * Configuration settings for the MX53-SMDFreescale board.
> + * Configuration settings for the MX53SMD Freescale board.
>   *
>   * This program is free software; you can redistribute it and/or
>   * modify it under the terms of the GNU General Public License as
> @@ -29,6 +29,8 @@
>  #define CONFIG_DISPLAY_CPUINFO
>  #define CONFIG_DISPLAY_BOARDINFO
>  
> +#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_SMD
> +
>  #include <asm/arch/imx-regs.h>
>  
>  #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */

Applied to u-boot-imx, next branch, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/board/freescale/mx53smd/mx53smd.c b/board/freescale/mx53smd/mx53smd.c
index 4a7ee55..776784f 100644
--- a/board/freescale/mx53smd/mx53smd.c
+++ b/board/freescale/mx53smd/mx53smd.c
@@ -214,7 +214,6 @@  int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX53_SMD;
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
diff --git a/include/configs/mx53smd.h b/include/configs/mx53smd.h
index 49f8c6e..261f0bc 100644
--- a/include/configs/mx53smd.h
+++ b/include/configs/mx53smd.h
@@ -1,7 +1,7 @@ 
 /*
  * Copyright (C) 2011 Freescale Semiconductor, Inc.
  *
- * Configuration settings for the MX53-SMDFreescale board.
+ * Configuration settings for the MX53SMD Freescale board.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -29,6 +29,8 @@ 
 #define CONFIG_DISPLAY_CPUINFO
 #define CONFIG_DISPLAY_BOARDINFO
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX53_SMD
+
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */