standby.S 704 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * PXA27x standby mode
  3. *
  4. * Author: David Burrage
  5. *
  6. * 2005 (c) MontaVista Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #include <linux/linkage.h>
  12. #include <asm/assembler.h>
  13. #include <asm/hardware.h>
  14. #include <asm/arch/pxa-regs.h>
  15. .text
  16. ENTRY(pxa_cpu_standby)
  17. ldr r0, =PSSR
  18. mov r1, #(PSSR_PH | PSSR_STS)
  19. mov r2, #PWRMODE_STANDBY
  20. mov r3, #UNCACHED_PHYS_0 @ Read mem context in.
  21. ldr ip, [r3]
  22. b 1f
  23. .align 5
  24. 1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby
  25. str r1, [r0] @ make sure PSSR_PH/STS are clear
  26. mov pc, lr