TQM8xx: enable device tree support on all TQM8xx based boards.
PATCH 2/2 TQM8xx: enable device tree support on all TQM8xx based boards.
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 <[email protected]>
Signed-off-by Wolfgang Denk <[email protected]>
--- 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(-)
include/configs/FPS850L.h +5 -0
@@ -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 */
include/configs/FPS860L.h +5 -0
@@ -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 */
include/configs/HMI10.h +5 -0
@@ -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 */
include/configs/NSCU.h +5 -0
@@ -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 */
include/configs/SM850.h +5 -0
@@ -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 */
include/configs/TK885D.h +5 -0
@@ -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 */
include/configs/TQM823L.h +5 -0
@@ -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 */
include/configs/TQM823M.h +5 -0
@@ -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 */
include/configs/TQM850L.h +5 -0
@@ -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 */
include/configs/TQM850M.h +5 -0
@@ -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 */
include/configs/TQM855L.h +5 -0
@@ -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 */
include/configs/TQM855M.h +5 -0
@@ -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 */
include/configs/TQM860L.h +5 -0
@@ -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 */
include/configs/TQM860M.h +5 -0
@@ -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 */
include/configs/TQM862L.h +5 -0
@@ -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 */
include/configs/TQM862M.h +5 -0
@@ -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 */
include/configs/TQM866M.h +5 -0
@@ -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 */
include/configs/TQM885D.h +5 -0
@@ -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 */
include/configs/virtlab2.h +6 -0
@@ -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 */
Signature · 5 lines
1.6.2.5 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Wolfgang Denk
AppliedPATCH 2/2 TQM8xx: enable device tree support on all TQM8xx based boards.
Dear Heiko Schocher,
Quoted 24 lines · In message <[email protected]> you wrote:
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 fecSigned-off-by Heiko Schocher <[email protected]>Signed-off-by Wolfgang Denk <[email protected]>--- 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 +++++
Quoted 8 lines
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(-)
Applied, thanks.
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 How many NASA managers does it take to screw in a lightbulb? "That's a known problem... don't worry about it."