system.h 985 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * arch/arm/mach-tegra/include/mach/system.h
  3. *
  4. * Copyright (C) 2010 Google, Inc.
  5. *
  6. * Author:
  7. * Colin Cross <ccross@google.com>
  8. * Erik Gilling <konkers@google.com>
  9. *
  10. * This software is licensed under the terms of the GNU General Public
  11. * License version 2, as published by the Free Software Foundation, and
  12. * may be copied, distributed, and modified under those terms.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. */
  20. #ifndef __MACH_TEGRA_SYSTEM_H
  21. #define __MACH_TEGRA_SYSTEM_H
  22. #include <mach/hardware.h>
  23. #include <mach/iomap.h>
  24. static inline void arch_idle(void)
  25. {
  26. }
  27. static inline void arch_reset(char mode, const char *cmd)
  28. {
  29. void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
  30. u32 reg = readl(reset);
  31. reg |= 0x04;
  32. writel(reg, reset);
  33. }
  34. #endif