Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196153
b: refs/heads/master
c: 8865b9b
h: refs/heads/master
i:
  196151: 3f048cd
v: v3
  • Loading branch information
Kevin Hilman committed May 12, 2010
1 parent 7ddd37c commit fb4ff51
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 43ffcd9a042858a9e9f9fe014bb073e55db34c67
refs/heads/master: 8865b9b6d5e1601453ea20c37eb981c6ccc3f4e9
8 changes: 8 additions & 0 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ struct gpio_bank {
struct gpio_chip chip;
struct clk *dbck;
u32 mod_usage;
u32 dbck_enable_mask;
};

#define METHOD_MPUIO 0
Expand Down Expand Up @@ -647,6 +648,7 @@ void omap_set_gpio_debounce(int gpio, int enable)
goto done;

if (cpu_is_omap34xx() || cpu_is_omap44xx()) {
bank->dbck_enable_mask = val;
if (enable)
clk_enable(bank->dbck);
else
Expand Down Expand Up @@ -2054,6 +2056,9 @@ void omap2_gpio_prepare_for_idle(int power_state)
struct gpio_bank *bank = &gpio_bank[i];
u32 l1, l2;

if (bank->dbck_enable_mask)
clk_disable(bank->dbck);

if (power_state > PWRDM_POWER_OFF)
continue;

Expand Down Expand Up @@ -2118,6 +2123,9 @@ void omap2_gpio_resume_after_idle(void)
struct gpio_bank *bank = &gpio_bank[i];
u32 l, gen, gen0, gen1;

if (bank->dbck_enable_mask)
clk_enable(bank->dbck);

if (!workaround_enabled)
continue;

Expand Down

0 comments on commit fb4ff51

Please sign in to comment.