setup.c 669 B

1234567891011121314151617181920212223242526272829303132333435
  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. const char *get_system_type(void)
  16. {
  17. return "RTS7751R2D";
  18. }
  19. static void rts7751r2d_power_off(void)
  20. {
  21. ctrl_outw(0x0001, PA_POWOFF);
  22. }
  23. /*
  24. * Initialize the board
  25. */
  26. void __init platform_setup(void)
  27. {
  28. printk(KERN_INFO "Renesas Technology Sales RTS7751R2D support.\n");
  29. ctrl_outw(0x0000, PA_OUTPORT);
  30. pm_power_off = rts7751r2d_power_off;
  31. }