public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] TQM8xx: enable device tree support on all TQM8xx based boards.
Date: Tue, 09 Feb 2010 15:50:27 +0100	[thread overview]
Message-ID: <4B717633.704@denx.de> (raw)

also enable support for CONFIG_HWCONFIG, because we use this
feature for configuring, if this hardware has an fec or not.
So we can adjust the DTS, if there is a fec or not.

syntax:

hwconfig=fec:on   if hardware has an fec
hwconfig=fec:off  if hardware has no fec

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 include/configs/FPS850L.h  |    5 +++++
 include/configs/FPS860L.h  |    5 +++++
 include/configs/HMI10.h    |    5 +++++
 include/configs/NSCU.h     |    5 +++++
 include/configs/SM850.h    |    5 +++++
 include/configs/TK885D.h   |    5 +++++
 include/configs/TQM823L.h  |    5 +++++
 include/configs/TQM823M.h  |    5 +++++
 include/configs/TQM850L.h  |    5 +++++
 include/configs/TQM850M.h  |    5 +++++
 include/configs/TQM855L.h  |    5 +++++
 include/configs/TQM855M.h  |    5 +++++
 include/configs/TQM860L.h  |    5 +++++
 include/configs/TQM860M.h  |    5 +++++
 include/configs/TQM862L.h  |    5 +++++
 include/configs/TQM862M.h  |    5 +++++
 include/configs/TQM866M.h  |    5 +++++
 include/configs/TQM885D.h  |    5 +++++
 include/configs/virtlab2.h |    6 ++++++
 19 files changed, 96 insertions(+), 0 deletions(-)

diff --git a/include/configs/FPS850L.h b/include/configs/FPS850L.h
index 1190656..addca2f 100644
--- a/include/configs/FPS850L.h
+++ b/include/configs/FPS850L.h
@@ -437,4 +437,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/FPS860L.h b/include/configs/FPS860L.h
index 73bcccc..ec9000d 100644
--- a/include/configs/FPS860L.h
+++ b/include/configs/FPS860L.h
@@ -439,4 +439,9 @@

 #define CONFIG_SCC1_ENET

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/HMI10.h b/include/configs/HMI10.h
index 88e1946..2747d8c 100644
--- a/include/configs/HMI10.h
+++ b/include/configs/HMI10.h
@@ -496,4 +496,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/NSCU.h b/include/configs/NSCU.h
index 5dd72ff..5724f45 100644
--- a/include/configs/NSCU.h
+++ b/include/configs/NSCU.h
@@ -487,4 +487,9 @@
 #define CONFIG_FEC_ENET
 /* #define CONFIG_ETHPRIME		"FEC ETHERNET" */

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/SM850.h b/include/configs/SM850.h
index 7266f9a..56f03e2 100644
--- a/include/configs/SM850.h
+++ b/include/configs/SM850.h
@@ -372,4 +372,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TK885D.h b/include/configs/TK885D.h
index 1e6d9ce..0df1b6e 100644
--- a/include/configs/TK885D.h
+++ b/include/configs/TK885D.h
@@ -516,4 +516,9 @@
 #define CONFIG_NET_RETRY_COUNT	3
 #define CONFIG_ETHPRIME		"FEC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM823L.h b/include/configs/TQM823L.h
index 966beae..372c76d 100644
--- a/include/configs/TQM823L.h
+++ b/include/configs/TQM823L.h
@@ -490,4 +490,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM823M.h b/include/configs/TQM823M.h
index cfa693d..64c9707 100644
--- a/include/configs/TQM823M.h
+++ b/include/configs/TQM823M.h
@@ -486,4 +486,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM850L.h b/include/configs/TQM850L.h
index dc0498e..bf6ecce 100644
--- a/include/configs/TQM850L.h
+++ b/include/configs/TQM850L.h
@@ -475,4 +475,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM850M.h b/include/configs/TQM850M.h
index cdabc53..7442452 100644
--- a/include/configs/TQM850M.h
+++ b/include/configs/TQM850M.h
@@ -475,4 +475,9 @@
 #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
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM855L.h b/include/configs/TQM855L.h
index 1255928..32a7e79 100644
--- a/include/configs/TQM855L.h
+++ b/include/configs/TQM855L.h
@@ -483,4 +483,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM855M.h b/include/configs/TQM855M.h
index 584d40b..4f44be3 100644
--- a/include/configs/TQM855M.h
+++ b/include/configs/TQM855M.h
@@ -518,4 +518,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM860L.h b/include/configs/TQM860L.h
index a772a27..e86fe5e 100644
--- a/include/configs/TQM860L.h
+++ b/include/configs/TQM860L.h
@@ -482,4 +482,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT       1
+#define CONFIG_OF_BOARD_SETUP  1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM860M.h b/include/configs/TQM860M.h
index 7c34786..4fd873b 100644
--- a/include/configs/TQM860M.h
+++ b/include/configs/TQM860M.h
@@ -486,4 +486,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM862L.h b/include/configs/TQM862L.h
index 75d2dac..0c966c9 100644
--- a/include/configs/TQM862L.h
+++ b/include/configs/TQM862L.h
@@ -488,4 +488,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM862M.h b/include/configs/TQM862M.h
index 0c7aacd..178e6e2 100644
--- a/include/configs/TQM862M.h
+++ b/include/configs/TQM862M.h
@@ -489,4 +489,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM866M.h b/include/configs/TQM866M.h
index 071afd4..a65946d 100644
--- a/include/configs/TQM866M.h
+++ b/include/configs/TQM866M.h
@@ -508,4 +508,9 @@
 #define CONFIG_FEC_ENET
 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/TQM885D.h b/include/configs/TQM885D.h
index d435819..0fc4b69 100644
--- a/include/configs/TQM885D.h
+++ b/include/configs/TQM885D.h
@@ -508,4 +508,9 @@

 #define CONFIG_ETHPRIME		"SCC ETHERNET"

+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
diff --git a/include/configs/virtlab2.h b/include/configs/virtlab2.h
index f7813a1..7046e67 100644
--- a/include/configs/virtlab2.h
+++ b/include/configs/virtlab2.h
@@ -491,4 +491,10 @@
 						OR_SCY_2_CLK)
 #define CONFIG_SYS_BR4_PRELIM ((CONFIG_SYS_PERIPHERAL_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
 #define PCMCIA_CTRL (CONFIG_SYS_PERIPHERAL_BASE + 0xB00)
+
+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT	1
+#define CONFIG_OF_BOARD_SETUP	1
+#define CONFIG_HWCONFIG		1
+
 #endif	/* __CONFIG_H */
-- 
1.6.2.5

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

             reply	other threads:[~2010-02-09 14:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-09 14:50 Heiko Schocher [this message]
2010-03-11 23:07 ` [U-Boot] [PATCH 2/2] TQM8xx: enable device tree support on all TQM8xx based boards Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B717633.704@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox