Remove unwanted ';' at end of define.
PATCH 1/1 Remove unwanted ';' at end of define.
Currently this is not creating any problem. But it will result in compilation error when used as below.
printf("CFG_SDRAM_CFG2 - %08x\n", CFG_SDRAM_CFG2);
--- include/configs/MPC8313ERDB.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
include/configs/MPC8313ERDB.h +2 -2
@@ -153,12 +153,12 @@ | SDRAM_CFG_32_BE )/* 0x43080000 */ #endif -#define CFG_SDRAM_CFG2 0x00401000; +#define CFG_SDRAM_CFG2 0x00401000/* set burst length to 8 for 32-bit data path */ #define CFG_DDR_MODE ( ( 0x4448 << SDRAM_MODE_ESD_SHIFT ) \ | ( 0x0632 << SDRAM_MODE_SD_SHIFT ) )/* 0x44480632 */ -#define CFG_DDR_MODE_2 0x8000C000; +#define CFG_DDR_MODE_2 0x8000C000#define CFG_DDR_CLK_CNTL DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05/*0x02000000*/
Signature · 1 line
1.5.5
PATCH 1/1 Remove unwanted ';' at end of define.
include/configs/MPC8313ERDB.h line 156
Quoted 2 lines · On Tue, 7 Oct 2008 19:03:05 +0530 Selvamuthukumar…
include/configs/MPC8313ERDB.h +1
-1-#define CFG_SDRAM_CFG2 0x00401000; +#define CFG_SDRAM_CFG2 0x00401000
eh, that's pretty bad - but wait, there's more!:
[kim at beaut u-boot (master)]$ git grep "^#define CFG_.*;$" include/
include/configs/EB+MCF-EV123.h:#define CFG_PJPAR 0xFF; include/configs/M5272C3.h:#define CFG_SCR 0x0003; include/configs/M5272C3.h:#define CFG_SPR 0xffff; include/configs/M5282EVB.h:#define CFG_PJPAR 0xFF; include/configs/MPC8313ERDB.h:#define CFG_SDRAM_CFG2 0x00401000; include/configs/MPC8313ERDB.h:#define CFG_DDR_MODE_2 0x8000C000; include/configs/MPC837XERDB.h:#define CFG_DDR_MODE2 0x00000000; include/configs/cobra5272.h:#define CFG_SCR 0x0003; include/configs/cobra5272.h:#define CFG_SPR 0xffff;
include/configs/spc1920.h:#define CFG_BR4 ((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V); include/configs/spc1920.h:#define CFG_BR5_PRELIM ((CFG_SPC1920_PLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V);
WD, please apply the following patch directly, for 2008.10 release:
Wolfgang Denk
AppliedPATCH 1/1 Remove unwanted ';' at end of define.
Dear Kim Phillips,
Quoted 21 lines · In message <[email protected]> you wrote:
include/configs/MPC8313ERDB.h line 156
Quoted 2 lines · On Tue, 7 Oct 2008 19:03:05 +0530 Selvamuthukumar…
include/configs/MPC8313ERDB.h +1
-1-#define CFG_SDRAM_CFG2 0x00401000; +#define CFG_SDRAM_CFG2 0x00401000eh, that's pretty bad - but wait, there's more!:
[kim at beaut u-boot (master)]$ git grep "^#define CFG_.*;$"
include/include/configs/EB+MCF-EV123.h:#define CFG_PJPAR 0xFF; include/configs/M5272C3.h:#define CFG_SCR 0x0003; include/configs/M5272C3.h:#define CFG_SPR 0xffff; include/configs/M5282EVB.h:#define CFG_PJPAR 0xFF; include/configs/MPC8313ERDB.h:#define CFG_SDRAM_CFG2 0x00401000; include/configs/MPC8313ERDB.h:#define CFG_DDR_MODE_2 0x8000C000; include/configs/MPC837XERDB.h:#define CFG_DDR_MODE2 0x00000000; include/configs/cobra5272.h:#define CFG_SCR 0x0003; include/configs/cobra5272.h:#define CFG_SPR 0xffff;include/configs/spc1920.h:#define
CFG_BR4((CFG_SPC1920_FRAM_BASE&BR_BA_MSK) |BR_PS_8|BR_V); include/configs/spc1920.h:#defineCFG_BR5_PRELIM((CFG_SPC1920_PLD_BASE&BR_BA_MSK) |BR_PS_8|BR_V);
Quoted 6 lines
WD, please apply the following patch directly, for 2008.10 release:
From
b304c1d16fe6854b2e265722b75524f4738e3c64Mon Sep 17 00:00:00 2001
From: Selvamuthukumar <[email protected]>
Date: Wed, 8 Oct 2008 18:12:20 -0500
Subject: [PATCH] Remove unwanted ';' at end of define.
Applied, thanks to both of you.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"If that makes any sense to you, you have a big problem."
-- C. Durance, Computer Science 234