Skip to content

Commit 5d6370c

Browse files
1991JoyzouNipaLocal
authored andcommitted
pmdomain: imx93-blk-ctrl: mask DSI and PXP PD domain register on i.MX91
The i.MX91 is derived from i.MX93, but there is no DSI and PXP in i.MX91, so mask these. Signed-off-by: Joy Zou <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent badf0fb commit 5d6370c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/pmdomain/imx/imx93-blk-ctrl.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ struct imx93_blk_ctrl_domain {
8686

8787
struct imx93_blk_ctrl_data {
8888
const struct imx93_blk_ctrl_domain_data *domains;
89+
u32 skip_mask;
8990
int num_domains;
9091
const char * const *clk_names;
9192
int num_clks;
@@ -250,6 +251,8 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev)
250251
int j;
251252

252253
domain->data = data;
254+
if (bc_data->skip_mask & BIT(i))
255+
continue;
253256

254257
for (j = 0; j < data->num_clks; j++)
255258
domain->clks[j].id = data->clk_names[j];
@@ -418,6 +421,15 @@ static const struct regmap_access_table imx93_media_blk_ctl_access_table = {
418421
.n_yes_ranges = ARRAY_SIZE(imx93_media_blk_ctl_yes_ranges),
419422
};
420423

424+
static const struct imx93_blk_ctrl_data imx91_media_blk_ctl_dev_data = {
425+
.domains = imx93_media_blk_ctl_domain_data,
426+
.skip_mask = BIT(IMX93_MEDIABLK_PD_MIPI_DSI) | BIT(IMX93_MEDIABLK_PD_PXP),
427+
.num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
428+
.clk_names = (const char *[]){ "axi", "apb", "nic", },
429+
.num_clks = 3,
430+
.reg_access_table = &imx93_media_blk_ctl_access_table,
431+
};
432+
421433
static const struct imx93_blk_ctrl_data imx93_media_blk_ctl_dev_data = {
422434
.domains = imx93_media_blk_ctl_domain_data,
423435
.num_domains = ARRAY_SIZE(imx93_media_blk_ctl_domain_data),
@@ -428,6 +440,9 @@ static const struct imx93_blk_ctrl_data imx93_media_blk_ctl_dev_data = {
428440

429441
static const struct of_device_id imx93_blk_ctrl_of_match[] = {
430442
{
443+
.compatible = "fsl,imx91-media-blk-ctrl",
444+
.data = &imx91_media_blk_ctl_dev_data
445+
}, {
431446
.compatible = "fsl,imx93-media-blk-ctrl",
432447
.data = &imx93_media_blk_ctl_dev_data
433448
}, {

0 commit comments

Comments
 (0)