led.c 554 B

123456789101112131415161718192021222324252627
  1. /*
  2. * linux/arch/sh/kernel/setup_hs7751rvoip.c
  3. *
  4. * Copyright (C) 2000 Kazumoto Kojima
  5. *
  6. * Renesas Technology Sales HS7751RVoIP Support.
  7. *
  8. * Modified for HS7751RVoIP by
  9. * Atom Create Engineering Co., Ltd. 2002.
  10. * Lineo uSolutions, Inc. 2003.
  11. */
  12. #include <linux/config.h>
  13. #include <asm/io.h>
  14. #include <asm/hs7751rvoip/hs7751rvoip.h>
  15. extern unsigned int debug_counter;
  16. void debug_led_disp(void)
  17. {
  18. unsigned short value;
  19. value = (unsigned char)debug_counter++;
  20. ctrl_outb((0xf0|value), PA_OUTPORTR);
  21. if (value == 0x0f)
  22. debug_counter = 0;
  23. }