Skip to content

Commit cf29525

Browse files
Richard Zhuabelvesa
authored andcommitted
clk: imx95-blk-ctl: Add one clock gate for HSIO block
CREF_EN (Bit6) of LFAST_IO_REG control i.MX95 PCIe REF clock out enable/disable. Add compatible string "nxp,imx95-hsio-blk-ctl" to support PCIe REF clock out gate. Signed-off-by: Richard Zhu <[email protected]> Reviewed-by: Frank Li <[email protected]> Reviewed-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent 7312373 commit cf29525

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/clk/imx/clk-imx95-blk-ctl.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,25 @@ static const struct imx95_blk_ctl_dev_data netcmix_dev_data = {
277277
.clk_reg_offset = 0,
278278
};
279279

280+
static const struct imx95_blk_ctl_clk_dev_data hsio_blk_ctl_clk_dev_data[] = {
281+
[0] = {
282+
.name = "hsio_blk_ctl_clk",
283+
.parent_names = (const char *[]){ "hsio_pll", },
284+
.num_parents = 1,
285+
.reg = 0,
286+
.bit_idx = 6,
287+
.bit_width = 1,
288+
.type = CLK_GATE,
289+
.flags = CLK_SET_RATE_PARENT,
290+
}
291+
};
292+
293+
static const struct imx95_blk_ctl_dev_data hsio_blk_ctl_dev_data = {
294+
.num_clks = 1,
295+
.clk_dev_data = hsio_blk_ctl_clk_dev_data,
296+
.clk_reg_offset = 0,
297+
};
298+
280299
static int imx95_bc_probe(struct platform_device *pdev)
281300
{
282301
struct device *dev = &pdev->dev;
@@ -447,6 +466,7 @@ static const struct of_device_id imx95_bc_of_match[] = {
447466
{ .compatible = "nxp,imx95-display-master-csr", },
448467
{ .compatible = "nxp,imx95-lvds-csr", .data = &lvds_csr_dev_data },
449468
{ .compatible = "nxp,imx95-display-csr", .data = &dispmix_csr_dev_data },
469+
{ .compatible = "nxp,imx95-hsio-blk-ctl", .data = &hsio_blk_ctl_dev_data },
450470
{ .compatible = "nxp,imx95-vpu-csr", .data = &vpublk_dev_data },
451471
{ .compatible = "nxp,imx95-netcmix-blk-ctrl", .data = &netcmix_dev_data},
452472
{ /* Sentinel */ },

0 commit comments

Comments
 (0)