PPC4xx: Enable Primordial Stack for 40x and Unify ECC Handling
PATCH 1/1 PPC4xx: Enable Primordial Stack for 40x and Unify ECC Handling
This patch:
* Rolls up a suite of changes to enable correct primordial stack and global data handling when the data cache is used for such a purpose for PPC40x-variants.
* Related to the first, unifies DDR2 SDRAM and ECC initialization by eliminating redundant ECC initialization implementations and moving redundant SDRAM initialization out of board code into shared 4xx code.
* Enables MCSR visibility on the 405EX(r).
* Finally, it enables the use of the data cache for initial RAM on both AMCC's Kilauea and Makalu.
With respect to the 4xx DDR initialization and ECC unification, there is certainly more work that can and should be done (file renaming, etc.). However, that can be handled at a later date on a second or third pass. As it stands, this patch moves things forward in an incremental yet positive way for those platforms that utilize this code and the features associated with it.
--- board/amcc/kilauea/init.S | 231 +++++++++++++++++---------------- board/amcc/kilauea/memory.c | 12 +- board/amcc/makalu/init.S | 127 +----------------- board/amcc/makalu/memory.c | 122 +----------------- cpu/ppc4xx/44x_spd_ddr.c | 49 +------- cpu/ppc4xx/44x_spd_ddr2.c | 124 +++++++++++++++++- cpu/ppc4xx/Makefile | 1 + cpu/ppc4xx/cpu_init.c | 85 ------------ cpu/ppc4xx/ecc.c | 121 +++++++++++++++++ cpu/ppc4xx/ecc.h | 42 ++++++ cpu/ppc4xx/sdram.c | 44 +------ cpu/ppc4xx/start.S | 303 +++++++++++++++++++++++++++++++++---------- cpu/ppc4xx/traps.c | 9 +- include/asm-ppc/processor.h | 6 +- include/configs/kilauea.h | 116 ++++++++++++++--- include/configs/makalu.h | 116 ++++++++++++++-- include/ppc405.h | 193 +++++++++++++++++++++++++-- include/ppc4xx.h | 15 ++ 18 files changed, 1061 insertions(+), 655 deletions(-)
board/amcc/kilauea/init.S +122 -109
@@ -1,6 +1,9 @@ /* - * (C) Copyright 2007-2008 - * Stefan Roese, DENX Software Engineering, sr at denx.de. + * Copyright (c) 2008 Nuovation System Designs, LLC + * Grant Erickson <[email protected]> + * + * Copyright (c) 2007-2008 DENX Software Engineering, GmbH + * Stefan Roese <[email protected]> * * Based on code provided from UDTech and AMCC *
@@ -29,126 +32,136 @@ #include <ppc_asm.tmpl> #include <ppc_defs.h> -#define mtsdram_as(reg, value) \ - addi r4,0,reg ; \ - mtdcr memcfga,r4 ; \ - addis r4,0,value at h ; \ - ori r4,r4,value at l ; \ - mtdcr memcfgd,r4 ; +#define mtsdram_as(reg, value) \ + addi r4,0,reg ; \ + mtdcr memcfga,r4 ; \ + addis r4,0,value at h ; \ + ori r4,r4,value at l ; \ + mtdcr memcfgd,r4 ; + +#if defined(CONFIG_DDR_ECC) + .extern ecc_init +#endif /* defined(CONFIG_DDR_ECC) */ .globl ext_bus_cntlr_init ext_bus_cntlr_init: +#if !defined(CFG_INIT_DCACHE_CS) #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) /* - * DDR2 setup + * DDR2 SDRAM Controller Setup */ - /* Following the DDR Core Manual, here is the initialization */ - - /* Step 1 */ - - /* Step 2 */ - - /* Step 3 */ - - /* base=00000000, size=256MByte (6), mode=7 (n*10*8) */ - mtsdram_as(SDRAM_MB0CF, 0x00006701); - - /* SET SDRAM_MB1CF - Not enabled */ - mtsdram_as(SDRAM_MB1CF, 0x00000000); - - /* SET SDRAM_MB2CF - Not enabled */ - mtsdram_as(SDRAM_MB2CF, 0x00000000); - - /* SET SDRAM_MB3CF - Not enabled */ - mtsdram_as(SDRAM_MB3CF, 0x00000000); - - /* SDRAM_CLKTR: Adv Addr clock by 180 deg */ - mtsdram_as(SDRAM_CLKTR, 0x80000000); - - /* Refresh Time register (0x30) Refresh every 7.8125uS */ - mtsdram_as(SDRAM_RTR, 0x06180000); + /* Set Memory Bank Configuration Registers */ + mtsdram_as(SDRAM_MB0CF, CFG_SDRAM0_MB0CF); + mtsdram_as(SDRAM_MB1CF, CFG_SDRAM0_MB1CF); + mtsdram_as(SDRAM_MB2CF, CFG_SDRAM0_MB2CF); + mtsdram_as(SDRAM_MB3CF, CFG_SDRAM0_MB3CF); + + /* Set Memory Clock Timing Register */ + mtsdram_as(SDRAM_CLKTR, CFG_SDRAM0_CLKTR); + + /* Set Refresh Time Register */ + mtsdram_as(SDRAM_RTR, CFG_SDRAM0_RTR); + + /* Set SDRAM Timing Registers */ + mtsdram_as(SDRAM_SDTR1, CFG_SDRAM0_SDTR1); + mtsdram_as(SDRAM_SDTR2, CFG_SDRAM0_SDTR2); + mtsdram_as(SDRAM_SDTR3, CFG_SDRAM0_SDTR3); + + /* Set Mode and Extended Mode Registers */ + mtsdram_as(SDRAM_MMODE, CFG_SDRAM0_MMODE); + mtsdram_as(SDRAM_MEMODE, CFG_SDRAM0_MEMODE); + + /* Set Memory Controller Options 1 Register */ + mtsdram_as(SDRAM_MCOPT1, CFG_SDRAM0_MCOPT1); + + /* Set Manual Initialization Control Registers */ + mtsdram_as(SDRAM_INITPLR0, CFG_SDRAM0_INITPLR0); + mtsdram_as(SDRAM_INITPLR1, CFG_SDRAM0_INITPLR1); + mtsdram_as(SDRAM_INITPLR2, CFG_SDRAM0_INITPLR2); + mtsdram_as(SDRAM_INITPLR3, CFG_SDRAM0_INITPLR3); + mtsdram_as(SDRAM_INITPLR4, CFG_SDRAM0_INITPLR4); + mtsdram_as(SDRAM_INITPLR5, CFG_SDRAM0_INITPLR5); + mtsdram_as(SDRAM_INITPLR6, CFG_SDRAM0_INITPLR6); + mtsdram_as(SDRAM_INITPLR7, CFG_SDRAM0_INITPLR7); + mtsdram_as(SDRAM_INITPLR8, CFG_SDRAM0_INITPLR8); + mtsdram_as(SDRAM_INITPLR9, CFG_SDRAM0_INITPLR9); + mtsdram_as(SDRAM_INITPLR10, CFG_SDRAM0_INITPLR10); + mtsdram_as(SDRAM_INITPLR11, CFG_SDRAM0_INITPLR11); + mtsdram_as(SDRAM_INITPLR12, CFG_SDRAM0_INITPLR12); + mtsdram_as(SDRAM_INITPLR13, CFG_SDRAM0_INITPLR13); + mtsdram_as(SDRAM_INITPLR14, CFG_SDRAM0_INITPLR14); + mtsdram_as(SDRAM_INITPLR15, CFG_SDRAM0_INITPLR15); + + /* Set On-Die Termination Registers */ + mtsdram_as(SDRAM_CODT, CFG_SDRAM0_CODT); + mtsdram_as(SDRAM_MODT0, CFG_SDRAM0_MODT0); + mtsdram_as(SDRAM_MODT1, CFG_SDRAM0_MODT1); + + /* Set Write Timing Register */ + mtsdram_as(SDRAM_WRDTR, CFG_SDRAM0_WRDTR); - /* SDRAM_SDTR1 */ - mtsdram_as(SDRAM_SDTR1, 0x80201000); - - /* SDRAM_SDTR2 */ - mtsdram_as(SDRAM_SDTR2, 0x32204232); + /* + * Start Initialization by SDRAM0_MCOPT2[SREN] = 0 and + * SDRAM0_MCOPT2[IPTR] = 1 + */ + mtsdram_as(SDRAM_MCOPT2, SDRAM_MCOPT2_SREN_EXIT | \ + SDRAM_MCOPT2_IPTR_EXECUTE); - /* SDRAM_SDTR3 */ - mtsdram_as(SDRAM_SDTR3, 0x080b0d1a); + /* + * Poll SDRAM0_MCSTAT[MIC] for assertion to indicate the + * completion of initialization. + * + * do { + * mfsdram(SDRAM_MCSTAT, val); + * } while ((val & SDRAM_MCSTAT_MIC_MASK) != SDRAM_MCSTAT_MIC_COMP); + */ + li r4,SDRAM_MCSTAT + lis r2,SDRAM_MCSTAT_MIC_COMP at h + ori r2,r2,SDRAM_MCSTAT_MIC_COMP at l +0: mtdcr memcfga,r4 + mfdcr r3,memcfgd + clrrwi r3,r3,31 + cmpw cr7,r3,r2 + bne+ cr7,0b + + /* Set Delay Control Registers */ + mtsdram_as(SDRAM_DLCR, CFG_SDRAM0_DLCR); + mtsdram_as(SDRAM_RDCC, CFG_SDRAM0_RDCC); + mtsdram_as(SDRAM_RQDC, CFG_SDRAM0_RQDC); + mtsdram_as(SDRAM_RFDC, CFG_SDRAM0_RFDC); - mtsdram_as(SDRAM_MMODE, 0x00000442); - mtsdram_as(SDRAM_MEMODE, 0x00000404); + /* + * Enable Controller by SDRAM0_MCOPT2[DCEN] = 1: + * + * mcopt2 = mfsdram(SDRAM_MCOPT2); + */ + li r4,SDRAM_MCOPT2 + mtdcr memcfga,r4 + mfdcr r3,memcfgd - /* SDRAM0_MCOPT1 (0X20) No ECC Gen */ - mtsdram_as(SDRAM_MCOPT1, 0x04322000); + /* + * mtsdram(SDRAM_MCOPT2, mcopt2 | SDRAM_MCOPT2_DCEN_ENABLE); + */ + mtdcr memcfga,r4 + oris r3,r3,SDRAM_MCOPT2_DCEN_ENABLE at h + ori r3,r3,SDRAM_MCOPT2_DCEN_ENABLE at l + mtdcr memcfgd,r3 - /* NOP */ - mtsdram_as(SDRAM_INITPLR0, 0xa8380000); - /* precharge 3 DDR clock cycle */ - mtsdram_as(SDRAM_INITPLR1, 0x81900400); - /* EMR2 twr = 2tck */ - mtsdram_as(SDRAM_INITPLR2, 0x81020000); - /* EMR3 twr = 2tck */ - mtsdram_as(SDRAM_INITPLR3, 0x81030000); - /* EMR DLL ENABLE twr = 2tck */ - mtsdram_as(SDRAM_INITPLR4, 0x81010404); - /* MR w/ DLL reset - * Note: 5 is CL. May need to be changed +#if defined(CONFIG_DDR_ECC) + /* + * ecc_init(CFG_SDRAM_BASE, CFG_MBYTES_SDRAM << 20); */ - mtsdram_as(SDRAM_INITPLR5, 0x81000542); - /* precharge 3 DDR clock cycle */ - mtsdram_as(SDRAM_INITPLR6, 0x81900400); - /* Auto-refresh trfc = 26tck */ - mtsdram_as(SDRAM_INITPLR7, 0x8D080000); - /* Auto-refresh trfc = 26tck */ - mtsdram_as(SDRAM_INITPLR8, 0x8D080000); - /* Auto-refresh */ - mtsdram_as(SDRAM_INITPLR9, 0x8D080000); - /* Auto-refresh */ - mtsdram_as(SDRAM_INITPLR10, 0x8D080000); - /* MRS - normal operation; wait 2 cycle (set wait to tMRD) */ - mtsdram_as(SDRAM_INITPLR11, 0x81000442); - mtsdram_as(SDRAM_INITPLR12, 0x81010780); - mtsdram_as(SDRAM_INITPLR13, 0x81010400); - mtsdram_as(SDRAM_INITPLR14, 0x00000000); - mtsdram_as(SDRAM_INITPLR15, 0x00000000); - - /* SET MCIF0_CODT Die Termination On */ - mtsdram_as(SDRAM_CODT, 0x0080f837); - mtsdram_as(SDRAM_MODT0, 0x01800000); - mtsdram_as(SDRAM_MODT1, 0x00000000); - - mtsdram_as(SDRAM_WRDTR, 0x00000000); - - /* SDRAM0_MCOPT2 (0X21) Start initialization */ - mtsdram_as(SDRAM_MCOPT2, 0x20000000); - - /* Step 5 */ - lis r3,0x1 /* 400000 = wait 100ms */ - mtctr r3 - -pll_wait: - bdnz pll_wait - - /* Step 6 */ - - /* SDRAM_DLCR */ - mtsdram_as(SDRAM_DLCR, 0x030000a5); - - /* SDRAM_RDCC */ - mtsdram_as(SDRAM_RDCC, 0x40000000); - - /* SDRAM_RQDC */ - mtsdram_as(SDRAM_RQDC, 0x80000038); - - /* SDRAM_RFDC */ - mtsdram_as(SDRAM_RFDC, 0x00000209); - - /* Enable memory controller */ - mtsdram_as(SDRAM_MCOPT2, 0x28000000); -#endif /* #ifndef CONFIG_NAND_U_BOOT */ + mflr r13 + lis r3,CFG_SDRAM_BASE at h + ori r3,r3,CFG_SDRAM_BASE at l + lis r4,(CFG_MBYTES_SDRAM << 20)@h + ori r4,r4,(CFG_MBYTES_SDRAM << 20)@l + bl ecc_init + mtlr r13 +#endif /* defined(CONFIG_DDR_ECC) */ +#endif /* !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) */ +#endif /* !defined(CFG_INIT_DCACHE_CS) */ blr
board/amcc/kilauea/memory.c +5 -7
@@ -1,6 +1,9 @@/* -* (C) Copyright 2007 -* Stefan Roese, DENX Software Engineering, sr at denx.de. +* Copyright (c) 2008 Nuovation System Designs, LLC +* Grant Erickson <[email protected]> +* +* Copyright (c) 2007 DENX Software Engineering, GmbH +* Stefan Roese <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -30,11 +33,6 @@ void sdram_init(void)return ; } -long int initdram (int board_type) -{ -return (CFG_MBYTES_SDRAM <<20 ); -} -#if defined(CFG_DRAM_TEST )int testdram (void ) {
board/amcc/makalu/init.S +4 -123
138 lines not on this page · raw message
board/amcc/makalu/memory.c +5 -117
132 lines not on this page · raw message
cpu/ppc4xx/44x_spd_ddr.c +3 -46
71 lines not on this page · raw message
cpu/ppc4xx/44x_spd_ddr2.c +118 -6
144 lines not on this page · raw message
cpu/ppc4xx/Makefile +1 -0
@@ -45,6 +45,7 @@ COBJS += cpu.o COBJS += cpu_init.o COBJS += denali_data_eye.o COBJS += denali_spd_ddr2.o +COBJS += ecc.o COBJS += fdt.o COBJS += gpio.o COBJS += i2c.o
cpu/ppc4xx/cpu_init.c +0 -85
97 lines not on this page · raw message
cpu/ppc4xx/ecc.c new file +121 -0
121 lines not on this page · raw message
cpu/ppc4xx/ecc.h new file +42 -0
42 lines not on this page · raw message
cpu/ppc4xx/sdram.c +1 -43
56 lines not on this page · raw message
cpu/ppc4xx/start.S +234 -69
421 lines not on this page · raw message
cpu/ppc4xx/traps.c +7 -2
@@ -170,7 +170,7 @@ MachineCheckException(struct pt_regs *regs) val =get_esr (); -#if !defined(CONFIG_440 ) +#if !defined(CONFIG_440 ) && !defined(CONFIG_405EX )if (val&ESR_IMCP ) {printf ("Instruction" );mtspr (ESR , val & ~ESR_IMCP );
@@ -179,7 +179,7 @@ MachineCheckException(struct pt_regs *regs) }printf (" machine check.\n" ); -#elif defined(CONFIG_440) +#elif defined(CONFIG_440) || defined(CONFIG_405EX)if (val&ESR_IMCP ){printf ("Instruction Synchronous Machine Check exception\n" );mtspr (SPRN_ESR , val & ~ESR_IMCP );
@@ -187,10 +187,15 @@ MachineCheckException(struct pt_regs *regs) val =mfspr (MCSR );if (val &MCSR_IB )printf ("Instruction Read PLB Error\n" ); +#if defined(CONFIG_440 )if (val &MCSR_DRB )printf ("Data Read PLB Error\n" );if (val &MCSR_DWB )printf ("Data Write PLB Error\n" ); +#else +if (val &MCSR_DB ) +printf ("Data PLB Error\n" ); +#endif if (val &MCSR_TLBP )printf ("TLB Parity Error\n" );if (val &MCSR_ICP ){
include/asm-ppc/processor.h +4 -2
@@ -460,17 +460,19 @@#define SPRN_PID2 0x27a/* Process ID Register 2 */ #define SPRN_MCSR 0x23c/* Machine Check Syndrome register */ #define SPRN_MCAR 0x23d/* Machine Check Address register */ -#ifdef CONFIG_440 #define MCSR_MCS 0x80000000/* Machine Check Summary */ #define MCSR_IB 0x40000000/* Instruction PLB Error */ +#if defined(CONFIG_440 )#define MCSR_DRB 0x20000000/* Data Read PLB Error */ #define MCSR_DWB 0x10000000/* Data Write PLB Error */ +#else +#define MCSR_DB 0x20000000/* Data PLB Error */ +#endif /* defined(CONFIG_440) */ #define MCSR_TLBP 0x08000000/* TLB Parity Error */ #define MCSR_ICP 0x04000000/* I-Cache Parity Error */ #define MCSR_DCSP 0x02000000/* D-Cache Search Parity Error */ #define MCSR_DCFP 0x01000000/* D-Cache Flush Parity Error */ #define MCSR_IMPE 0x00800000/* Imprecise Machine Check Exception */ -#endif #define ESR_ST 0x00800000/* Store Operation */ #if defined(CONFIG_MPC86xx)
include/configs/kilauea.h +99 -17
147 lines not on this page · raw message
include/configs/makalu.h +101 -15
141 lines not on this page · raw message
include/ppc405.h +179 -14
216 lines not on this page · raw message
include/ppc4xx.h +15 -0
@@ -29,6 +29,21 @@#endif /* +* Macro for generating register field mnemonics +*/ +#define PPC_REG_BITS 32 +#define PPC_REG_VAL (bit, value) ((value) << ((PPC_REG_BITS - 1) - (bit))) + +/* +* Elide casts when assembling register mnemonics +*/ +#ifndef __ASSEMBLY__ +#define static_cast (type, val) (type)(val) +#else +#define static_cast (type, val) (val) +#endif + +/* * Common stuff for 4xx (405 and 440) */
PATCH 1/1 PPC4xx: Enable Primordial Stack for 40x and Unify ECC Handling
Quoted 4 lines · In message <[email protected]> you…
* Rolls up a suite of changes to enable correct primordial stack and global data handling when the data cache is used for such a purpose for PPC40x-variants.
...
board/amcc/kilauea/memory.c line 6
Quoted 11 lines
board/amcc/kilauea/memory.c +5
-2@@ -1,6 +1,9 @@/* -* (C) Copyright 2007 -* Stefan Roese, DENX Software Engineering, sr at denx.de. +* Copyright (c) 2008 Nuovation System Designs, LLC +* Grant Erickson <[email protected]> +* +* Copyright (c) 2007 DENX Software Engineering, GmbH +* Stefan Roese <[email protected]>
Please do not mess with other people's Copyright!!!!
"(C) DENX" and "(C) Stefan" are two fundamentally different things.
Never, never ever meddle with copyrights!!!
This comment applies to all files where you did this!!
board/amcc/makalu/init.S line 5
Quoted 12 lines
board/amcc/makalu/init.S +2
-3@@ -1,8 +1,9 @@ /* - * (C) Copyright 2007-2008 - * Stefan Roese, DENX Software Engineering, sr at denx.de. + * Copyright (c) 2008 Nuovation System Designs, LLC + * Grant Erickson <[email protected]> * - * Based on code provided from Senao and AMCC
Why do you delete such useful (and in terms of Copyright etc. important) information?
Do not do such things!!!
Feel free to add your own copyright where appropriate, but never mess with other, already exsiting copyright information.
board/amcc/makalu/init.S line 6
Quoted 2 lines
board/amcc/makalu/init.S +2
-0+ * Copyright (c) 2007-2008 DENX Software Engineering, GmbH + * Stefan Roese <[email protected]>
Again, this is fundamentally wrong.
Quoted 4 lines
include/configs/kilauea.h +0
-0
...
Quoted 1 line
+// #define
CFG_INIT_DCACHE_CS4
Do not use C++ comments.
...
include/configs/kilauea.h line 227
Quoted 2 lines
include/configs/kilauea.h +1
-1-#define CFG_MBYTES_SDRAM (256)/* 256MB */ +#define CFG_MBYTES_SDRAM 256
What is your rationale for such a change?
include/configs/kilauea.h line 408
Quoted 7 lines
/* POST support */
include/configs/kilauea.h +1
-2-#define CONFIG_POST (CFG_POST_MEMORY | \ - CFG_POST_CACHE | \ +#define CONFIG_POST (CFG_POST_CACHE | \ CFG_POST_CPU | \ CFG_POST_ETHER | \ CFG_POST_I2C | \
STOP!!! Do not mess with the POST configurtation of the boards!
This is not mentioned anywhere in your patch description, and not wanted either.
Quoted 2 lines
include/configs/makalu.h +0
-0
...
include/configs/makalu.h
Quoted 3 lines
include/configs/makalu.h +1
-2-#define CONFIG_POST (CFG_POST_MEMORY | \ - CFG_POST_CACHE | \ +#define CONFIG_POST (CFG_POST_CACHE | \
Ditto.
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
It is dangerous to be sincere unless you are also stupid.
- George Bernard ShawPATCH 1/1 PPC4xx: Enable Primordial Stack for 40x and Unify ECC Handling
Quoted 21 lines · Wolfgang Denk
In message <[email protected]> you
Quoted 4 lines · wrote:
* Rolls up a suite of changes to enable correct primordial stack and global data handling when the data cache is used for such a purpose for PPC40x-variants.
...
board/amcc/kilauea/memory.c line 6
Quoted 11 lines
board/amcc/kilauea/memory.c +5
-2@@ -1,6 +1,9 @@/* -* (C) Copyright 2007 -* Stefan Roese, DENX Software Engineering, sr at denx.de. +* Copyright (c) 2008 Nuovation System Designs, LLC +* Grant Erickson <[email protected]> +* +* Copyright (c) 2007 DENX Software Engineering, GmbH +* Stefan Roese <[email protected]> Please do not mess with other people's Copyright!!!!
Quoted 5 lines
"(C) DENX" and "(C) Stefan" are two fundamentally different things.
Never, never ever meddle with copyrights!!!
This comment applies to all files where you did this!!
It seemed like consistent formatting without changing the nature of the information seemed like a net improvement. Insofar as I read it, they say the same thing, Stefan Roese as a representative of DENX. Anyway, it is not worth debating and I can revert it easily enough.
Quoted 18 lines
Quoted 5 lines
board/amcc/makalu/init.S +0
-0board/amcc/makalu/init.S line 6
Quoted 9 lines
board/amcc/makalu/init.S +4
-3@@ -1,8 +1,9 @@ /* - * (C) Copyright 2007-2008 - * Stefan Roese, DENX Software Engineering, sr at denx.de. + * Copyright (c) 2008 Nuovation System Designs, LLC + * Grant Erickson <[email protected]> * - * Based on code provided from Senao and AMCC + * Copyright (c) 2007-2008 DENX Software Engineering, GmbH + * Stefan Roese <[email protected]>Why do you delete such useful (and in terms of Copyright etc. important) information?
Quoted 4 lines
Do not do such things!!!
Feel free to add your own copyright where appropriate, but never mess with other, already exsiting copyright information.
See above.
Deleted the "Senao and AMCC" like since it was no longer true/accurate.
Quoted 8 lines
Quoted 4 lines
include/configs/kilauea.h +0
-0...
Quoted 1 line
+// #define
CFG_INIT_DCACHE_CS4Do not use C++ comments.
Debugging typo. I need remove that regardless.
Quoted 4 lines
include/configs/kilauea.h line 227
Quoted 2 lines
include/configs/kilauea.h +1
-1-#define CFG_MBYTES_SDRAM (256)/* 256MB */ +#define CFG_MBYTES_SDRAM 256What is your rationale for such a change?
The mnemonic is self explanatory and the parens add no value since 256 is a constant.
Quoted 13 lines
Quoted 7 lines
/* POST support */
include/configs/kilauea.h +1
-2-#define CONFIG_POST (CFG_POST_MEMORY | \ - CFG_POST_CACHE | \ +#define CONFIG_POST (CFG_POST_CACHE | \
CFG_POST_CPU| \CFG_POST_ETHER| \CFG_POST_I2C| \STOP!!! Do not mess with the POST configurtation of the boards!
This is not mentioned anywhere in your patch description, and not wanted either.
Quoted 8 lines
Quoted 2 lines
include/configs/makalu.h +0
-0...
include/configs/makalu.h
Quoted 3 lines
include/configs/makalu.h +1
-2-#define CONFIG_POST (CFG_POST_MEMORY | \ - CFG_POST_CACHE | \ +#define CONFIG_POST (CFG_POST_CACHE | \Ditto.
These ARE warranted. Specifying CFG_POST_MEMORY twice is redundant and removing one instance thereof changes nothing, operationally. I'll add a note to the commit/patch description.
Regards,
Grant
PATCH 1/1 PPC4xx: Enable Primordial Stack for 40x and Unify ECC Handling
Quoted 11 lines · In message <C459CCA3.F536%[email protected]> you wrote:
Quoted 6 lines
"(C) DENX" and "(C) Stefan" are two fundamentally different things.
Never, never ever meddle with copyrights!!!
This comment applies to all files where you did this!!
It seemed like consistent formatting without changing the nature of the information seemed like a net improvement. Insofar as I read it, they say the same thing, Stefan Roese as a representative of DENX. Anyway, it is not worth debating and I can revert it easily enough.
Never ever mess with copyrights. And no, they are NOT the same thing.
"(C) Stefan Roese, DENX Software Engineering, sr at denx.de" says that the holder of the copyright is Stefan Roese (a natural person), who is working at/for DENX.
However, "(C) DENX Software Engineering GmbH, Stefan Roese <[email protected]>" says that the holder of the copyright is DENX (a legal entity), and Stefan is the person to contact.
In the former case all rights belong to Stefan, in the second case all rights are owned by DENX.
Quoted 1 line
Quoted 1 line
Quoted 1 line
- * Based on code provided from Senao and AMCC
...
Quoted 1 line
Deleted the "Senao and AMCC" like since it was no longer true/accurate.
Well, the original code and the init parameters used are based on their code, and this should be properly attributed.
Quoted 7 lines
Quoted 4 lines
include/configs/kilauea.h line 227
Quoted 2 lines
include/configs/kilauea.h +1
-1-#define CFG_MBYTES_SDRAM (256)/* 256MB */ +#define CFG_MBYTES_SDRAM 256What is your rationale for such a change?
The mnemonic is self explanatory and the parens add no value since 256 is a constant.
Yet I find the first form much easier to read when skimming through the config file.
Quoted 9 lines
Quoted 5 lines
include/configs/kilauea.h line 405
Quoted 3 lines
include/configs/kilauea.h +1
-2-#define CONFIG_POST (CFG_POST_MEMORY | \ - CFG_POST_CACHE | \ +#define CONFIG_POST (CFG_POST_CACHE | \Ditto.
These ARE warranted. Specifying
CFG_POST_MEMORYtwice is redundant and removing one instance thereof changes nothing, operationally. I'll add a note to the commit/patch description.
Ah, you are right. From the patch it was not visible that there was a duplicate entry farther down in the file Sorry for the false alarm.
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 Peace was the way. -- Kirk, "The City on the Edge of Forever", stardate unknown