reset.c 722 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2001-2006 Storlink, Corp.
  3. * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. #ifndef __MACH_SYSTEM_H
  11. #define __MACH_SYSTEM_H
  12. #include <linux/io.h>
  13. #include <mach/hardware.h>
  14. #include <mach/global_reg.h>
  15. #include "common.h"
  16. void gemini_restart(enum reboot_mode mode, const char *cmd)
  17. {
  18. __raw_writel(RESET_GLOBAL | RESET_CPU1,
  19. IO_ADDRESS(GEMINI_GLOBAL_BASE) + GLOBAL_RESET);
  20. }
  21. #endif /* __MACH_SYSTEM_H */