diff options
author | Bryan O'Donoghue <bodonoghue@codehermit.ie> | 2008-02-15 01:05:58 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-25 22:20:36 +0100 |
commit | a6f5f317cd074bbbfa2aab4fca05904c811c19fb (patch) | |
tree | 0ad6a5cf57b1fe46176ff5cf1253771633aaf25c | |
parent | d058698fd2d9f769ff38ac53c8708b3fdd314f2d (diff) | |
download | u-boot-imx-a6f5f317cd074bbbfa2aab4fca05904c811c19fb.zip u-boot-imx-a6f5f317cd074bbbfa2aab4fca05904c811c19fb.tar.gz u-boot-imx-a6f5f317cd074bbbfa2aab4fca05904c811c19fb.tar.bz2 |
8xx : Add OF support to Adder875 board port - resubmit
Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>
-rw-r--r-- | board/adder/adder.c | 11 | ||||
-rw-r--r-- | include/configs/Adder.h | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/board/adder/adder.c b/board/adder/adder.c index aa781584..817c864 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,11 @@ 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 */ |