-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/g…
…it/ycmiao/pxa-linux-2.6 Conflicts: arch/arm/mach-pxa/generic.c arch/arm/mach-pxa/pxa25x.c arch/arm/mach-pxa/pxa27x.c arch/arm/mach-pxa/pxa2xx.c arch/arm/mach-pxa/pxa3xx.c arch/arm/mach-pxa/reset.c arch/arm/mach-pxa/spitz.c arch/arm/mach-pxa/tosa.c drivers/watchdog/sa1100_wdt.c
- Loading branch information
Showing
14 changed files
with
94 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef __ASM_ARCH_RESET_H | ||
#define __ASM_ARCH_RESET_H | ||
|
||
#define RESET_STATUS_HARDWARE (1 << 0) /* Hardware Reset */ | ||
#define RESET_STATUS_WATCHDOG (1 << 1) /* Watchdog Reset */ | ||
#define RESET_STATUS_LOWPOWER (1 << 2) /* Low Power/Sleep Exit */ | ||
#define RESET_STATUS_GPIO (1 << 3) /* GPIO Reset */ | ||
#define RESET_STATUS_ALL (0xf) | ||
|
||
extern unsigned int reset_status; | ||
extern void clear_reset_status(unsigned int mask); | ||
|
||
/* | ||
* register GPIO as reset generator | ||
*/ | ||
extern int init_gpio_reset(int gpio); | ||
|
||
#endif /* __ASM_ARCH_RESET_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,9 @@ | |
|
||
#include "generic.h" | ||
|
||
unsigned int reset_status; | ||
EXPORT_SYMBOL(reset_status); | ||
|
||
#define NR_FREQS 16 | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef __ASM_ARCH_RESET_H | ||
#define __ASM_ARCH_RESET_H | ||
|
||
#include "hardware.h" | ||
|
||
#define RESET_STATUS_HARDWARE (1 << 0) /* Hardware Reset */ | ||
#define RESET_STATUS_WATCHDOG (1 << 1) /* Watchdog Reset */ | ||
#define RESET_STATUS_LOWPOWER (1 << 2) /* Exit from Low Power/Sleep */ | ||
#define RESET_STATUS_GPIO (1 << 3) /* GPIO Reset */ | ||
#define RESET_STATUS_ALL (0xf) | ||
|
||
extern unsigned int reset_status; | ||
static inline void clear_reset_status(unsigned int mask) | ||
{ | ||
RCSR = mask; | ||
} | ||
|
||
#endif /* __ASM_ARCH_RESET_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters