Skip to content

Commit b67dae3

Browse files
committed
clk: microchip: mpfs: add missing MSSPLL outputs
The MSSPLL has 4 outputs, of which only the cpu/axi/ahb clock parent is currently implemented. Add the CAN clock too, as that'll be needed by the driver for the CAN controller and uses output 3. While we are here, the other two missing clocks, used by the eMMC/SD controller and by the "user crypto". Signed-off-by: Conor Dooley <[email protected]>
1 parent 6673699 commit b67dae3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/clk/microchip/clk-mpfs.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#define MSSPLL_REFDIV_SHIFT 0x08u
2929
#define MSSPLL_REFDIV_WIDTH 0x06u
3030
#define MSSPLL_POSTDIV02_SHIFT 0x08u
31+
#define MSSPLL_POSTDIV13_SHIFT 0x18u
3132
#define MSSPLL_POSTDIV_WIDTH 0x07u
3233
#define MSSPLL_FIXED_DIV 4u
3334

@@ -240,6 +241,12 @@ static const struct clk_ops mpfs_clk_msspll_out_ops = {
240241
static struct mpfs_msspll_out_hw_clock mpfs_msspll_out_clks[] = {
241242
CLK_PLL_OUT(CLK_MSSPLL0, "clk_msspll", "clk_msspll_internal", 0,
242243
MSSPLL_POSTDIV02_SHIFT, MSSPLL_POSTDIV_WIDTH, REG_MSSPLL_POSTDIV01_CR),
244+
CLK_PLL_OUT(CLK_MSSPLL1, "clk_msspll1", "clk_msspll_internal", 0,
245+
MSSPLL_POSTDIV13_SHIFT, MSSPLL_POSTDIV_WIDTH, REG_MSSPLL_POSTDIV01_CR),
246+
CLK_PLL_OUT(CLK_MSSPLL2, "clk_msspll2", "clk_msspll_internal", 0,
247+
MSSPLL_POSTDIV02_SHIFT, MSSPLL_POSTDIV_WIDTH, REG_MSSPLL_POSTDIV23_CR),
248+
CLK_PLL_OUT(CLK_MSSPLL3, "clk_msspll3", "clk_msspll_internal", 0,
249+
MSSPLL_POSTDIV13_SHIFT, MSSPLL_POSTDIV_WIDTH, REG_MSSPLL_POSTDIV23_CR),
243250
};
244251

245252
static int mpfs_clk_register_msspll_outs(struct device *dev,

0 commit comments

Comments
 (0)