ARM: remove legacy LEDS support from RealView and Versatile
Subsystems (4)
PATCH 1/1 ARM: remove legacy LEDS support from RealView and Versatile
We have merged proper support for the NEW_LEDS and LEDS_CLASS in the RealView and Versatile family in plat-versatile, including the heartbeat feature that was provided for these platforms so scrap this old LEDS stuff from these platforms.
--- arch/arm/Kconfig | 4 +- arch/arm/mach-realview/core.c | 39 --------------------------- arch/arm/mach-realview/core.h | 2 - arch/arm/mach-realview/realview_eb.c | 4 --- arch/arm/mach-realview/realview_pb1176.c | 4 --- arch/arm/mach-realview/realview_pb11mp.c | 4 --- arch/arm/mach-realview/realview_pba8.c | 4 --- arch/arm/mach-realview/realview_pbx.c | 4 --- arch/arm/mach-versatile/core.c | 42 ------------------------------ 9 files changed, 2 insertions(+), 105 deletions(-)
arch/arm/Kconfig +2 -2
@@ -1375,9 +1375,9 @@ config LEDS ARCH_EBSA285 || ARCH_INTEGRATOR || \ ARCH_LUBBOCK || MACH_MAINSTONE || ARCH_NETWINDER || \ ARCH_OMAP || ARCH_P720T || ARCH_PXA_IDP || \ - ARCH_SA1100 || ARCH_SHARK || ARCH_VERSATILE || \ + ARCH_SA1100 || ARCH_SHARK || \ ARCH_AT91 || ARCH_DAVINCI || \ - ARCH_KS8695 || MACH_RD88F5182 || ARCH_REALVIEW + ARCH_KS8695 || MACH_RD88F5182 help If you say Y here, the LEDs on your machine will be used to provide useful information about your current system status.
arch/arm/mach-realview/core.c +0 -39
@@ -35,7 +35,6 @@#include <asm/system.h> #include <mach/hardware.h> #include <asm/irq.h> -#include <asm/leds.h> #include <asm/mach-types.h> #include <asm/hardware/arm_timer.h> #include <asm/hardware/icst.h>
@@ -619,44 +618,6 @@ struct clcd_board clcd_plat_data = { .remove = realview_clcd_remove, }; -#ifdef CONFIG_LEDS -#define VA_LEDS_BASE (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_LED_OFFSET) - -void realview_leds_event (led_event_t ledevt) -{ -unsigned long flags; -u32 val; -u32 led =1 <<smp_processor_id (); - -local_irq_save (flags); - val =readl (VA_LEDS_BASE ); - -switch (ledevt) { -case led_idle_start: - val = val & ~led; -break ; - -case led_idle_end: - val = val | led; -break ; - -case led_timer: - val = val ^REALVIEW_SYS_LED7 ; -break ; - -case led_halted: - val =0 ; -break ; - -default : -break ; - } - -writel (val,VA_LEDS_BASE ); -local_irq_restore (flags); -} -#endif /* CONFIG_LEDS */ -/* * Where is the timer (VA)? */
arch/arm/mach-realview/core.h +0 -2
@@ -26,7 +26,6 @@#include <linux/io.h> #include <asm/setup.h> -#include <asm/leds.h> #define AMBA_DEVICE (name,busid,base,plat) \ static struct amba_device name##_device = { \
@@ -59,7 +58,6 @@ extern void __iomem *timer1_va_base;extern void __iomem *timer2_va_base;extern void __iomem *timer3_va_base; -extern void realview_leds_event (led_event_t ledevt);extern void realview_timer_init (unsigned int timer_irq);extern int realview_flash_register (struct resource *res,u32 num);extern int realview_eth_register (const char *name,struct resource *res);
arch/arm/mach-realview/realview_eb.c +0 -4
@@ -30,7 +30,6 @@#include <mach/hardware.h> #include <asm/irq.h> -#include <asm/leds.h> #include <asm/mach-types.h> #include <asm/pmu.h> #include <asm/pgtable.h>
@@ -478,9 +477,6 @@ static void __init realview_eb_init(void)amba_device_register (d, &iomem_resource); } -#ifdef CONFIG_LEDS - leds_event = realview_leds_event; -#endif realview_reset = realview_eb_reset; }
arch/arm/mach-realview/realview_pb1176.c +0 -4
@@ -30,7 +30,6 @@#include <mach/hardware.h> #include <asm/irq.h> -#include <asm/leds.h> #include <asm/mach-types.h> #include <asm/pmu.h> #include <asm/pgtable.h>
@@ -370,9 +369,6 @@ static void __init realview_pb1176_init(void)amba_device_register (d, &iomem_resource); } -#ifdef CONFIG_LEDS - leds_event = realview_leds_event; -#endif realview_reset = realview_pb1176_reset; }
arch/arm/mach-realview/realview_pb11mp.c +0 -4
@@ -30,7 +30,6 @@#include <mach/hardware.h> #include <asm/irq.h> -#include <asm/leds.h> #include <asm/mach-types.h> #include <asm/pmu.h> #include <asm/pgtable.h>
@@ -373,9 +372,6 @@ static void __init realview_pb11mp_init(void)amba_device_register (d, &iomem_resource); } -#ifdef CONFIG_LEDS - leds_event = realview_leds_event; -#endif realview_reset = realview_pb11mp_reset; }
arch/arm/mach-realview/realview_pba8.c +0 -4
@@ -29,7 +29,6 @@#include <linux/io.h> #include <asm/irq.h> -#include <asm/leds.h> #include <asm/mach-types.h> #include <asm/pmu.h> #include <asm/pgtable.h>
@@ -323,9 +322,6 @@ static void __init realview_pba8_init(void)amba_device_register (d, &iomem_resource); } -#ifdef CONFIG_LEDS - leds_event = realview_leds_event; -#endif realview_reset = realview_pba8_reset; }
arch/arm/mach-realview/realview_pbx.c +0 -4
@@ -28,7 +28,6 @@#include <linux/io.h> #include <asm/irq.h> -#include <asm/leds.h> #include <asm/mach-types.h> #include <asm/pmu.h> #include <asm/smp_twd.h>
@@ -409,9 +408,6 @@ static void __init realview_pbx_init(void)amba_device_register (d, &iomem_resource); } -#ifdef CONFIG_LEDS - leds_event = realview_leds_event; -#endif realview_reset = realview_pbx_reset; }
arch/arm/mach-versatile/core.c +0 -42
60 lines not on this page · raw message
Signature · 1 line
1.7.2.2
PATCH 1/1 ARM: remove legacy LEDS support from RealView and Versatile
Quoted 4 lines · Linus Walleij
We have merged proper support for the
NEW_LEDSandLEDS_CLASSin the RealView and Versatile family in plat-versatile, including the heartbeat feature that was provided for these platforms so scrap this old LEDS stuff from these platforms.
Do we lose the display of activity across individual CPUs?
PATCH 1/1 ARM: remove legacy LEDS support from RealView and Versatile
2010/9/16 Russell King - ARM Linux <[email protected]>:
Quoted 7 lines · Linus Walleij
Quoted 4 lines
We have merged proper support for the
NEW_LEDSandLEDS_CLASSin the RealView and Versatile family in plat-versatile, including the heartbeat feature that was provided for these platforms so scrap this old LEDS stuff from these platforms.Do we lose the display of activity across individual CPUs?
Yes it did. So I wrote a new patch set creating a new led trigger to do it the (hopefully) right way instead.
And it only took me 10 months... :-/
Thanks,
Linus Walleij