Skip to contentSkip to conversation

mx53evk: Remove unneeded '1' from mx51evk.h

PATCH Superseded Fabio Estevam 3 participants 13 messages Oct 27, 2011 – Oct 31, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 mx53evk: Remove unneeded '1' from mx51evk.h

Remove unneeded '1' from mx53evk.h.

---
 include/configs/mx53evk.h |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
include/configs/mx53evk.h +8 -8
index c1941e3..a5d403f 100644
@@ -33,12 +33,12 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG		1
-#define CONFIG_SETUP_MEMORY_TAGS	1
-#define CONFIG_INITRD_TAG		1
+#define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
+#define CONFIG_REVISION_TAG
+#define CONFIG_SETUP_MEMORY_TAGS
+#define CONFIG_INITRD_TAG
 
-#define CONFIG_OF_LIBFDT		1
+#define CONFIG_OF_LIBFDT
 
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 2 * 1024 * 1024)
@@ -51,9 +51,9 @@
 #define CONFIG_SYS_MX53_UART1
 
 /* I2C Configs */
-#define CONFIG_CMD_I2C          1
-#define CONFIG_HARD_I2C         1
-#define CONFIG_I2C_MXC          1
+#define CONFIG_CMD_I2C
+#define CONFIG_HARD_I2C
+#define CONFIG_I2C_MXC
 #define CONFIG_SYS_I2C_MX53_PORT2       1
 #define CONFIG_SYS_I2C_SPEED            100000
 #define CONFIG_SYS_I2C_SLAVE            0xfe
Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/6 mx53evk: Remove unused get_board_rev function

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

---
 board/freescale/mx53evk/mx53evk.c |    5 -----
 include/configs/mx53evk.h         |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx53evk/mx53evk.c +0 -5
index eab9c5f..335661f 100644
@@ -39,11 +39,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-u32 get_board_rev(void)
-{
-	return get_cpu_rev();
-}
-
 int dram_init(void)
 {
 	/* dram_init must store complete ramsize in gd->ram_size */
include/configs/mx53evk.h +0 -1
index a5d403f..f9fc149 100644
@@ -34,7 +34,6 @@
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
Signature · 1 line
1.7.1
#2 lore raw

PATCH 2/6 mx53evk: Remove unused get_board_rev function

2011/10/27 Fabio Estevam <[email protected]>:

Quoted 32 lines

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

---
?board/freescale/mx53evk/mx53evk.c | ? ?5 -----
?include/configs/mx53evk.h ? ? ? ? | ? ?1 -
?2 files changed, 0 insertions(+), 6 deletions(-)

board/freescale/mx53evk/mx53evk.c +0 -5
index eab9c5f..335661f 100644
@@ -39,11 +39,6 @@
 
 ?DECLARE_GLOBAL_DATA_PTR;
 
-u32 get_board_rev(void)
-{
- ? ? ? return get_cpu_rev();
-}
-
 ?int dram_init(void)
 ?{

? ? ? ?/* dram_init must store complete ramsize in gd->ram_size */

include/configs/mx53evk.h +0 -0
index a5d403f..f9fc149 100644
@@ -34,7 +34,6 @@

?#include <asm/arch/imx-regs.h>

Quoted 5 lines

?#define CONFIG_CMDLINE_TAG ? ? ? ? ? ? ? ? ? ? /* enable passing of ATAGs */ -#define CONFIG_REVISION_TAG
?#define CONFIG_SETUP_MEMORY_TAGS
?#define CONFIG_INITRD_TAG

Quoted 9 lines

--
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#3 lore raw

PATCH 2/6 mx53evk: Remove unused get_board_rev function

In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

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

---
 board/freescale/mx53evk/mx53evk.c |    5 -----
 include/configs/mx53evk.h         |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================
#4 lore raw

PATCH 3/6 mx53ard: Remove unused get_board_rev function

In reply to Fabio Estevam

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

---
 board/freescale/mx53ard/mx53ard.c |    5 -----
 include/configs/mx53ard.h         |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx53ard/mx53ard.c +0 -5
index c89da13..be32aee 100644
@@ -37,11 +37,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-u32 get_board_rev(void)
-{
-	return get_cpu_rev();
-}
-
 int dram_init(void)
 {
 	u32 size1, size2;
include/configs/mx53ard.h +0 -1
index daba05f..15dfcb4 100644
@@ -34,7 +34,6 @@
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
Signature · 1 line
1.7.1
#5 lore raw

PATCH 3/6 mx53ard: Remove unused get_board_rev function

Quoted 8 lines · Fabio Estevam

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

---
 board/freescale/mx53ard/mx53ard.c |    5 -----
 include/configs/mx53ard.h         |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================
#6 lore raw

PATCH 4/6 mx53smd: Remove unused get_board_rev function

In reply to Fabio Estevam

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

---
 board/freescale/mx53smd/mx53smd.c |    5 -----
 include/configs/mx53smd.h         |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx53smd/mx53smd.c +0 -5
index 776784f..87fa7fa 100644
@@ -35,11 +35,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-u32 get_board_rev(void)
-{
-	return get_cpu_rev();
-}
-
 int dram_init(void)
 {
 	u32 size1, size2;
include/configs/mx53smd.h +0 -1
index cc68749..48b32dd 100644
@@ -34,7 +34,6 @@
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG			/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
Signature · 1 line
1.7.1
#7 lore raw

PATCH 4/6 mx53smd: Remove unused get_board_rev function

Quoted 8 lines · Fabio Estevam

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

---
 board/freescale/mx53smd/mx53smd.c |    5 -----
 include/configs/mx53smd.h         |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================
#8 lore raw

PATCH 5/6 mx53loco: Remove unused get_board_rev function

In reply to Fabio Estevam

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

---
 board/freescale/mx53loco/mx53loco.c |    5 -----
 include/configs/mx53loco.h          |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)
board/freescale/mx53loco/mx53loco.c +0 -5
index 156f8b5..b4c7f33 100644
@@ -38,11 +38,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-u32 get_board_rev(void)
-{
-	return get_cpu_rev();
-}
-
 int dram_init(void)
 {
 	u32 size1, size2;
include/configs/mx53loco.h +0 -1
index f35bac1..d699010 100644
@@ -35,7 +35,6 @@
 #include <asm/arch/imx-regs.h>
 
 #define CONFIG_CMDLINE_TAG
-#define CONFIG_REVISION_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
Signature · 1 line
1.7.1
#9 lore raw

PATCH 5/6 mx53loco: Remove unused get_board_rev function

2011/10/27 Fabio Estevam <[email protected]>:

Quoted 32 lines

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

---
?board/freescale/mx53loco/mx53loco.c | ? ?5 -----
?include/configs/mx53loco.h ? ? ? ? ?| ? ?1 -
?2 files changed, 0 insertions(+), 6 deletions(-)

board/freescale/mx53loco/mx53loco.c +0 -5
index 156f8b5..b4c7f33 100644
@@ -38,11 +38,6 @@
 
 ?DECLARE_GLOBAL_DATA_PTR;
 
-u32 get_board_rev(void)
-{
- ? ? ? return get_cpu_rev();
-}
-
 ?int dram_init(void)
 ?{
 ? ? ? ?u32 size1, size2;
include/configs/mx53loco.h +0 -0
index f35bac1..d699010 100644
@@ -35,7 +35,6 @@

?#include <asm/arch/imx-regs.h>

Quoted 4 lines

?#define CONFIG_CMDLINE_TAG
-#define CONFIG_REVISION_TAG
?#define CONFIG_SETUP_MEMORY_TAGS
?#define CONFIG_INITRD_TAG

BR,
Jason

Quoted 10 lines

--
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#10 lore raw

PATCH 5/6 mx53loco: Remove unused get_board_rev function

In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

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

---
 board/freescale/mx53loco/mx53loco.c |    5 -----
 include/configs/mx53loco.h          |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================
#11 lore raw

PATCH 6/6 vision2: Remove unused get_board_rev function

In reply to Fabio Estevam

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

---
 board/ttcontrol/vision2/vision2.c |    9 ---------
 include/configs/vision2.h         |    1 -
 2 files changed, 0 insertions(+), 10 deletions(-)
board/ttcontrol/vision2/vision2.c +0 -9
index d3815b2..b40a970 100644
@@ -44,8 +44,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static u32 system_rev;
-
 static struct fb_videomode nec_nl6448bc26_09c = {
 	"NEC_NL6448BC26-09C",
 	60,	/* Refresh */
@@ -151,13 +149,6 @@ static void init_drive_strength(void)
 		PAD_CTL_DRV_HIGH | PAD_CTL_SRE_FAST);
 }
 
-u32 get_board_rev(void)
-{
-	system_rev = get_cpu_rev();
-
-	return system_rev;
-}
-
 int dram_init(void)
 {
 	gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1,
include/configs/vision2.h +0 -1
index 5a4cd66..9081cce 100644
@@ -36,7 +36,6 @@
 #define CONFIG_DISPLAY_BOARDINFO
 
 #define CONFIG_CMDLINE_TAG	/* enable passing of ATAGs */
-#define CONFIG_REVISION_TAG
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 #define BOARD_LATE_INIT
Signature · 1 line
1.7.1
#12 lore raw

PATCH 6/6 vision2: Remove unused get_board_rev function

Quoted 8 lines · Fabio Estevam

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

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

After rebasing on current u-boot-imx

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================