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

Commit 8964193f authored by Tang Yuantian's avatar Tang Yuantian Committed by Stephen Boyd
Browse files

clk: qoriq: fix a register offset error



The offset of Core Cluster clock control/status register
on cluster group V3 version is different from others, and
should be plus 0x70000.

Signed-off-by: default avatarTang Yuantian <yuantian.tang@nxp.com>
Reviewed-by: default avatarScott Wood <oss@buserror.net>
Fixes: 9e19ca2f ("clk: qoriq: Add ls2080a support.")
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 9b4cac33
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -766,7 +766,11 @@ static struct clk * __init create_one_cmux(struct clockgen *cg, int idx)
	if (!hwc)
	if (!hwc)
		return NULL;
		return NULL;


	if (cg->info.flags & CG_VER3)
		hwc->reg = cg->regs + 0x70000 + 0x20 * idx;
	else
		hwc->reg = cg->regs + 0x20 * idx;
		hwc->reg = cg->regs + 0x20 * idx;

	hwc->info = cg->info.cmux_groups[cg->info.cmux_to_group[idx]];
	hwc->info = cg->info.cmux_groups[cg->info.cmux_to_group[idx]];


	/*
	/*