Patchwork [U-Boot,8/13] imx31_litekit: 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-8-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/115982/
State Accepted
Commit 4c414387308b2e08479080ab07e03c9259d38d6f
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/logicpd/imx31_litekit/imx31_litekit.c |    1 -
 include/configs/imx31_litekit.h             |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
Stefano Babic - Sept. 23, 2011, 8:53 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/logicpd/imx31_litekit/imx31_litekit.c |    1 -
>  include/configs/imx31_litekit.h             |    2 ++
>  2 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/board/logicpd/imx31_litekit/imx31_litekit.c b/board/logicpd/imx31_litekit/imx31_litekit.c
> index 0402a0b..7214008 100644
> --- a/board/logicpd/imx31_litekit/imx31_litekit.c
> +++ b/board/logicpd/imx31_litekit/imx31_litekit.c
> @@ -70,7 +70,6 @@ int board_early_init_f(void)
>  
>  int board_init(void)
>  {
> -	gd->bd->bi_arch_number = MACH_TYPE_MX31LITE; /* board id for linux */
>  	gd->bd->bi_boot_params = (0x80000100);	/* adress of boot parameters */
>  
>  	return 0;
> diff --git a/include/configs/imx31_litekit.h b/include/configs/imx31_litekit.h
> index 2a02b3d..5e976bc 100644
> --- a/include/configs/imx31_litekit.h
> +++ b/include/configs/imx31_litekit.h
> @@ -41,6 +41,8 @@
>  
>  #define CONFIG_SYS_TEXT_BASE	0xa0000000
>  
> +#define CONFIG_MACH_TYPE	MACH_TYPE_MX31LITE
> +
>  /* Temporarily disabled */
>  #if 0
>  #define CONFIG_OF_LIBFDT		1

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

Best regards,
Stefano Babic

Patch

diff --git a/board/logicpd/imx31_litekit/imx31_litekit.c b/board/logicpd/imx31_litekit/imx31_litekit.c
index 0402a0b..7214008 100644
--- a/board/logicpd/imx31_litekit/imx31_litekit.c
+++ b/board/logicpd/imx31_litekit/imx31_litekit.c
@@ -70,7 +70,6 @@  int board_early_init_f(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_MX31LITE; /* board id for linux */
 	gd->bd->bi_boot_params = (0x80000100);	/* adress of boot parameters */
 
 	return 0;
diff --git a/include/configs/imx31_litekit.h b/include/configs/imx31_litekit.h
index 2a02b3d..5e976bc 100644
--- a/include/configs/imx31_litekit.h
+++ b/include/configs/imx31_litekit.h
@@ -41,6 +41,8 @@ 
 
 #define CONFIG_SYS_TEXT_BASE	0xa0000000
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_MX31LITE
+
 /* Temporarily disabled */
 #if 0
 #define CONFIG_OF_LIBFDT		1