diff options
author | Tony Lindgren <tony@atomide.com> | 2019-05-27 04:51:55 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-05-28 05:19:16 -0700 |
commit | 6e09f497eb911c61fc8dde04ce8482fc2615355e (patch) | |
tree | c1f83d70f3aee5fcb6233f7f7ef1a562b16f1c65 /drivers/bus | |
parent | fb685f1c190ec8c085e499f138752b2b0a2836de (diff) |
bus: ti-sysc: Set ENAWAKEUP if available
Some modules have ENAWAKEUP bit that we need to configure when not
relying on platform data callbacks.
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/ti-sysc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 4a0146424902..38573f9b4fdc 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -895,6 +895,11 @@ static int sysc_enable_module(struct device *dev) dev_err(dev, "%s: invalid sidlemode\n", __func__); return -EINVAL; } + + /* Set WAKEUP */ + if (regbits->enwkup_shift >= 0 && + ddata->cfg.sysc_val & BIT(regbits->enwkup_shift)) + reg |= BIT(regbits->enwkup_shift); } reg &= ~(SYSC_IDLE_MASK << regbits->sidle_shift); |