8xx, kup4k/kup4x: add FDT support
Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
e604e40916
commit
8011ec638e
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <libfdt.h>
|
||||||
#include <mpc8xx.h>
|
#include <mpc8xx.h>
|
||||||
#include <hwconfig.h>
|
#include <hwconfig.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
@ -291,3 +292,13 @@ static unsigned char swapbyte(unsigned char c)
|
|||||||
}
|
}
|
||||||
return result;
|
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) */
|
||||||
|
@ -510,5 +510,9 @@
|
|||||||
#define CONFIG_SYS_DEVICE_NULLDEV 1 /* enble null device */
|
#define CONFIG_SYS_DEVICE_NULLDEV 1 /* enble null device */
|
||||||
#define CONFIG_VERSION_VARIABLE 1
|
#define CONFIG_VERSION_VARIABLE 1
|
||||||
|
|
||||||
|
/* pass open firmware flat tree */
|
||||||
|
#define CONFIG_OF_LIBFDT 1
|
||||||
|
#define CONFIG_OF_BOARD_SETUP 1
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user