diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-10-09 11:58:13 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-10-11 04:52:38 -0400 |
commit | 69fc7eed5f56bce15b239e5110de2575a6970df4 (patch) | |
tree | def52983185ffcea4da23cb747f10ee39c1b3396 /arch/arm/mach-pxa/include | |
parent | 6defd90433729c2d795865165cb34d938d8ff07c (diff) |
[ARM] 5300/1: fixup spitz reset during boot
Some machines don't have the pullup/down on their reset
pin, so configuring the reset generating pin as input makes
them reset immediately. Fix that by making reset pin direction
configurable.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/include')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/reset.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/include/mach/reset.h b/arch/arm/mach-pxa/include/mach/reset.h index 9489a48871a8..7b8842cfa5fc 100644 --- a/arch/arm/mach-pxa/include/mach/reset.h +++ b/arch/arm/mach-pxa/include/mach/reset.h | |||
@@ -10,9 +10,12 @@ | |||
10 | extern unsigned int reset_status; | 10 | extern unsigned int reset_status; |
11 | extern void clear_reset_status(unsigned int mask); | 11 | extern void clear_reset_status(unsigned int mask); |
12 | 12 | ||
13 | /* | 13 | /** |
14 | * register GPIO as reset generator | 14 | * init_gpio_reset() - register GPIO as reset generator |
15 | * | ||
16 | * @gpio - gpio nr | ||
17 | * @output - set gpio as out/low instead of input during normal work | ||
15 | */ | 18 | */ |
16 | extern int init_gpio_reset(int gpio); | 19 | extern int init_gpio_reset(int gpio, int output); |
17 | 20 | ||
18 | #endif /* __ASM_ARCH_RESET_H */ | 21 | #endif /* __ASM_ARCH_RESET_H */ |