]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/Seagate/dockstar/dockstar.c
kirkwood: make MPP arrays static const
[karo-tx-uboot.git] / board / Seagate / dockstar / dockstar.c
index a1de0dc4dfb3bb0d9567482f47267b1379dd3d0e..4f1f899b903e7607a92a9f018f6c25b491e0b2b8 100644 (file)
@@ -47,7 +47,7 @@ int board_early_init_f(void)
                        DOCKSTAR_OE_LOW, DOCKSTAR_OE_HIGH);
 
        /* Multi-Purpose Pins Functionality configuration */
-       u32 kwmpp_config[] = {
+       static const u32 kwmpp_config[] = {
                MPP0_NF_IO2,
                MPP1_NF_IO3,
                MPP2_NF_IO4,
@@ -100,7 +100,7 @@ int board_early_init_f(void)
                MPP49_GPIO,
                0
        };
-       kirkwood_mpp_conf(kwmpp_config);
+       kirkwood_mpp_conf(kwmpp_config, NULL);
        return 0;
 }
 
@@ -169,10 +169,10 @@ static void set_leds(u32 leds, u32 blinking)
 void show_boot_progress(int val)
 {
        switch (val) {
-       case 15:                /* booting Linux */
+       case BOOTSTAGE_ID_RUN_OS:               /* booting Linux */
                set_leds(BOTH_LEDS, NEITHER_LED);
                break;
-       case 64:                /* Ethernet initialization */
+       case BOOTSTAGE_ID_NET_ETH_START:        /* Ethernet initialization */
                set_leds(GREEN_LED, GREEN_LED);
                break;
        default: