Skip to contentSkip to conversation

Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

PATCH New Dirk Eibach 7 participants 10 messages Nov 27, 2008 – Dec 2, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

---
 MAINTAINERS                           |    1 +
 MAKEALL                               |    1 +
 Makefile                              |    3 +
 board/gdsys/gdppc440etx/Makefile      |   51 ++++
 board/gdsys/gdppc440etx/config.mk     |   44 +++
 board/gdsys/gdppc440etx/gdppc440etx.c |  494 +++++++++++++++++++++++++++++++++
 board/gdsys/gdppc440etx/init.S        |  112 ++++++++
 board/gdsys/gdppc440etx/u-boot.lds    |  144 ++++++++++
 common/Makefile                       |    2 +-
 include/configs/gdppc440etx.h         |  194 +++++++++++++
 10 files changed, 1045 insertions(+), 1 deletions(-)
 create mode 100644 board/gdsys/gdppc440etx/Makefile
 create mode 100644 board/gdsys/gdppc440etx/config.mk
 create mode 100644 board/gdsys/gdppc440etx/gdppc440etx.c
 create mode 100644 board/gdsys/gdppc440etx/init.S
 create mode 100644 board/gdsys/gdppc440etx/u-boot.lds
 create mode 100644 include/configs/gdppc440etx.h
MAINTAINERS +1 -0
index 127604b..64c1424 100644
@@ -133,6 +133,7 @@ Jon Diekema <[email protected]>
 Dirk Eibach <[email protected]>
 
 	neo		PPC405EP
+	gdppc440etx	PPC440EP/GR
 
 Dave Ellis <[email protected]>
 
MAKEALL +1 -0
index dbed268..3789bb9 100755
@@ -188,6 +188,7 @@ LIST_4xx="		\
 	EXBITGEN	\
 	fx12mm		\
 	G2000		\
+	gdppc440etx	\
 	glacier		\
 	haleakala	\
 	haleakala_nand	\
Makefile +3 -0
index fd521b6..1f7372c 100644
@@ -1314,6 +1314,9 @@ fx12mm_config: unconfig
 G2000_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
 
+gdppc440etx_config:	unconfig
+	@$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
+
 hcu4_config:	unconfig
 	@mkdir -p $(obj)board/netstal/common
 	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
board/gdsys/gdppc440etx/Makefile new file +51 -0

51 lines not on this page · raw message

board/gdsys/gdppc440etx/config.mk new file +44 -0

44 lines not on this page · raw message

board/gdsys/gdppc440etx/gdppc440etx.c new file +494 -0

494 lines not on this page · raw message

board/gdsys/gdppc440etx/init.S new file +112 -0

112 lines not on this page · raw message

board/gdsys/gdppc440etx/u-boot.lds new file +144 -0

144 lines not on this page · raw message

common/Makefile +1 -1
index 6484b23..a04c3d9 100644
@@ -70,7 +70,7 @@ COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
 COBJS-$(CONFIG_CMD_CACHE) += cmd_cache.o
 COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o
 COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
-COBJS-$(CONFIG_CMD_DATE) += cmd_date.o
+#COBJS-$(CONFIG_CMD_DATE) += cmd_date.o
 ifdef CONFIG_4xx
 COBJS-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
 endif
include/configs/gdppc440etx.h new file +194 -0

194 lines not on this page · raw message

Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Dear Dirk Eibach,

Quoted 2 lines · In message <[email protected]> you wrote:

Subject: Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Please keep the subject well under 70 characters so it makes a good title line for the commit message.

MAINTAINERS Jon Diekema <[email protected]> · line 136

Quoted 7 lines
MAINTAINERS +1 -0
@@ -133,6 +133,7 @@ Jon Diekema <[email protected]>
 Dirk Eibach <[email protected]>
 
 	neo		PPC405EP
+	gdppc440etx	PPC440EP/GR

Please keep lists sorted.

board/gdsys/gdppc440etx/gdppc440etx.c line 4

Quoted 10 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +4 -0
new file mode 100644
index 0000000..8903b61
@@ -0,0 +1,494 @@
+/*
+ * (C) Copyright 2008
+ * Dirk Eibach,  Guntermann & Drunck GmbH, eibach at gdsys.de
+ *

You claim exclusive copyright for this file. However, large parts of this file are verbatim copies from elsewhere. For example, the PCI code has extensively been "borrowed" from other boards. This is perfectly legal, but please make sure to correctly attribute such code. Otherwise the (legal) copying into (illegal) stealing.

board/gdsys/gdppc440etx/gdppc440etx.c line 107

Quoted 8 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +8 -0
+	/*clear tmrclk divisor */
+	*(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x04) = 0x00;
+
+	/*enable ethernet */
+	*(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x08) = 0xf0;
+
+	/*get rid of flash write protect */
+	*(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x07) = 0x00;

Please use I/O accessor functions/macros to write peripherals.

Quoted 24 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +24 -0
+int misc_init_r (void)
+{
+	uint pbcr;
+	int size_val = 0;
+
+	/* Re-do sizing to get full correct info */
+	mtdcr(ebccfga, pb0cr);
+	pbcr = mfdcr(ebccfgd);
+	switch (gd->bd->bi_flashsize) {
+	case 1 << 20:
+		size_val = 0;
+		break;
+	case 2 << 20:
+		size_val = 1;
+		break;
+	case 4 << 20:
+		size_val = 2;
+		break;
+	case 8 << 20:
+		size_val = 3;
+		break;
+	case 16 << 20:
+		size_val = 4;
+		break;

board/gdsys/gdppc440etx/gdppc440etx.c line 145

Quoted 10 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +10 -0
+	case 32 << 20:
+		size_val = 5;
+		break;
+	case 64 << 20:
+		size_val = 6;
+		break;
+	case 128 << 20:
+		size_val = 7;
+		break;
+	}

How about providing a "default" entry?

And - wouldn't it be easier to drop the while switch and use

	uint sz = (gd->bd->bi_flashsize >> 20);

	for (size_val=0; (sz & 1) == 0; ++size_val)
		sz >>= 1;

instead?

board/gdsys/gdppc440etx/gdppc440etx.c line 146

Quoted 1 line
board/gdsys/gdppc440etx/gdppc440etx.c new file +1 -0
+	pbcr = (pbcr & 0x0001ffff) | gd->bd->bi_flashstart | (size_val << 17);

...or combine the >> 20 above with the << 17 here ?

board/gdsys/gdppc440etx/gdppc440etx.c line 172

Quoted 4 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +4 -0
+	printf("Board: GDPPC440ETX - Guntermann & Drunck PPC440EP/GR ETX-module");
+
+	rev = in_8((void *)(CONFIG_SYS_BCSR_BASE + 0));
+	val = in_8((void *)(CONFIG_SYS_BCSR_BASE + 5)) & CONFIG_SYS_BCSR5_PCI66EN;

Line length?

board/gdsys/gdppc440etx/gdppc440etx.c line 187

Quoted 4 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +4 -0
+/*************************************************************************
+ *  initdram -- doesn't use serial presence detect.
+ *
+ *  Assumes:    256 MB, ECC, non-registered

Do not hard-code sizes. Use aut-sizing, please.

Quoted 43 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +43 -0
+void sdram_tr1_set(int ram_address, int* tr1_value)
+{
+	int i;
+	int j, k;
+	volatile unsigned int* ram_pointer =  (unsigned int*)ram_address;
+	int first_good = -1, last_bad = 0x1ff;
+
+	unsigned long test[NUM_TRIES] = {
+		0x00000000, 0x00000000, 0xFFFFFFFF, 0xFFFFFFFF,
+		0x00000000, 0x00000000, 0xFFFFFFFF, 0xFFFFFFFF,
+		0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0x00000000,
+		0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0x00000000,
+		0xAAAAAAAA, 0xAAAAAAAA, 0x55555555, 0x55555555,
+		0xAAAAAAAA, 0xAAAAAAAA, 0x55555555, 0x55555555,
+		0x55555555, 0x55555555, 0xAAAAAAAA, 0xAAAAAAAA,
+		0x55555555, 0x55555555, 0xAAAAAAAA, 0xAAAAAAAA,
+		0xA5A5A5A5, 0xA5A5A5A5, 0x5A5A5A5A, 0x5A5A5A5A,
+		0xA5A5A5A5, 0xA5A5A5A5, 0x5A5A5A5A, 0x5A5A5A5A,
+		0x5A5A5A5A, 0x5A5A5A5A, 0xA5A5A5A5, 0xA5A5A5A5,
+		0x5A5A5A5A, 0x5A5A5A5A, 0xA5A5A5A5, 0xA5A5A5A5,
+		0xAA55AA55, 0xAA55AA55, 0x55AA55AA, 0x55AA55AA,
+		0xAA55AA55, 0xAA55AA55, 0x55AA55AA, 0x55AA55AA,
+		0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55,
+		0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55 };
+
+	/* go through all possible SDRAM0_TR1[RDCT] values */
+	for (i=0; i<=0x1ff; i++) {
+		/* set the current value for TR1 */
+		mtsdram(mem_tr1, (0x80800800 | i));
+
+		/* write values */
+		for (j=0; j<NUM_TRIES; j++) {
+			ram_pointer[j] = test[j];
+
+			/* clear any cache at ram location */
+			__asm__("dcbf 0,%0": :"r" (&ram_pointer[j]));
+		}
+
+		/* read values back */
+		for (j=0; j<NUM_TRIES; j++) {
+			for (k=0; k<NUM_READS; k++) {
+				/* clear any cache at ram location */
+				__asm__("dcbf 0,%0": :"r" (&ram_pointer[j]));

board/gdsys/gdppc440etx/gdppc440etx.c line 246

Quoted 10 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +10 -0
+
+				if (ram_pointer[j] != test[j])
+					break;
+			}
+
+			/* read error */
+			if (k != NUM_READS) {
+				break;
+			}
+		}

Please do not implement yet another RAM test in U-Boot. We already have enough of them. If you really want to test your RAM, that is. For auto-sizing, you should use memsize() instead.

board/gdsys/gdppc440etx/gdppc440etx.c line 475

Quoted 7 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +7 -0
+#if defined(CONFIG_PCI)
+int is_pci_host(struct pci_controller *hose)
+{
+	/* Bamboo is always configured as host. */
+	return (1);
+}
+#endif				/* defined(CONFIG_PCI) */

Bamboo. Aha. That's where the code was copied from ;-)

You might want to fix that, though.

board/gdsys/gdppc440etx/gdppc440etx.c line 488

Quoted 13 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +13 -0
+
+/*************************************************************************
+ *  hw_watchdog_reset
+ *
+ *	This routine is called to reset (keep alive) the watchdog timer
+ *
+ ************************************************************************/
+#if defined(CONFIG_HW_WATCHDOG)
+void hw_watchdog_reset(void)
+{
+
+}
+#endif

Please do not add dead code - either you have a WD, then it needs real reset code, or you don't, then omit this all together.

board/gdsys/gdppc440etx/init.S line 4

Quoted 10 lines
board/gdsys/gdppc440etx/init.S new file +4 -0
new file mode 100644
index 0000000..f938236
@@ -0,0 +1,112 @@
+/*
+*
+* See file CREDITS for list of people who contributed to this
+* project.

Copyright entry missing.

Quoted 8 lines
board/gdsys/gdppc440etx/init.S new file +8 -0
+    /*
+     * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
+     * speed up boot process. It is patched after relocation to enable SA_I
+     */
+    tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
+
+    /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
+    tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )

board/gdsys/gdppc440etx/init.S line 107

Quoted 10 lines
board/gdsys/gdppc440etx/init.S new file +10 -0
+
+    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I )
+
+    /* PCI */
+    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )

Lines too long.

common/Makefile COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o · line 73

Quoted 10 lines
common/Makefile +1 -1
index 6484b23..a04c3d9 100644
@@ -70,7 +70,7 @@ COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
 COBJS-$(CONFIG_CMD_CACHE) += cmd_cache.o
 COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o
 COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
-COBJS-$(CONFIG_CMD_DATE) += cmd_date.o
+#COBJS-$(CONFIG_CMD_DATE) += cmd_date.o

Grrrrghhh...

NEVER make any such changes to global files.

Why don;t you just remove the CONFIG_CMD_DATE from your board config file if you don't want to have this feature????

Quoted 5 lines
include/configs/gdppc440etx.h new file +0 -0
new file mode 100644
index 0000000..d41a98a

...

include/configs/gdppc440etx.h line 48

Quoted 5 lines
include/configs/gdppc440etx.h new file +5 -0
+#define CONFIG_BOARD_EARLY_INIT_F 1     /* Call board_early_init_f	*/
+#define CONFIG_MISC_INIT_R	1	/* call misc_init_r()		*/
+#if 0
+#define CONFIG_BOARD_RESET	1	/* call board_reset()		*/
+#endif

Please do not add dead code.

include/configs/gdppc440etx.h line 55

Quoted 6 lines
include/configs/gdppc440etx.h new file +6 -0
+/*-----------------------------------------------------------------------
+ * Base addresses -- Note these are effective addresses where the
+ * actual resources get mapped (not physical addresses)
+ *----------------------------------------------------------------------*/
+#define CONFIG_SYS_FLASH_BASE	        0xfc000000	    /* start of FLASH	*/
+#define CONFIG_SYS_PCI_MEMBASE	        0xa0000000	    /* mapped pci memory*/

Lines too long (whole file).

include/configs/gdppc440etx.h line 176

Quoted 2 lines
include/configs/gdppc440etx.h new file +2 -0
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8	/* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe	/* Whatever */

Whetever? This doesn't look like valid settings to me...

Best regards,

Wolfgang Denk

Signature · 4 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
Intel's new motto: United we stand. Divided we fall!
#2 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Hello Wolfgang,

Thanks for the review. I'm busys cleaning up the code, but at one point I need some help:

Quoted 53 lines
Quoted 1 line

+/********************************************************************

Quoted 4 lines

+*****
+ * initdram -- doesn't use serial presence detect.
+ *
+ * Assumes: 256 MB, ECC, non-registered

Do not hard-code sizes. Use aut-sizing, please.

board/gdsys/gdppc440etx/gdppc440etx.c

Quoted 4 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +4 -0
+void sdram_tr1_set(int ram_address, int* tr1_value) {
+	int i;
+	int j, k;
+	volatile unsigned int* ram_pointer =  (unsigned 

int*)ram_address;

Quoted 28 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +28 -0
+	int first_good = -1, last_bad = 0x1ff;
+
+	unsigned long test[NUM_TRIES] = {
+		0x00000000, 0x00000000, 0xFFFFFFFF, 0xFFFFFFFF,
+		0x00000000, 0x00000000, 0xFFFFFFFF, 0xFFFFFFFF,
+		0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0x00000000,
+		0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0x00000000,
+		0xAAAAAAAA, 0xAAAAAAAA, 0x55555555, 0x55555555,
+		0xAAAAAAAA, 0xAAAAAAAA, 0x55555555, 0x55555555,
+		0x55555555, 0x55555555, 0xAAAAAAAA, 0xAAAAAAAA,
+		0x55555555, 0x55555555, 0xAAAAAAAA, 0xAAAAAAAA,
+		0xA5A5A5A5, 0xA5A5A5A5, 0x5A5A5A5A, 0x5A5A5A5A,
+		0xA5A5A5A5, 0xA5A5A5A5, 0x5A5A5A5A, 0x5A5A5A5A,
+		0x5A5A5A5A, 0x5A5A5A5A, 0xA5A5A5A5, 0xA5A5A5A5,
+		0x5A5A5A5A, 0x5A5A5A5A, 0xA5A5A5A5, 0xA5A5A5A5,
+		0xAA55AA55, 0xAA55AA55, 0x55AA55AA, 0x55AA55AA,
+		0xAA55AA55, 0xAA55AA55, 0x55AA55AA, 0x55AA55AA,
+		0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55,
+		0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55 };
+
+	/* go through all possible SDRAM0_TR1[RDCT] values */
+	for (i=0; i<=0x1ff; i++) {
+		/* set the current value for TR1 */
+		mtsdram(mem_tr1, (0x80800800 | i));
+
+		/* write values */
+		for (j=0; j<NUM_TRIES; j++) {
+			ram_pointer[j] = test[j];

board/gdsys/gdppc440etx/gdppc440etx.c

Quoted 10 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +10 -0
+
+			/* clear any cache at ram location */
+			__asm__("dcbf 0,%0": :"r" (&ram_pointer[j]));
+		}
+
+		/* read values back */
+		for (j=0; j<NUM_TRIES; j++) {
+			for (k=0; k<NUM_READS; k++) {
+				/* clear any cache at ram location */
+				__asm__("dcbf 0,%0": :"r" 

(&ram_pointer[j]));

Quoted 14 lines

board/gdsys/gdppc440etx/gdppc440etx.c line 246

Quoted 10 lines
board/gdsys/gdppc440etx/gdppc440etx.c new file +10 -0
+
+				if (ram_pointer[j] != test[j])
+					break;
+			}
+
+			/* read error */
+			if (k != NUM_READS) {
+				break;
+			}
+		}

Please do not implement yet another RAM test in U-Boot. We already have enough of them. If you really want to test your RAM, that is. For auto-sizing, you should use memsize() instead.

You are right, there is no RAM test necessary here. I want to use auto-sizing with memsize(), but I did not find any refererences to that in u-boot sources. Probaly I am missing something obvious. Can you show me an example, where auto-sizing is used?

Cheers
Dirk

#3 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Dear Dirk,

Quoted 3 lines · In message <[email protected]> you wrote:

Thanks for the review. I'm busys cleaning up the code, but at one point I need some help:

...

Quoted 4 lines

You are right, there is no RAM test necessary here. I want to use auto-sizing with memsize(), but I did not find any refererences to that in u-boot sources. Probaly I am missing something obvious. Can you show me an example, where auto-sizing is used?

Sure. Many, actually:

	$ grep -Rl get_ram_size board/
	board/LEOX/elpt860/elpt860.c
	board/RPXClassic/RPXClassic.c
	board/RPXlite/RPXlite.c
	board/RPXlite_dw/RPXlite_dw.c
	board/RRvision/RRvision.c
	board/a3000/a3000.c
	board/adder/adder.c
	board/atc/atc.c
	board/atmel/atngw100/atngw100.c
	board/atmel/atstk1000/atstk1000.c
	board/barco/barco.c
	board/bc3450/bc3450.c
	board/c2mon/c2mon.c
	board/canmb/canmb.c
	board/cm5200/cm5200.c
	board/cpu86/cpu86.c
	board/cpu87/cpu87.c
	board/cu824/cu824.c
	board/earthlcd/favr-32-ezkit/favr-32-ezkit.c
	board/ep88x/ep88x.c
	board/esd/cpci5200/cpci5200.c
	board/esd/mecp5200/mecp5200.c
	board/esd/pf5200/pf5200.c
	board/esteem192e/esteem192e.c
	board/etin/kvme080/kvme080.c
	board/etx094/etx094.c
	board/fads/fads.c
	board/genietv/genietv.c
	board/hermes/hermes.c
	board/hidden_dragon/hidden_dragon.c
	board/hmi1001/hmi1001.c
	board/icecube/icecube.c
	board/icu862/icu862.c
	board/ids8247/ids8247.c
	board/incaip/incaip.c
	board/inka4x0/inka4x0.c
	board/ip860/ip860.c
	board/iphase4539/iphase4539.c
	board/ispan/ispan.c
	board/ivm/ivm.c
	board/jupiter/jupiter.c
	board/lantec/lantec.c
	board/linkstation/linkstation.c
	board/lwmon/lwmon.c
	board/matrix_vision/mvbc_p/mvbc_p.c
	board/mcc200/mcc200.c
	board/keymile/mgcoge/mgcoge.c
	board/keymile/mgsuvd/mgsuvd.c
	board/mimc/mimc200/mimc200.c
	board/miromico/hammerhead/hammerhead.c
	board/motionpro/motionpro.c
	board/muas3001/muas3001.c
	board/mucmc52/mucmc52.c
	board/munices/munices.c
	board/musenki/musenki.c
	board/mvblue/mvblue.c
	board/nc650/nc650.c
	board/netphone/netphone.c
	board/netta/netta.c
	board/netta2/netta2.c
	board/nx823/nx823.c
	board/o2dnt/o2dnt.c
	board/oxc/oxc.c
	board/pm520/pm520.c
	board/pm826/pm826.c
	board/pn62/pn62.c
	board/r360mpi/r360mpi.c
	board/rbc823/rbc823.c
	board/rmu/rmu.c
	board/sandpoint/sandpoint.c
	board/sbc8240/sbc8240.c
	board/siemens/CCM/ccm.c
	board/siemens/IAD210/IAD210.c
	board/siemens/SCM/scm.c
	board/siemens/pcu_e/pcu_e.c
	board/sl8245/sl8245.c
	board/snmc/qs850/qs850.c
	board/snmc/qs860t/qs860t.c
	board/socrates/sdram.c
	board/sorcery/sorcery.c
	board/spc1920/spc1920.c
	board/spd8xx/spd8xx.c
	board/stxxtc/stxxtc.c
	board/tb0229/tb0229.c
	board/total5200/sdram.c
	board/tqc/tqm5200/tqm5200.c
	board/tqc/tqm8260/tqm8260.c
	board/tqc/tqm8272/tqm8272.c
	board/tqc/tqm834x/tqm834x.c
	board/tqc/tqm85xx/sdram.c
	board/tqc/tqm8xx/tqm8xx.c
	board/uc101/uc101.c
	board/utx8245/utx8245.c
	board/v38b/v38b.c
	board/xilinx/ppc440-generic/xilinx_ppc440_generic.c
	board/xilinx/ppc405-generic/xilinx_ppc405_generic.c

Best regards,

Wolfgang Denk

Signature · 8 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
The people of Gideon have always believed that life is  sacred.  That
the  love  of  life  is  the  greatest  gift  ... We are incapable of
destroying or interfering with the creation of that which we love  so
deeply -- life in every form from fetus to developed being.
	-- Hodin of Gideon, "The Mark of Gideon", stardate 5423.4
#4 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

In reply to Dirk Eibach

Hi Dirk,

Quoted 1 line · Dirk Eibach

Please find below some comments in addition to Wolfgangs comments:

<snip>

Quoted 27 lines
(quoted diff) +0 -0

b/board/gdsys/gdppc440etx/init.S new file mode 100644 index 0000000..f938236

board/gdsys/gdppc440etx/init.S new file +21 -0
@@ -0,0 +1,112 @@
+/*
+*
+* See file CREDITS for list of people who contributed to this
+* project.
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License as
+* published by the Free Software Foundation; either version 2 of
+* the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+* MA 02111-1307 USA
+*/
+

board/gdsys/gdppc440etx/init.S line 31

Quoted 10 lines
board/gdsys/gdppc440etx/init.S new file +10 -0
+#include <ppc_asm.tmpl>
+#include <config.h>
+
+/* General */
+#define TLB_VALID   0x00000200
+
+/* Supported page sizes */
+
+#define SZ_1K	    0x00000000
+#define SZ_4K	    0x00000010

...

Just include:

#include <asm-ppc/mmu.h>

and you get all those defines for free.

Best regards,
Stefan

=====================================================================
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
=====================================================================

#5 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Quoted 3 lines · Stefan Roese

Hi Dirk,

On Thursday 27 November 2008, Dirk Eibach wrote:

[snip]

Quoted 12 lines
Quoted 10 lines
board/gdsys/gdppc440etx/init.S new file +10 -0
+#include <ppc_asm.tmpl>
+#include <config.h>
+
+/* General */
+#define TLB_VALID   0x00000200
+
+/* Supported page sizes */
+
+#define SZ_1K	    0x00000000
+#define SZ_4K	    0x00000010

...

Quoted 8 lines

Just include:

#include <asm-ppc/mmu.h>

and you get all those defines for free.

Best regards,
Stefan

Hi Stefan,

I'll do you four letters fewer:

#include <asm/mmu.h>

...since include/asm is symlinked to the active asm-<arch>.

Best regards,
gvb

#6 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Quoted 4 lines · Jerry Van Baren
Quoted 4 lines

Just include:

#include <asm-ppc/mmu.h>

Quoted 8 lines
Quoted 4 lines

and you get all those defines for free.

Best regards,
Stefan

Hi Stefan,

I'll do you four letters fewer:

Nice. ;)

Quoted 3 lines

#include <asm/mmu.h>

...since include/asm is symlinked to the active asm-<arch>.

Of course. Good catch.

Thanks,
Stefan

=====================================================================
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
=====================================================================

#7 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

In reply to Jerry Van Baren

Dear Jerry Van Baren,

Quoted 2 lines · In message <[email protected]> you wrote:
Quoted 2 lines

#include <asm-ppc/mmu.h>

...

Quoted 6 lines

I'll do you four letters fewer:

#include <asm/mmu.h>

...since include/asm is symlinked to the active asm-<arch>.

Thanks - well spotted.

To summarize: asm-ppc is a four letters word :-)

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 a good thing for an uneducated man to read books of quotations.
                        - Sir Winston Churchill _My Early Life_ ch. 9
#8 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

In reply to Dirk Eibach

board/gdsys/gdppc440etx/gdppc440etx.c line 42

Quoted 8 lines · Dirk Eibach
board/gdsys/gdppc440etx/gdppc440etx.c new file +7 -0
+int board_early_init_f(void)
+{
+	register uint reg;
+
+	/*--------------------------------------------------------------------
+	 * Setup the external bus controller/chip selects
+	 *-------------------------------------------------------------------*/

I am sure, but didn't we once said that these dashed lines are ugly and multiline comments should look like this:

	/*
	 * bla
	 * bla bla
	 */

Matthias

#9 lore raw

PATCH 1/1 Added support for the Guntermann & Drunck PowerPC 440 EP/GR ETX module.

Quoted 13 lines · Matthias Fuchs

board/gdsys/gdppc440etx/gdppc440etx.c line 42

Quoted 8 lines · Dirk Eibach
board/gdsys/gdppc440etx/gdppc440etx.c new file +7 -0
+int board_early_init_f(void)
+{
+	register uint reg;
+
+	/*--------------------------------------------------------------------
+	 * Setup the external bus controller/chip selects
+	 *-------------------------------------------------------------------*/

I am sure, but didn't we once said that these dashed lines are ugly and multiline comments should look like this:

Quoted 4 lines
	/*
	 * bla
	 * bla bla
	 */

Yes.

jdl