Skip to content

Commit

Permalink
[ARM] 4421/1: AT91: Value of _KEY fields.
Browse files Browse the repository at this point in the history
Use the actual value (0xA5) for the AT91_SHDW_KEY and AT91_WDT_KEY
register fields instead of a bitmask.

This is consistent with how AT91_RSTC_KEY is defined, and is easier to
use in code.

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Andrew Victor authored and Russell King committed Jun 3, 2007
1 parent f72267c commit 0e5f82d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/asm-arm/arch-at91/at91_shdwc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#define AT91_SHDWC_H

#define AT91_SHDW_CR (AT91_SHDWC + 0x00) /* Shut Down Control Register */
#define AT91_SHDW_SHDW (1 << 0) /* Processor Reset */
#define AT91_SHDW_KEY (0xff << 24) /* KEY Password */
#define AT91_SHDW_SHDW (1 << 0) /* Shut Down command */
#define AT91_SHDW_KEY (0xa5 << 24) /* KEY Password */

#define AT91_SHDW_MR (AT91_SHDWC + 0x04) /* Shut Down Mode Register */
#define AT91_SHDW_WKMODE0 (3 << 0) /* Wake-up 0 Mode Selection */
Expand Down
2 changes: 1 addition & 1 deletion include/asm-arm/arch-at91/at91_wdt.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#define AT91_WDT_CR (AT91_WDT + 0x00) /* Watchdog Control Register */
#define AT91_WDT_WDRSTT (1 << 0) /* Restart */
#define AT91_WDT_KEY (0xff << 24) /* KEY Password */
#define AT91_WDT_KEY (0xa5 << 24) /* KEY Password */

#define AT91_WDT_MR (AT91_WDT + 0x04) /* Watchdog Mode Register */
#define AT91_WDT_WDV (0xfff << 0) /* Counter Value */
Expand Down

0 comments on commit 0e5f82d

Please sign in to comment.