public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH 1/3] 8xx : Add of support to Adder875 board port - resubmit
@ 2008-02-15  1:05 Bryan O'Donoghue
  2008-03-25 21:20 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Bryan O'Donoghue @ 2008-02-15  1:05 UTC (permalink / raw)
  To: u-boot

Greetings.

Adds OF support to the Adder875 board port.

Re: some stuff pointed out by Scott Wood, have removed some superfluous stuff
from Adder.h as against last submission

Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>
---

diff --git a/board/adder/adder.c b/board/adder/adder.c
index aa78158..5a2f752 100644
--- a/board/adder/adder.c
+++ b/board/adder/adder.c
@@ -26,6 +26,9 @@
 
 #include <common.h>
 #include <mpc8xx.h>
+#if defined(CONFIG_OF_LIBFDT)
+	#include <libfdt.h>
+#endif
 
 /*
  * SDRAM is single Samsung K4S643232F-T70   chip (8MB)
@@ -111,3 +114,12 @@ int checkboard( void )
 
 	return 0;
 }
+
+#if defined(CONFIG_OF_BOARD_SETUP)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+	ft_cpu_setup(blob, bd);
+
+}
+#endif
+
diff --git a/include/configs/Adder.h b/include/configs/Adder.h
index 4304ecc..7919991 100644
--- a/include/configs/Adder.h
+++ b/include/configs/Adder.h
@@ -37,6 +37,8 @@
 
 #define CONFIG_ETHER_ON_FEC1
 #define CONFIG_ETHER_ON_FEC2
+#define CONFIG_HAS_ETH0
+#define CONFIG_HAS_ETH1
 
 #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
 #define CFG_DISCOVER_PHY
@@ -212,4 +214,8 @@
 #define BOOTFLAG_COLD		0x01	/* Normal Power-On: Boot from flash	*/
 #define BOOTFLAG_WARM		0x02	/* Software reboot			*/
 
+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+
 #endif /* __CONFIG_H */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot-Users] [PATCH 1/3] 8xx : Add of support to Adder875 board port - resubmit
  2008-02-15  1:05 [U-Boot-Users] [PATCH 1/3] 8xx : Add of support to Adder875 board port - resubmit Bryan O'Donoghue
@ 2008-03-25 21:20 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2008-03-25 21:20 UTC (permalink / raw)
  To: u-boot

In message <20080215010558.09ebc889@neuromancer.mindspace> you wrote:
> Greetings.
> 
> Adds OF support to the Adder875 board port.
> 
> Re: some stuff pointed out by Scott Wood, have removed some superfluous stuff
> from Adder.h as against last submission
> 
> Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>

Applied, thanks.

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
What is wanted is not the will to believe,  but the will to find out,
which is the exact opposite.
		        -- Bertrand Russell, "Skeptical Essays", 1928

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-25 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-15  1:05 [U-Boot-Users] [PATCH 1/3] 8xx : Add of support to Adder875 board port - resubmit Bryan O'Donoghue
2008-03-25 21:20 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox