Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34d80730 authored by Sascha Hauer's avatar Sascha Hauer
Browse files

ARM i.MX28: use correct register for setting the rate



_CLK_SET_RATE does not only handle the cpu clock but also other
clocks, so do not hardcode the HW_CLKCTRL_CPU register.

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Acked-by: default avatarShawn Guo <shawn.guo@freescale.com>
parent 13be9f00
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -360,7 +360,7 @@ static int name##_set_rate(struct clk *clk, unsigned long rate) \
			return -EINVAL;					\
			return -EINVAL;					\
		}							\
		}							\
	}								\
	}								\
	__raw_writel(reg, CLKCTRL_BASE_ADDR + HW_CLKCTRL_CPU);		\
	__raw_writel(reg, CLKCTRL_BASE_ADDR + HW_CLKCTRL_##dr);		\
									\
									\
	for (i = 10000; i; i--)						\
	for (i = 10000; i; i--)						\
		if (!(__raw_readl(CLKCTRL_BASE_ADDR +			\
		if (!(__raw_readl(CLKCTRL_BASE_ADDR +			\