diff options
author | Bryan Wu <bryan.wu@canonical.com> | 2012-03-13 06:06:36 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-07-31 23:22:04 -0400 |
commit | e031cd513ec2ff661465dc1198220075719e72d1 (patch) | |
tree | f45ad6e54e220fed35e4c6c572a07b74cbe96740 /arch/arm/plat-versatile | |
parent | d61015fad9703990e4b0c826ed943b13794f19c8 (diff) |
ARM: mach-realview and mach-versatile: retire custom LED code
This replaces the custom LED trigger code in mach-realview with
some overarching platform code for the plat-versatile family that
will lock down LEDs 2 thru 5 for CPU activity indication. The
day we have 8 core ARM systems the plat-versatile code will have
to become more elaborate.
Tested on RealView PB11MPCore by invoking four different CPU
hogs (yes > /dev/null&) and see the LEDs go on one at a time.
They all go off as the hogs are killed. Tested on the PB1176
as well - just one activity led (led 2) goes on and off with
CPU activity.
(bryan.wu@canonical.com: use ledtrig-cpu instead of ledtrig-arm-cpu)
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Diffstat (limited to 'arch/arm/plat-versatile')
-rw-r--r-- | arch/arm/plat-versatile/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/plat-versatile/leds.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/plat-versatile/Kconfig b/arch/arm/plat-versatile/Kconfig index 81ee7cc34457..5c73e31c1e14 100644 --- a/arch/arm/plat-versatile/Kconfig +++ b/arch/arm/plat-versatile/Kconfig | |||
@@ -13,8 +13,10 @@ config PLAT_VERSATILE_FPGA_IRQ_NR | |||
13 | depends on PLAT_VERSATILE_FPGA_IRQ | 13 | depends on PLAT_VERSATILE_FPGA_IRQ |
14 | 14 | ||
15 | config PLAT_VERSATILE_LEDS | 15 | config PLAT_VERSATILE_LEDS |
16 | def_bool y if LEDS_CLASS | 16 | def_bool y if NEW_LEDS |
17 | depends on ARCH_REALVIEW || ARCH_VERSATILE | 17 | depends on ARCH_REALVIEW || ARCH_VERSATILE |
18 | select LEDS_CLASS | ||
19 | select LEDS_TRIGGER | ||
18 | 20 | ||
19 | config PLAT_VERSATILE_SCHED_CLOCK | 21 | config PLAT_VERSATILE_SCHED_CLOCK |
20 | def_bool y | 22 | def_bool y |
diff --git a/arch/arm/plat-versatile/leds.c b/arch/arm/plat-versatile/leds.c index 3169fa555ea6..d2490d00b46c 100644 --- a/arch/arm/plat-versatile/leds.c +++ b/arch/arm/plat-versatile/leds.c | |||
@@ -37,10 +37,10 @@ static const struct { | |||
37 | } versatile_leds[] = { | 37 | } versatile_leds[] = { |
38 | { "versatile:0", "heartbeat", }, | 38 | { "versatile:0", "heartbeat", }, |
39 | { "versatile:1", "mmc0", }, | 39 | { "versatile:1", "mmc0", }, |
40 | { "versatile:2", }, | 40 | { "versatile:2", "cpu0" }, |
41 | { "versatile:3", }, | 41 | { "versatile:3", "cpu1" }, |
42 | { "versatile:4", }, | 42 | { "versatile:4", "cpu2" }, |
43 | { "versatile:5", }, | 43 | { "versatile:5", "cpu3" }, |
44 | { "versatile:6", }, | 44 | { "versatile:6", }, |
45 | { "versatile:7", }, | 45 | { "versatile:7", }, |
46 | }; | 46 | }; |