summaryrefslogtreecommitdiff
path: root/board/raidsonic/ib62x0/ib62x0.c
diff options
context:
space:
mode:
authorSimon Baatz <gmbnomis@gmail.com>2012-07-20 09:59:14 +0000
committerPrafulla Wadaskar <prafulla@marvell.com>2012-10-03 16:43:13 +0530
commita0452346c4e5223ed30b70e4be1bb4a0620f496a (patch)
tree4554362b57b535a3d9c9848b2a5a5040d5d0014f /board/raidsonic/ib62x0/ib62x0.c
parent3a5b9fe64949e5cf1dab49db4656096a0d6905cd (diff)
downloadu-boot-imx-a0452346c4e5223ed30b70e4be1bb4a0620f496a.zip
u-boot-imx-a0452346c4e5223ed30b70e4be1bb4a0620f496a.tar.gz
u-boot-imx-a0452346c4e5223ed30b70e4be1bb4a0620f496a.tar.bz2
kirkwood: ib62x0: Invert SATA activity LEDs
The hardware design of the IB-NAS62x0 causes the SATA activity LEDs to be on when idle by default. Reverse the polarity of the activity LEDs in early init. Signed-off-by: Simon Baatz <gmbnomis@gmail.com> Cc: Luka Perkov <uboot@lukaperkov.net> Cc: Prafulla Wadaskar <prafulla@marvell.com> Acked-by: Luka Perkov <uboot@lukaperkov.net>
Diffstat (limited to 'board/raidsonic/ib62x0/ib62x0.c')
-rw-r--r--board/raidsonic/ib62x0/ib62x0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/raidsonic/ib62x0/ib62x0.c b/board/raidsonic/ib62x0/ib62x0.c
index 1164d6b..b7e6e41 100644
--- a/board/raidsonic/ib62x0/ib62x0.c
+++ b/board/raidsonic/ib62x0/ib62x0.c
@@ -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,6 +42,8 @@ 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[] = {
MPP0_NF_IO2,