Patchwork [U-Boot,1/3] gplugd: use CONFIG_MACH_TYPE instead of MACH_TYPE_SHEEVAD

login
register
mail settings
Submitter Troy Kisky
Date March 1, 2012, 9:13 p.m.
Message ID <1330636394-25173-1-git-send-email-troy.kisky@boundarydevices.com>
Download mbox | patch
Permalink /patch/144131/
State Rejected
Delegated to: Stefano Babic
Headers show

Comments

Troy Kisky - March 1, 2012, 9:13 p.m.
mach-type update will rename MACH_TYPE_SHEEVAD to
MACH_TYPE_GPLUGD

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
---
 board/Marvell/gplugd/gplugd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Stefano Babic - March 3, 2012, 10:15 a.m.
On 01/03/2012 22:13, Troy Kisky wrote:
> mach-type update will rename MACH_TYPE_SHEEVAD to
> MACH_TYPE_GPLUGD
> 
> Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
> ---
>  board/Marvell/gplugd/gplugd.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/board/Marvell/gplugd/gplugd.c b/board/Marvell/gplugd/gplugd.c
> index a697c19..8d9916a 100644
> --- a/board/Marvell/gplugd/gplugd.c
> +++ b/board/Marvell/gplugd/gplugd.c
> @@ -92,7 +92,7 @@ int board_init(void)
>  		(struct armd1apb2_registers *)ARMD1_APBC2_BASE;
>  
>  	/* arch number of Board */
> -	gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD;
> +	gd->bd->bi_arch_number = CONFIG_MACH_TYPE;

You do not need it to add this line. This is already done in common code
when CONFIG_MACH_TYPE is set.

Best regards,
Stefano Babic

Patch

diff --git a/board/Marvell/gplugd/gplugd.c b/board/Marvell/gplugd/gplugd.c
index a697c19..8d9916a 100644
--- a/board/Marvell/gplugd/gplugd.c
+++ b/board/Marvell/gplugd/gplugd.c
@@ -92,7 +92,7 @@  int board_init(void)
 		(struct armd1apb2_registers *)ARMD1_APBC2_BASE;
 
 	/* arch number of Board */
-	gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD;
+	gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
 	/* Assert PHY_RST# */