Commit 6e09f497 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

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: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent fb685f1c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);