Skip to content
Snippets Groups Projects
Commit 56b87e63 authored by Troy Kisky's avatar Troy Kisky
Browse files

arm: imx8m: clock_slice: fix AHB_CLOCK_SLICE/IPG_CLOCK_SLICE

parent c56a58ea
Branches
Tags
No related merge requests found
......@@ -986,11 +986,11 @@ static void __iomem *get_clk_root_target(enum clk_slice_type slice_type,
break;
case AHB_CLOCK_SLICE:
clk_root_target =
(void __iomem *)&ccm_reg->ahb_ipg_root[slice_index * 2];
(void __iomem *)&ccm_reg->ahb_ipg_root[slice_index];
break;
case IPG_CLOCK_SLICE:
clk_root_target =
(void __iomem *)&ccm_reg->ahb_ipg_root[slice_index * 2 + 1];
(void __iomem *)&ccm_reg->ahb_ipg_root[slice_index + 1];
break;
case CORE_SEL_CLOCK_SLICE:
clk_root_target = (void __iomem *)&ccm_reg->core_sel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment