Commit 7788bf06 authored by Marek Vasut's avatar Marek Vasut Committed by Stefano Babic
Browse files

mxs: Add function to ungate the power block on MX23

The power block on MX23 must first be ungated before it can be operated.
Add function to MXS power init that ungates it.
Signed-off-by: default avatarMarek Vasut <>
Cc: Fabio Estevam <>
Cc: Otavio Salvador <>
Cc: Stefano Babic <>
parent 1a3c5ffe
......@@ -881,11 +881,23 @@ static void mxs_setup_batt_detect(void)
static void mxs_ungate_power(void)
#ifdef CONFIG_MX23
struct mxs_power_regs *power_regs =
(struct mxs_power_regs *)MXS_POWER_BASE;
writel(POWER_CTRL_CLKGATE, &power_regs->hw_power_ctrl_clr);
void mxs_power_init(void)
struct mxs_power_regs *power_regs =
(struct mxs_power_regs *)MXS_POWER_BASE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment