From a0452346c4e5223ed30b70e4be1bb4a0620f496a Mon Sep 17 00:00:00 2001 From: Simon Baatz Date: Fri, 20 Jul 2012 09:59:14 +0000 Subject: 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 Cc: Luka Perkov Cc: Prafulla Wadaskar Acked-by: Luka Perkov --- board/raidsonic/ib62x0/ib62x0.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/raidsonic/ib62x0/ib62x0.c') diff --git a/board/raidsonic/ib62x0/ib62x0.c b/board/raidsonic/ib62x0/ib62x0.c index 1164d6bf3f..b7e6e4107c 100644 --- a/board/raidsonic/ib62x0/ib62x0.c +++ b/board/raidsonic/ib62x0/ib62x0.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -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, -- cgit v1.2.3