Message ID | 1316714842-18271-7-git-send-email-fabio.estevam@freescale.com |
---|---|
State | Accepted |
Commit | da3598ac7a6e61f86fdb640fcc8c12c43c76b3de |
Delegated to: | Stefano Babic |
Headers | show |
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/mx31ads/mx31ads.c | 1 - > include/configs/mx31ads.h | 2 ++ > 2 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/board/freescale/mx31ads/mx31ads.c b/board/freescale/mx31ads/mx31ads.c > index 4d99f49..4dd1e63 100644 > --- a/board/freescale/mx31ads/mx31ads.c > +++ b/board/freescale/mx31ads/mx31ads.c > @@ -99,7 +99,6 @@ int board_early_init_f(void) > > int board_init(void) > { > - gd->bd->bi_arch_number = MACH_TYPE_MX31ADS; /* board id for linux */ > gd->bd->bi_boot_params = 0x80000100; /* adress of boot parameters */ > > return 0; > diff --git a/include/configs/mx31ads.h b/include/configs/mx31ads.h > index adb2ee1..0bea858 100644 > --- a/include/configs/mx31ads.h > +++ b/include/configs/mx31ads.h > @@ -35,6 +35,8 @@ > > #define CONFIG_SYS_TEXT_BASE 0xA0000000 > > +#define CONFIG_MACH_TYPE MACH_TYPE_MX31ADS > + > /* > * Disabled for now due to build problems under Debian and a significant increase > * in the final file size: 144260 vs. 109536 Bytes. Applied to u-boot-imx, next branch, thanks. Best regards, Stefano Babic
diff --git a/board/freescale/mx31ads/mx31ads.c b/board/freescale/mx31ads/mx31ads.c index 4d99f49..4dd1e63 100644 --- a/board/freescale/mx31ads/mx31ads.c +++ b/board/freescale/mx31ads/mx31ads.c @@ -99,7 +99,6 @@ int board_early_init_f(void) int board_init(void) { - gd->bd->bi_arch_number = MACH_TYPE_MX31ADS; /* board id for linux */ gd->bd->bi_boot_params = 0x80000100; /* adress of boot parameters */ return 0; diff --git a/include/configs/mx31ads.h b/include/configs/mx31ads.h index adb2ee1..0bea858 100644 --- a/include/configs/mx31ads.h +++ b/include/configs/mx31ads.h @@ -35,6 +35,8 @@ #define CONFIG_SYS_TEXT_BASE 0xA0000000 +#define CONFIG_MACH_TYPE MACH_TYPE_MX31ADS + /* * Disabled for now due to build problems under Debian and a significant increase * in the final file size: 144260 vs. 109536 Bytes.
Let common code set the machine ID. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> --- board/freescale/mx31ads/mx31ads.c | 1 - include/configs/mx31ads.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletions(-)