8xx, kup4: add FDT support
PATCH v3 2/2 8xx, kup4: add FDT support
Signed-off-by Heiko Schocher <[email protected]>
---
- changes since v1
- rebased against current mainline
- fix printf output
- changes since v2
added comments from Scott Wood
removed ft_blob_update() complete, because fixups are done in cpu specific code.
board/kup/kup4k/kup4k.c | 11 +++++++++++ include/configs/KUP4K.h | 4 ++++ 2 files changed, 15 insertions(+), 0 deletions(-)
board/kup/kup4k/kup4k.c +11 -0
@@ -24,6 +24,7 @@#include <common.h> #include <command.h> +#include <libfdt.h> #include <mpc8xx.h> #include <hwconfig.h> #include <i2c.h>
@@ -291,3 +292,13 @@ static unsigned char swapbyte(unsigned char c) }return result; } + +/* +* Device Tree Support +*/ +#if defined(CONFIG_OF_BOARD_SETUP ) && defined(CONFIG_OF_LIBFDT ) +void ft_board_setup (void *blob,bd_t *bd) +{ +ft_cpu_setup (blob, bd); +} +#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
include/configs/KUP4K.h +4 -0
@@ -510,5 +510,9 @@#define CONFIG_SYS_DEVICE_NULLDEV 1/* enble null device */ #define CONFIG_VERSION_VARIABLE 1 +/* pass open firmware flat tree */ +#define CONFIG_OF_LIBFDT 1 +#define CONFIG_OF_BOARD_SETUP 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 v3 2/2 8xx, kup4: add FDT support
Dear Heiko Schocher,
Quoted 7 lines · In message <[email protected]> you wrote:
Signed-off-by Heiko Schocher <[email protected]>---
- changes since v1
- rebased against current mainline
- fix printf output
Quoted 8 lines
- changes since v2
added comments from Scott Wood
removedft_blob_update()complete, because fixups are done in cpu specific code.board/kup/kup4k/kup4k.c | 11 +++++++++++ include/configs/KUP4K.h | 4 ++++ 2 files changed, 15 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 The number you have dialed is imaginary. Please divide by 0 and try again.