leds.c 655 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * linux/arch/arm/mach-pxa/leds.c
  3. *
  4. * xscale LEDs dispatcher
  5. *
  6. * Copyright (C) 2001 Nicolas Pitre
  7. *
  8. * Copyright (c) 2001 Jeff Sutherland, Accelent Systems Inc.
  9. */
  10. #include <linux/compiler.h>
  11. #include <linux/init.h>
  12. #include <asm/leds.h>
  13. #include <asm/mach-types.h>
  14. #include "leds.h"
  15. static int __init
  16. pxa_leds_init(void)
  17. {
  18. if (machine_is_lubbock())
  19. leds_event = lubbock_leds_event;
  20. if (machine_is_mainstone())
  21. leds_event = mainstone_leds_event;
  22. if (machine_is_pxa_idp())
  23. leds_event = idp_leds_event;
  24. if (machine_is_trizeps4())
  25. leds_event = trizeps4_leds_event;
  26. leds_event(led_start);
  27. return 0;
  28. }
  29. core_initcall(pxa_leds_init);