diff mbox

[U-Boot,3/4] vision2: Place machine ID into board config

Message ID 1316782252-29098-3-git-send-email-fabio.estevam@freescale.com
State Accepted
Commit db545e49b7981b1db574183513e64115503b2693
Delegated to: Stefano Babic
Headers show

Commit Message

Fabio Estevam Sept. 23, 2011, 12:50 p.m. UTC
Let common code set the machine ID.

Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/ttcontrol/vision2/vision2.c |    1 -
 include/configs/vision2.h         |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)

Comments

Stefano Babic Sept. 24, 2011, 6:39 a.m. UTC | #1
Am 23/09/2011 14:50, schrieb Fabio Estevam:
> Let common code set the machine ID.
>
> Cc: Stefano Babic <sbabic@denx.de>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  board/ttcontrol/vision2/vision2.c |    1 -
>  include/configs/vision2.h         |    2 ++
>  2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/board/ttcontrol/vision2/vision2.c b/board/ttcontrol/vision2/vision2.c
> index 17a2558..ebca7b6 100644
> --- a/board/ttcontrol/vision2/vision2.c
> +++ b/board/ttcontrol/vision2/vision2.c
> @@ -653,7 +653,6 @@ void lcd_enable(void)
>  
>  int board_init(void)
>  {
> -	gd->bd->bi_arch_number = MACH_TYPE_TTC_VISION2;	/* board id for linux */
>  	/* address of boot parameters */
>  	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
>  
> diff --git a/include/configs/vision2.h b/include/configs/vision2.h
> index b5c7357..16881a9 100644
> --- a/include/configs/vision2.h
> +++ b/include/configs/vision2.h
> @@ -41,6 +41,8 @@
>  #define CONFIG_INITRD_TAG
>  #define BOARD_LATE_INIT
>  
> +#define CONFIG_MACH_TYPE	MACH_TYPE_TTC_VISION2
> +
>  /*
>   * Size of malloc() pool
>   */

Acked-by: Stefano Babic <sbabic@denx.de>
diff mbox

Patch

diff --git a/board/ttcontrol/vision2/vision2.c b/board/ttcontrol/vision2/vision2.c
index 17a2558..ebca7b6 100644
--- a/board/ttcontrol/vision2/vision2.c
+++ b/board/ttcontrol/vision2/vision2.c
@@ -653,7 +653,6 @@  void lcd_enable(void)
 
 int board_init(void)
 {
-	gd->bd->bi_arch_number = MACH_TYPE_TTC_VISION2;	/* board id for linux */
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
diff --git a/include/configs/vision2.h b/include/configs/vision2.h
index b5c7357..16881a9 100644
--- a/include/configs/vision2.h
+++ b/include/configs/vision2.h
@@ -41,6 +41,8 @@ 
 #define CONFIG_INITRD_TAG
 #define BOARD_LATE_INIT
 
+#define CONFIG_MACH_TYPE	MACH_TYPE_TTC_VISION2
+
 /*
  * Size of malloc() pool
  */