Skip to content
Snippets Groups Projects
Commit a6f5f317 authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by Wolfgang Denk
Browse files

8xx : Add OF support to Adder875 board port - resubmit

parent d058698f
No related merge requests found
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
#include <common.h> #include <common.h>
#include <mpc8xx.h> #include <mpc8xx.h>
#if defined(CONFIG_OF_LIBFDT)
#include <libfdt.h>
#endif
/* /*
* SDRAM is single Samsung K4S643232F-T70 chip (8MB) * SDRAM is single Samsung K4S643232F-T70 chip (8MB)
...@@ -111,3 +114,11 @@ int checkboard( void ) ...@@ -111,3 +114,11 @@ int checkboard( void )
return 0; return 0;
} }
#if defined(CONFIG_OF_BOARD_SETUP)
void ft_board_setup(void *blob, bd_t *bd)
{
ft_cpu_setup(blob, bd);
}
#endif
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#define CONFIG_ETHER_ON_FEC1 #define CONFIG_ETHER_ON_FEC1
#define CONFIG_ETHER_ON_FEC2 #define CONFIG_ETHER_ON_FEC2
#define CONFIG_HAS_ETH0
#define CONFIG_HAS_ETH1
#if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2) #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
#define CFG_DISCOVER_PHY #define CFG_DISCOVER_PHY
...@@ -212,4 +214,8 @@ ...@@ -212,4 +214,8 @@
#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from flash */ #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from flash */
#define BOOTFLAG_WARM 0x02 /* Software reboot */ #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 */ #endif /* __CONFIG_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment