public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mx51evk: Remove unused get_board_rev function
@ 2011-10-26 19:01 Fabio Estevam
  2011-10-27  9:08 ` Stefano Babic
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2011-10-26 19:01 UTC (permalink / raw)
  To: u-boot

No board information is passed for MX51EVK, so remove get_board_rev function.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Stefano,

This patch applies on u-boot-imx with my previous mx51evk.h cleanup patch applied:
http://www.mail-archive.com/u-boot at lists.denx.de/msg66552.html

 board/freescale/mx51evk/mx51evk.c |    9 ---------
 include/configs/mx51evk.h         |    1 -
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index 9cd5b3c..5ef4302 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -38,8 +38,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static u32 system_rev;
-
 #ifdef CONFIG_FSL_ESDHC
 struct fsl_esdhc_cfg esdhc_cfg[2] = {
 	{MMC_SDHC1_BASE_ADDR, 1},
@@ -47,11 +45,6 @@ struct fsl_esdhc_cfg esdhc_cfg[2] = {
 };
 #endif
 
-u32 get_board_rev(void)
-{
-	return system_rev;
-}
-
 int dram_init(void)
 {
 	/* dram_init must store complete ramsize in gd->ram_size */
@@ -404,8 +397,6 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-	system_rev = get_cpu_rev();
-
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index 053013f..1db64e0 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -42,7 +42,6 @@
  */
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] mx51evk: Remove unused get_board_rev function
  2011-10-26 19:01 [U-Boot] [PATCH] mx51evk: Remove unused get_board_rev function Fabio Estevam
@ 2011-10-27  9:08 ` Stefano Babic
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2011-10-27  9:08 UTC (permalink / raw)
  To: u-boot

On 10/26/2011 09:01 PM, Fabio Estevam wrote:
> No board information is passed for MX51EVK, so remove get_board_rev function.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Stefano,
> 
> This patch applies on u-boot-imx with my previous mx51evk.h cleanup patch applied:
> http://www.mail-archive.com/u-boot at lists.denx.de/msg66552.html
> 
>  board/freescale/mx51evk/mx51evk.c |    9 ---------
>  include/configs/mx51evk.h         |    1 -
>  2 files changed, 0 insertions(+), 10 deletions(-)
> 

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-27  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 19:01 [U-Boot] [PATCH] mx51evk: Remove unused get_board_rev function Fabio Estevam
2011-10-27  9:08 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox