]> git.sur5r.net Git - u-boot/blobdiff - board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c
kirkwood: make MPP arrays static const
[u-boot] / board / Marvell / mv88f6281gtw_ge / mv88f6281gtw_ge.c
index 93d1400be49d469fbdb04248617cf0523fa44ef9..fb57faa52bf3fe2e62c9d4d3fec85e331d422993 100644 (file)
 
 #include <common.h>
 #include <netdev.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
 #include "mv88f6281gtw_ge.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int board_init(void)
+int board_early_init_f(void)
 {
        /*
         * default gpio configuration
@@ -44,7 +45,7 @@ int board_init(void)
                        MV88F6281GTW_GE_OE_LOW, MV88F6281GTW_GE_OE_HIGH);
 
        /* Multi-Purpose Pins Functionality configuration */
-       u32 kwmpp_config[] = {
+       static const u32 kwmpp_config[] = {
                MPP0_SPI_SCn,
                MPP1_SPI_MOSI,
                MPP2_SPI_SCK,
@@ -97,8 +98,12 @@ int board_init(void)
                MPP49_GPIO,
                0
        };
-       kirkwood_mpp_conf(kwmpp_config);
+       kirkwood_mpp_conf(kwmpp_config, NULL);
+       return 0;
+}
 
+int board_init(void)
+{
        /*
         * arch number of board
         */