summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2019-05-27 14:51:55 +0300
committerTony Lindgren <tony@atomide.com>2019-05-28 15:19:16 +0300
commit6e09f497eb911c61fc8dde04ce8482fc2615355e (patch)
treec1f83d70f3aee5fcb6233f7f7ef1a562b16f1c65 /drivers/bus
parentfb685f1c190ec8c085e499f138752b2b0a2836de (diff)
downloadlinux-6e09f497eb911c61fc8dde04ce8482fc2615355e.tar.xz
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.c5
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);