Skip to contentSkip to conversation

MPC8xxx: drop redundant boot messages

PATCH New Wolfgang Denk 3 participants 3 messages Jul 25, 2011 – Jul 28, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MPC8xxx: drop redundant boot messages

Current code would print RAM size information like this:

	DRAM:  DDR: 256 MiB (DDR1, 64-bit, CL=2, ECC off)

Turn a number of printf()s into debug() to get rid of the redundant "DDR: " string like this:

	DRAM:  256 MiB (DDR1, 64-bit, CL=2, ECC off)
---
 arch/powerpc/cpu/mpc85xx/cpu.c            |    2 +-
 board/freescale/corenet_ds/ddr.c          |    2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd.c |    2 +-
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |    2 +-
 board/freescale/p2041rdb/ddr.c            |    2 +-
 board/sbc8641d/sbc8641d.c                 |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
arch/powerpc/cpu/mpc85xx/cpu.c +1 -1
index 53f0887..8ee3b4f 100644
@@ -358,7 +358,7 @@ phys_size_t initdram(int board_type)
 	lbc_sdram_init();
 #endif
 
-	puts("DDR: ");
+	debug("DDR: ");
 	return dram_size;
 }
 #endif /* CONFIG_SYS_RAMBOOT */
board/freescale/corenet_ds/ddr.c +1 -1
index a184592..b937015 100644
@@ -256,6 +256,6 @@ phys_size_t initdram(int board_type)
 	dram_size = setup_ddr_tlbs(dram_size / 0x100000);
 	dram_size *= 0x100000;
 
-	puts("    DDR: ");
+	debug("    DDR: ");
 	return dram_size;
 }
board/freescale/mpc8610hpcd/mpc8610hpcd.c +1 -1
index 4e4b7c0..8aceddb 100644
@@ -145,7 +145,7 @@ initdram(int board_type)
 
 	setup_ddr_bat(dram_size);
 
-	puts(" DDR: ");
+	debug(" DDR: ");
 	return dram_size;
 }
 
board/freescale/mpc8641hpcn/mpc8641hpcn.c +1 -1
index e3916fc..455569e 100644
@@ -69,7 +69,7 @@ initdram(int board_type)
 
 	setup_ddr_bat(dram_size);
 
-	puts("    DDR: ");
+	debug("    DDR: ");
 	return dram_size;
 }
 
board/freescale/p2041rdb/ddr.c +1 -1
index 46de910..e9c699c 100644
@@ -110,6 +110,6 @@ phys_size_t initdram(int board_type)
 	dram_size = setup_ddr_tlbs(dram_size / 0x100000);
 	dram_size *= 0x100000;
 
-	puts("    DDR: ");
+	debug("    DDR: ");
 	return dram_size;
 }
board/sbc8641d/sbc8641d.c +1 -1
index dd58541..bed8f53 100644
@@ -63,7 +63,7 @@ phys_size_t initdram (int board_type)
 	dram_size = fixed_sdram ();
 #endif
 
-	puts ("    DDR: ");
+	debug ("    DDR: ");
 	return dram_size;
 }
 
Signature · 1 line
1.7.6
#1 lore raw

PATCH 1/1 MPC8xxx: drop redundant boot messages

Quoted 88 lines · Wolfgang Denk

Current code would print RAM size information like this:

	DRAM:  DDR: 256 MiB (DDR1, 64-bit, CL=2, ECC off)

Turn a number of printf()s into debug() to get rid of the redundant "DDR: " string like this:

	DRAM:  256 MiB (DDR1, 64-bit, CL=2, ECC off)
---
 arch/powerpc/cpu/mpc85xx/cpu.c            |    2 +-
 board/freescale/corenet_ds/ddr.c          |    2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd.c |    2 +-
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |    2 +-
 board/freescale/p2041rdb/ddr.c            |    2 +-
 board/sbc8641d/sbc8641d.c                 |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
arch/powerpc/cpu/mpc85xx/cpu.c +1 -1
index 53f0887..8ee3b4f 100644
@@ -358,7 +358,7 @@ phys_size_t initdram(int board_type)
 	lbc_sdram_init();
 #endif
 
-	puts("DDR: ");
+	debug("DDR: ");
 	return dram_size;
 }
 #endif /* CONFIG_SYS_RAMBOOT */
board/freescale/corenet_ds/ddr.c +1 -1
index a184592..b937015 100644
@@ -256,6 +256,6 @@ phys_size_t initdram(int board_type)
 	dram_size = setup_ddr_tlbs(dram_size / 0x100000);
 	dram_size *= 0x100000;
 
-	puts("    DDR: ");
+	debug("    DDR: ");
 	return dram_size;
 }
board/freescale/mpc8610hpcd/mpc8610hpcd.c +1 -1
index 4e4b7c0..8aceddb 100644
@@ -145,7 +145,7 @@ initdram(int board_type)
 
 	setup_ddr_bat(dram_size);
 
-	puts(" DDR: ");
+	debug(" DDR: ");
 	return dram_size;
 }
 
board/freescale/mpc8641hpcn/mpc8641hpcn.c +1 -1
index e3916fc..455569e 100644
@@ -69,7 +69,7 @@ initdram(int board_type)
 
 	setup_ddr_bat(dram_size);
 
-	puts("    DDR: ");
+	debug("    DDR: ");
 	return dram_size;
 }
 
board/freescale/p2041rdb/ddr.c +1 -1
index 46de910..e9c699c 100644
@@ -110,6 +110,6 @@ phys_size_t initdram(int board_type)
 	dram_size = setup_ddr_tlbs(dram_size / 0x100000);
 	dram_size *= 0x100000;
 
-	puts("    DDR: ");
+	debug("    DDR: ");
 	return dram_size;
 }
board/sbc8641d/sbc8641d.c +0 -0
index dd58541..bed8f53 100644

board/sbc8641d/sbc8641d.c phys_size_t initdram (int board_type) · line 69

Quoted 8 lines
board/sbc8641d/sbc8641d.c +1 -1
@@ -63,7 +63,7 @@ phys_size_t initdram (int board_type)
 	dram_size = fixed_sdram ();
 #endif
 
-	puts ("    DDR: ");
+	debug ("    DDR: ");
 	return dram_size;
 }
 
Applied
#2 lore raw

PATCH 1/1 MPC8xxx: drop redundant boot messages

In reply to Wolfgang Denk
Quoted 11 lines · Wolfgang Denk

Current code would print RAM size information like this:

	DRAM:  DDR: 256 MiB (DDR1, 64-bit, CL=2, ECC off)

Turn a number of printf()s into debug() to get rid of the redundant "DDR: " string like this:

	DRAM:  256 MiB (DDR1, 64-bit, CL=2, ECC off)
Quoted 8 lines

---

arch/powerpc/cpu/mpc85xx/cpu.c            |    2 +-
board/freescale/corenet_ds/ddr.c          |    2 +-
board/freescale/mpc8610hpcd/mpc8610hpcd.c |    2 +-
board/freescale/mpc8641hpcn/mpc8641hpcn.c |    2 +-
board/freescale/p2041rdb/ddr.c            |    2 +-
board/sbc8641d/sbc8641d.c                 |    2 +-
6 files changed, 6 insertions(+), 6 deletions(-)

applied to 85xx

- k