Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145387
b: refs/heads/master
c: 216e3b7
h: refs/heads/master
i:
  145385: b142100
  145383: a7521b1
v: v3
  • Loading branch information
Daniel Ribeiro authored and Eric Miao committed May 18, 2009
1 parent 7f88d44 commit 8fa331a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 818bc814447a35350ae90a329133e474bf1a2bd7
refs/heads/master: 216e3b7abbd05c35d2d1a3f86629ade485351f0d
5 changes: 3 additions & 2 deletions trunk/arch/arm/mach-pxa/include/mach/reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ extern void clear_reset_status(unsigned int mask);
/**
* init_gpio_reset() - register GPIO as reset generator
* @gpio: gpio nr
* @output: set gpio as out/low instead of input during normal work
* @output: set gpio as output instead of input during normal work
* @level: output level
*/
extern int init_gpio_reset(int gpio, int output);
extern int init_gpio_reset(int gpio, int output, int level);

#endif /* __ASM_ARCH_RESET_H */
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-pxa/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void do_hw_reset(void);

static int reset_gpio = -1;

int init_gpio_reset(int gpio, int output)
int init_gpio_reset(int gpio, int output, int level)
{
int rc;

Expand All @@ -31,7 +31,7 @@ int init_gpio_reset(int gpio, int output)
}

if (output)
rc = gpio_direction_output(gpio, 0);
rc = gpio_direction_output(gpio, level);
else
rc = gpio_direction_input(gpio);
if (rc) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pxa/spitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ static void spitz_restart(char mode, const char *cmd)

static void __init common_init(void)
{
init_gpio_reset(SPITZ_GPIO_ON_RESET, 1);
init_gpio_reset(SPITZ_GPIO_ON_RESET, 1, 0);
pm_power_off = spitz_poweroff;
arm_pm_restart = spitz_restart;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pxa/tosa.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ static void __init tosa_init(void)
gpio_set_wake(MFP_PIN_GPIO1, 1);
/* We can't pass to gpio-keys since it will drop the Reset altfunc */

init_gpio_reset(TOSA_GPIO_ON_RESET, 0);
init_gpio_reset(TOSA_GPIO_ON_RESET, 0, 0);

pm_power_off = tosa_poweroff;
arm_pm_restart = tosa_restart;
Expand Down

0 comments on commit 8fa331a

Please sign in to comment.