oxnas: use libata ledtrig support for kd20 hdd leds
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Dec 2014 20:24:33 +0000 (20:24 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Dec 2014 20:24:33 +0000 (20:24 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43675 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/oxnas/config-3.14
target/linux/oxnas/config-3.18
target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts
target/linux/oxnas/files/arch/arm/mach-oxnas/Kconfig

index 473a2bf..a065363 100644 (file)
@@ -345,3 +345,4 @@ CONFIG_ZBOOT_ROM_TEXT=0
 CONFIG_ZLIB_DEFLATE=y
 CONFIG_ZLIB_INFLATE=y
 CONFIG_ZONE_DMA_FLAG=0
 CONFIG_ZLIB_DEFLATE=y
 CONFIG_ZLIB_INFLATE=y
 CONFIG_ZONE_DMA_FLAG=0
+CONFIG_ATA_LEDS=y
index 56dce65..b9172d9 100644 (file)
@@ -364,3 +364,4 @@ CONFIG_ZBOOT_ROM_TEXT=0
 CONFIG_ZLIB_DEFLATE=y
 CONFIG_ZLIB_INFLATE=y
 CONFIG_ZONE_DMA_FLAG=0
 CONFIG_ZLIB_DEFLATE=y
 CONFIG_ZLIB_INFLATE=y
 CONFIG_ZONE_DMA_FLAG=0
+CONFIG_ATA_LEDS=y
index 2db15ea..79442be 100644 (file)
                hdd1blue {
                        label = "kd20:blue:hdd1";
                        gpios = <&GPIOA 27 0>;
                hdd1blue {
                        label = "kd20:blue:hdd1";
                        gpios = <&GPIOA 27 0>;
+                       linux,default-trigger = "ata1";
                };
                hdd1red {
                        label = "kd20:red:hdd1";
                };
                hdd1red {
                        label = "kd20:red:hdd1";
                hdd2blue {
                        label = "kd20:blue:hdd2";
                        gpios = <&GPIOB 6 0>;
                hdd2blue {
                        label = "kd20:blue:hdd2";
                        gpios = <&GPIOB 6 0>;
+                       linux,default-trigger = "ata2";
                };
                hdd2red {
                        label = "kd20:red:hdd2";
                };
                hdd2red {
                        label = "kd20:red:hdd2";
index eb96f1b..6bdf3f6 100644 (file)
@@ -18,6 +18,7 @@ config MACH_OX820
        select PINCTRL_OXNAS
        select PINCTRL
        select RESET_CONTROLLER_OXNAS
        select PINCTRL_OXNAS
        select PINCTRL
        select RESET_CONTROLLER_OXNAS
+       select ARCH_WANT_LIBATA_LEDS
        help
          Include support for the ox820 platform.
 
        help
          Include support for the ox820 platform.