]> git.sur5r.net Git - u-boot/blobdiff - board/raidsonic/ib62x0/ib62x0.c
kirkwood: make MPP arrays static const
[u-boot] / board / raidsonic / ib62x0 / ib62x0.c
index 65f2c2ea6a0415b0f508bc078528884e526dd201..cf4ca51fcb479405cff2996a7ab0b853498517d5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2011-2012
  * Gerald Kerma <dreagle@doukki.net>
- * Luka Perkov <uboot@lukaperkov.net>
+ * Luka Perkov <luka@openwrt.org>
  * Simon Baatz <gmbnomis@gmail.com>
  *
  * See file CREDITS for list of people who contributed to this
@@ -23,6 +23,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/kirkwood.h>
 #include <asm/arch/mpp.h>
@@ -41,8 +42,10 @@ int board_early_init_f(void)
                        IB62x0_OE_VAL_HIGH,
                        IB62x0_OE_LOW, IB62x0_OE_HIGH);
 
+       /* Set SATA activity LEDs to default off */
+       writel(MVSATAHC_LED_POLARITY_CTRL, MVSATAHC_LED_CONF_REG);
        /* Multi-Purpose Pins Functionality configuration */
-       u32 kwmpp_config[] = {
+       static const u32 kwmpp_config[] = {
                MPP0_NF_IO2,
                MPP1_NF_IO3,
                MPP2_NF_IO4,
@@ -66,7 +69,7 @@ int board_early_init_f(void)
                MPP29_GPIO,     /* USB Copy button */
                0
        };
-       kirkwood_mpp_conf(kwmpp_config);
+       kirkwood_mpp_conf(kwmpp_config, NULL);
        return 0;
 }