Skip to contentSkip to conversation

Change the configuration for the STx GP3-SSA board in order to support FDT parsing and passing.

PATCH New Bradley Hughes 2 participants 5 messages Jul 20, 2010 – Aug 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change the configuration for the STx GP3-SSA board in order to support FDT parsing and passing.

Change the configuration for the STx GP3-SSA board in order to support
FDT parsing and passing.
Also changed default u-boot environment for convenience.

---
 board/stx/stxssa/stxssa.c |   10 ++++
 include/configs/stxssa.h  |  114 +++++++++++++++++++++++++++++----------------
 2 files changed, 84 insertions(+), 40 deletions(-)
board/stx/stxssa/stxssa.c +10 -0
index 0b2584c..9cd2c62 100644
@@ -40,6 +40,8 @@
 #include <spd_sdram.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <libfdt.h>
+#include <fdt_support.h>
 
 long int fixed_sdram (void);
 
@@ -407,3 +409,11 @@ int board_eth_init(bd_t *bis)
 	cpu_eth_init(bis);	/* Initialize TSECs first */
 	return pci_eth_init(bis);
 }
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+        ft_cpu_setup(blob, bd);
+}
+#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
+
include/configs/stxssa.h +74 -40

177 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 Change the configuration for the STx GP3-SSA board in order to support FDT parsing and passing.

Dear Bradley Hughes,

your Subject: is WAY too long - please restict to some 60 characters or so.

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

Change the configuration for the STx GP3-SSA board in order to support
FDT parsing and passing.

...and please don't repeat the same in the commit message.

...

Quoted 15 lines
board/stx/stxssa/stxssa.c +2 -0
index 0b2584c..9cd2c62 100644
@@ -40,6 +40,8 @@
 #include <spd_sdram.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <libfdt.h>
+#include <fdt_support.h>
 
 long int fixed_sdram (void);
 
@@ -407,3 +409,11 @@ int board_eth_init(bd_t *bis)
 	cpu_eth_init(bis);	/* Initialize TSECs first */

board/stx/stxssa/stxssa.c int board_eth_init(bd_t *bis) · line 419

Quoted 10 lines
board/stx/stxssa/stxssa.c +8 -0
 	return pci_eth_init(bis);
 }
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+        ft_cpu_setup(blob, bd);
+}
+#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
+

Please don't add trailing empty lines.

Quoted 4 lines
include/configs/stxssa.h +0 -0
index 363f7b4..d7adee9 100644

...

include/configs/stxssa.h line 40

Quoted 2 lines
include/configs/stxssa.h +1 -1
-#define CONFIG_MPC8560		1
+#define CONFIG_MPC8555		1

Hm... is this correct? The board I have here actually seems to use a 8541E ?

include/configs/stxssa.h line 431

Quoted 7 lines
include/configs/stxssa.h +3 -0
@@ -419,6 +426,20 @@
 #define CONFIG_ETH2ADDR  00:e0:0c:07:9b:8c
 #endif
 
+
+
+/*

Please max. 2 blank lines.

include/configs/stxssa.h line 441

Quoted 10 lines
include/configs/stxssa.h +10 -0
+ * Configuration options for EEPROM or FLASH Setup
+ */
+#define CONFIG_SERVERIP		10.10.0.150
+#define CONFIG_IPADDR		10.10.0.95
+#define CONFIG_GATEWAYIP	10.10.0.1
+#define CONFIG_NETMASK		255.255.255.0
+#define CONFIG_HOSTNAME		STX_SSA
+#define CONFIG_ROOTPATH		/opt/ppc/ppc_85xx
+#define CONFIG_BOOTFILE 	stxssa/uImage
+#define CONFIG_FDTFILE		stxssa/stxssa.fdt

NAK. We do not allow network configuration in the board config file; it may be correct for you, but it is wrong for all other users.

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
"The X11 source code style is ATROCIOUS and should not be used  as  a
model."                                                   - Doug Gwyn
#2 lore raw

PATCH 1/1 Change the configuration for the STx GP3-SSA board in order to support FDT parsing and passing.

Hi, Wolfgang,

Quoted 11 lines · Wolfgang Denk

Dear Bradley Hughes,

your Subject: is WAY too long - please restict to some 60 characters or so.

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

Change the configuration for the STx GP3-SSA board in order to support ?FDT parsing and passing.

...and please don't repeat the same in the commit message.

ACK... Sorry for this... it is my first time submitting a patch to the community. I appreciate the feedback in how things are done; thanks!

Quoted 34 lines

...

Quoted 17 lines
board/stx/stxssa/stxssa.c +0 -0
index 0b2584c..9cd2c62 100644
@@ -40,6 +40,8 @@

?#include <spd_sdram.h>
?#include <miiphy.h>
?#include <netdev.h>

board/stx/stxssa/stxssa.c +2 -0
+#include <libfdt.h>
+#include <fdt_support.h>

?long int fixed_sdram (void);

board/stx/stxssa/stxssa.c +0 -0
@@ -407,3 +409,11 @@ int board_eth_init(bd_t *bis)

? ? ? cpu_eth_init(bis); ? ? ?/* Initialize TSECs first */ ? ? ? return pci_eth_init(bis);
?}

board/stx/stxssa/stxssa.c int board_eth_init(bd_t *bis) · line 419

Quoted 8 lines
board/stx/stxssa/stxssa.c +8 -0
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+ ? ? ? ?ft_cpu_setup(blob, bd);
+}
+#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
+

Please don't add trailing empty lines.

Quoted 4 lines
include/configs/stxssa.h +0 -0
index 363f7b4..d7adee9 100644

...

Quoted 5 lines

include/configs/stxssa.h

Quoted 2 lines
include/configs/stxssa.h +1 -1
-#define CONFIG_MPC8560 ? ? ? ? ? ? ? 1
+#define CONFIG_MPC8555 ? ? ? ? ? ? ? 1

Hm... is this correct? The board I have here actually seems to use a 8541E ?

The board has two population options; the 8541E and 8555E are pin compatible. The one I am working on right now has the 8555.

What would be the best way to achieve compatibility? Should the stxssa be split into two boards? Or is there a better facility to accommodate this? (#if 0 ... #else ... #endif block?) Perhaps another board does this that I could use as an example?

Quoted 12 lines

include/configs/stxssa.h line 431

Quoted 9 lines
include/configs/stxssa.h +0 -0
@@ -419,6 +426,20 @@

?#define CONFIG_ETH2ADDR ?00:e0:0c:07:9b:8c
?#endif

include/configs/stxssa.h +3 -0
+
+
+/*

Please max. 2 blank lines.

Quoted 13 lines

include/configs/stxssa.h

Quoted 10 lines

+ * Configuration options for EEPROM or FLASH Setup
+ */

include/configs/stxssa.h +8 -0
+#define CONFIG_SERVERIP ? ? ? ? ? ? ?10.10.0.150
+#define CONFIG_IPADDR ? ? ? ? ? ? ? ?10.10.0.95
+#define CONFIG_GATEWAYIP ? ? 10.10.0.1
+#define CONFIG_NETMASK ? ? ? ? ? ? ? 255.255.255.0
+#define CONFIG_HOSTNAME ? ? ? ? ? ? ?STX_SSA
+#define CONFIG_ROOTPATH ? ? ? ? ? ? ?/opt/ppc/ppc_85xx
+#define CONFIG_BOOTFILE ? ? ?stxssa/uImage
+#define CONFIG_FDTFILE ? ? ? ? ? ? ? stxssa/stxssa.fdt

NAK. We do not allow network configuration in the board config file; it may be correct for you, but it is wrong for all other users.

Certainly, I'll remove all of the network configuration lines, fix whitespace problems, and resubmit. In the mean time I'd appreciate pointers on the multiple processor per board issue.

Quoted 14 lines

Best regards,

Wolfgang Denk

--
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 X11 source code style is ATROCIOUS and should not be used ?as ?a model." ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? - Doug Gwyn

Best Regards,
Bradley

#3 lore raw

PATCH 1/1 Change the configuration for the STx GP3-SSA board in order to support FDT parsing and passing.

Dear Bradley Hughes,

Quoted 7 lines · In message <[email protected]> you…
Quoted 6 lines

include/configs/stxssa.h line 40

Quoted 3 lines
include/configs/stxssa.h +1 -1
-#define CONFIG_MPC8560               1
+#define CONFIG_MPC8555               1

Hm... is this correct? The board I have here actually seems to use a 8541E ?

Quoted 7 lines

The board has two population options; the 8541E and 8555E are pin compatible. The one I am working on right now has the 8555.

What would be the best way to achieve compatibility? Should the stxssa be split into two boards? Or is there a better facility to accommodate this? (#if 0 ... #else ... #endif block?) Perhaps another board does this that I could use as an example?

If needed we could add this a separate Makefile targets; but if the same U-Boot image really runs on both systems (displaying the correct CPU id?), then we don't need this. It's OK to set this to 8555, then.

Best regards,

Wolfgang Denk

Signature · 9 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
Do you know the one -- "All I ask is a tall ship, and a star to steer
her by ..." You could feel the wind at your back, about you  ...  the
sounds of the sea beneath you. And even if you take away the wind and
the  water,  it's  still the same. The ship is yours ... you can feel
her ... and the stars are still there.
	-- Kirk, "The Ultimate Computer", stardate 4729.4
#4 lore raw

PATCH 1/1 Change the configuration for the STx GP3-SSA board in order to support FDT parsing and passing.

In reply to Bradley Hughes

Dear Bradley Hughes,

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

Change the configuration for the STx GP3-SSA board in order to support
FDT parsing and passing.
Also changed default u-boot environment for convenience.

One more thing:

...

Quoted 1 line

+ "consdev=ttyPSC0\0" \

...

This is almost certainly wrong. There is no PSC on a 85xx; on my board, "consdev=ttyS1" is needed.

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
Be wiser than other people if you can, but do not tell them so.
                                       -- Philip Earl of Chesterfield