Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212487
b: refs/heads/master
c: cb809b1
h: refs/heads/master
i:
  212485: 8a82e0f
  212483: f7b0ef0
  212479: 493f017
v: v3
  • Loading branch information
Greg Ungerer authored and Nicolas Ferre committed Oct 7, 2010
1 parent 66c8bab commit 458be74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6e016f19d393fbe4e040bee8155b03b840fa689
refs/heads/master: cb809b1a5ebffca8cf0314b788919989e8e4ab5f
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-at91/include/mach/at91x40.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,10 @@
#define AT91_DBGU_CIDR (AT91_SF + 0) /* CIDR in PS segment */
#define AT91_DBGU_EXID (AT91_SF + 4) /* EXID in PS segment */

/*
* Support defines for the simple Power Controller module.
*/
#define AT91_PS_CR (AT91_PS + 0) /* PS Control register */
#define AT91_PS_CR_CPU (1 << 0) /* CPU clock disable bit */

#endif /* AT91X40_H */
4 changes: 4 additions & 0 deletions trunk/arch/arm/mach-at91/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ static inline void arch_idle(void)
* Disable the processor clock. The processor will be automatically
* re-enabled by an interrupt or by a reset.
*/
#ifdef AT91_PS
at91_sys_write(AT91_PS_CR, AT91_PS_CR_CPU);
#else
at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK);
#endif
#else
/*
* Set the processor (CP15) into 'Wait for Interrupt' mode.
Expand Down

0 comments on commit 458be74

Please sign in to comment.