kirkwood: set sata/usb led trigger for NSA3xx
these two devices have a Sata led for each sata port. These leds must be controlled separately by a special sata led trigger already used in oxnas target. Both these devices have a single USB led, and to keep consistent behaviour with the Sata leds that show sata activity, this led uses usb-host trigger to show usb activity. Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
This commit is contained in:
parent
b52eb549d2
commit
f7fd2abf25
3 changed files with 19 additions and 0 deletions
|
@ -40,9 +40,15 @@ case "$board" in
|
||||||
;;
|
;;
|
||||||
"nsa310b")
|
"nsa310b")
|
||||||
ucidef_set_led_default "health" "health" "nsa310:green:sys" "1"
|
ucidef_set_led_default "health" "health" "nsa310:green:sys" "1"
|
||||||
|
ucidef_set_led_usbhost "usb" "USB" "nsa310:green:usb"
|
||||||
|
ucidef_set_led_ataport "hdd" "HDD" "nsa310:green:hdd" "1"
|
||||||
|
ucidef_set_led_ataport "esata" "eSata" "nsa310:green:esata" "2"
|
||||||
;;
|
;;
|
||||||
"nsa325")
|
"nsa325")
|
||||||
ucidef_set_led_default "health" "health" "nsa325:green:sys" "1"
|
ucidef_set_led_default "health" "health" "nsa325:green:sys" "1"
|
||||||
|
ucidef_set_led_usbhost "usb" "USB" "nsa325:green:usb"
|
||||||
|
ucidef_set_led_ataport "hdd1" "HDD1" "nsa325:green:sata1" "1"
|
||||||
|
ucidef_set_led_ataport "hdd2" "HDD2" "nsa325:green:sata2" "2"
|
||||||
;;
|
;;
|
||||||
"sheevaplug" | \
|
"sheevaplug" | \
|
||||||
"sheevaplug-esata")
|
"sheevaplug-esata")
|
||||||
|
|
|
@ -26,6 +26,7 @@ CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
|
||||||
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
|
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
|
||||||
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
|
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
|
||||||
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
|
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
|
||||||
|
CONFIG_ARCH_WANT_LIBATA_LEDS=y
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
# CONFIG_ARMADA_THERMAL is not set
|
# CONFIG_ARMADA_THERMAL is not set
|
||||||
CONFIG_ARM_APPENDED_DTB=y
|
CONFIG_ARM_APPENDED_DTB=y
|
||||||
|
@ -41,6 +42,7 @@ CONFIG_ARM_PATCH_PHYS_VIRT=y
|
||||||
# CONFIG_ARM_THUMB is not set
|
# CONFIG_ARM_THUMB is not set
|
||||||
CONFIG_ATA=y
|
CONFIG_ATA=y
|
||||||
CONFIG_ATAGS=y
|
CONFIG_ATAGS=y
|
||||||
|
CONFIG_ATA_LEDS=y
|
||||||
CONFIG_AUTO_ZRELADDR=y
|
CONFIG_AUTO_ZRELADDR=y
|
||||||
CONFIG_BLK_DEV_SD=y
|
CONFIG_BLK_DEV_SD=y
|
||||||
CONFIG_CACHE_FEROCEON_L2=y
|
CONFIG_CACHE_FEROCEON_L2=y
|
||||||
|
@ -306,6 +308,7 @@ CONFIG_USB_EHCI_HCD=y
|
||||||
CONFIG_USB_EHCI_HCD_ORION=y
|
CONFIG_USB_EHCI_HCD_ORION=y
|
||||||
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
|
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
|
||||||
CONFIG_USB_EHCI_PCI=y
|
CONFIG_USB_EHCI_PCI=y
|
||||||
|
CONFIG_USB_LED_TRIG=y
|
||||||
CONFIG_USB_STORAGE=y
|
CONFIG_USB_STORAGE=y
|
||||||
CONFIG_USB_SUPPORT=y
|
CONFIG_USB_SUPPORT=y
|
||||||
# CONFIG_USB_UHCI_HCD is not set
|
# CONFIG_USB_UHCI_HCD is not set
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/arch/arm/mach-mvebu/Kconfig
|
||||||
|
+++ b/arch/arm/mach-mvebu/Kconfig
|
||||||
|
@@ -105,6 +105,7 @@ config MACH_DOVE
|
||||||
|
config MACH_KIRKWOOD
|
||||||
|
bool "Marvell Kirkwood boards" if ARCH_MULTI_V5
|
||||||
|
select ARCH_REQUIRE_GPIOLIB
|
||||||
|
+ select ARCH_WANT_LIBATA_LEDS
|
||||||
|
select CPU_FEROCEON
|
||||||
|
select KIRKWOOD_CLK
|
||||||
|
select MACH_MVEBU_ANY
|
Loading…
Reference in a new issue