@@ -41,7 +41,7 @@
DECLARE_GLOBAL_DATA_PTR;
-int board_init(void)
+int board_early_init_f(void)
{
/*
* default gpio configuration
@@ -108,7 +108,11 @@ int board_init(void)
};
kirkwood_mpp_conf(kwmpp_config);
+ return 0;
+}
+int board_init(void)
+{
/*
* arch number of board
*/
@@ -110,4 +110,6 @@
#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
#endif /*CONFIG_MVSATA_IDE*/
+/* board_early_init_f function in openrd.c initializes all MPP settings */
+#define CONFIG_BOARD_EARLY_INIT_F
#endif /* _CONFIG_OPENRD_H */
This patch adds board_early_init_f function for OpenRD boards. The function initializes MPPs so that peripherals can work at early stage. Signed-off-by: Tanmay Upadhyay <tanmay.upadhyay@einfochips.com> --- board/Marvell/openrd/openrd.c | 6 +++++- include/configs/openrd.h | 2 ++ 2 files changed, 7 insertions(+), 1 deletions(-)