int stride;
u32 width;
int context_loss_count;
- bool workaround_enabled;
u32 quirks;
void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable);
omap_gpio_rmw(base, bank->regs->risingdetect, nowake, ~nowake);
}
- bank->workaround_enabled = true;
-
update_gpio_context_count:
if (bank->get_context_loss_count)
bank->context_loss_count =
bank->base + bank->regs->risingdetect);
}
- if (!bank->workaround_enabled)
- return;
-
l = readl_relaxed(bank->base + bank->regs->datain);
/*
writel_relaxed(old0, bank->base + bank->regs->leveldetect0);
writel_relaxed(old1, bank->base + bank->regs->leveldetect1);
}
-
- bank->workaround_enabled = false;
}
static void omap_gpio_init_context(struct gpio_bank *p)