setup.c 718 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * linux/arch/sh/kernel/setup_rts7751r2d.c
  3. *
  4. * Copyright (C) 2000 Kazumoto Kojima
  5. *
  6. * Renesas Technology Sales RTS7751R2D Support.
  7. *
  8. * Modified for RTS7751R2D by
  9. * Atom Create Engineering Co., Ltd. 2002.
  10. */
  11. #include <linux/init.h>
  12. #include <linux/pm.h>
  13. #include <asm/io.h>
  14. #include <asm/rts7751r2d/rts7751r2d.h>
  15. unsigned int debug_counter;
  16. const char *get_system_type(void)
  17. {
  18. return "RTS7751R2D";
  19. }
  20. static void rts7751r2d_power_off(void)
  21. {
  22. ctrl_outw(0x0001, PA_POWOFF);
  23. }
  24. /*
  25. * Initialize the board
  26. */
  27. void __init platform_setup(void)
  28. {
  29. printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n");
  30. ctrl_outw(0x0000, PA_OUTPORT);
  31. pm_power_off = rts7751r2d_power_off;
  32. debug_counter = 0;
  33. }