Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2474090imi; Sun, 24 Jul 2022 22:09:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u9349UW2ia3OFjDEiuqJp61odmGJiys9m1vAb/6yiG/MX2vCgEQ4zYlAPkk6oQ5EA3pKg2 X-Received: by 2002:a05:6402:28c4:b0:43a:cdde:e047 with SMTP id ef4-20020a05640228c400b0043acddee047mr11457171edb.368.1658725782775; Sun, 24 Jul 2022 22:09:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658725782; cv=pass; d=google.com; s=arc-20160816; b=Zmjenec/kbRjG58JQffMEzp4WgRaVA9ItlNJpN14+GJvGQDIqcH4ULMCAwgfFe3vOm aLrEBhV0utkKuPq44E5lh9gU9NRd9xMaiBSKg2TqfRBvgz2av2vmtyF0W4uXw+fKqPfy ap3ZRqQZJVGOUYMES05No5mGHEaukrEQJTZm6wUxcF5eMjB9huPj1bu0sEB1T7VYI//g fD2exwTJFTt+ovFyEroksGS4JZcIJ/rSvgTzIgT2yN+ZzlQN1lSGvUte9/caRKvq47iN gP0G6g60askXC6pq8yN7od+zdCNuMvdtxC+SE0+nHv3A8raEfqW8XkJYjhm3BtZ2vCkQ lxNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=TWrpgb8eQh6IQNOTzvfBVZUmySF7rhTHB+0RltjQXB0=; b=amWk1+UjfdGLvWa/QwhwlbAx1zTbA82x/Sr5SAzbmubyMcFYQGBco5B2eBmeZtaTW2 bjV/zt8w8ZdGDmM8gF9nbz5OkFMYQObyS3kagzz+oK3X9TEoodCSDmKVKOVibzSsCSuX XvdqgN/Cv/Sg5uBRulbBAzL7xlp2mGylW+j/vAkDyVysuShKrf86yonQ7g+qSlAJuLPc Yp+Gh1zyRs3jM0YzBJvLlHWf+ympqbWVkolQLPjOB9Gfx5sTKb4ZDsbtt5tdB73DQ8Z5 gkcdYTCSgBAXvfMpEeGgf+njUzupiF7jhUxJx2DzgwCR9uNy1mdMx/UqilB+4YpnrGJl oEmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=lTUNQVJ5; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kl7-20020a170907994700b0072643608fb8si12013139ejc.953.2022.07.24.22.09.18; Sun, 24 Jul 2022 22:09:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=lTUNQVJ5; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbiGYD6C (ORCPT + 99 others); Sun, 24 Jul 2022 23:58:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiGYD56 (ORCPT ); Sun, 24 Jul 2022 23:57:58 -0400 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30065.outbound.protection.outlook.com [40.107.3.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4D055F67 for ; Sun, 24 Jul 2022 20:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ai6LdsP1/IkCnGnce53oFQXv+TQI/3OoHN0/n18jhw9jNKQqpew0UXb7eG6/vJ//QQcv69fT44nE6NMHl5Nsb1nW0kqLIOHSeX4HqOn2EglgQQvFhPeyPOO9GFKX0pDBixtMFTqOkMmenO7QQCAM/DYjMQQsslotUmhklWCi9q8LdkGzd9bfQKDtVHUmoklhiJazngldxag2GDGextyy+qSGi2PFjgxL8UXU5RXt0slgwduBp9KnSWwTH80ZKt4eNtgm0T6m61i5apmVI2CPu/8it0SIr4ZWh75i+1nDlxgWDFyPmRvvHXZ0zattPZtaep+1pPytDe31lPTR/rX3+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TWrpgb8eQh6IQNOTzvfBVZUmySF7rhTHB+0RltjQXB0=; b=PVPaJ9cdAUA2+AHUoXtxOUUZB+Q2UgF0+E0uS1GAB03Zus/uYUdm6s2KZ5KmJ3gWzpr6GbTJdQttgQwfjkN/FTtzJ8t4ADUnrxLXBksXJguW3iFmF/8qxUglLjBilOosdoBCLwChKdyK48eiYln4aL48TSHsXSt3qkCZABj99QtkS/Vq+Ock2aZoZfYgKpzMxPkbf29nvvJuAntzEGTtRHjV7yNe2RHWAhV/NA6cx18kdr7aNTTWhK87HasOtoMxHJlS1MEVXcWeIxOAd5Mv346ivcGsktdFh8FsYsR874CbC6EbbE6bogq7pcWy3zN5Dm/obpMBLZkoripV1tHMSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TWrpgb8eQh6IQNOTzvfBVZUmySF7rhTHB+0RltjQXB0=; b=lTUNQVJ5JOeHcq1mgNYk940NqLhTk5oboVN1FGypGufuuKKMQG6Kicc+N0NPi3y2uQWXDtlWSRLvOqXwhEK5W85EpgH2haqJp/eUyaSKZRzpal4qZPIKbeYxne8W/g+A/CJT2ztwgNDvhzvVgsoKGQ2AM6uqqvXs7//gKkUfo7U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM9PR04MB8508.eurprd04.prod.outlook.com (2603:10a6:20b:433::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.24; Mon, 25 Jul 2022 03:57:52 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c0c2:ede7:3b85:1597]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c0c2:ede7:3b85:1597%3]) with mapi id 15.20.5458.021; Mon, 25 Jul 2022 03:57:52 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH] soc: imx: imx93-blk-ctrl: set priority level Date: Mon, 25 Jul 2022 11:59:31 +0800 Message-Id: <20220725035931.3988435-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0002.apcprd02.prod.outlook.com (2603:1096:3:17::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7147225e-e1c8-4d35-8e36-08da6df1d8f9 X-MS-TrafficTypeDiagnostic: AM9PR04MB8508:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2gRsgvG9w/46KpkoXk6cXf62DIneT8S5blqdnYlCqRXeHgaeRdJTrcethZEq/AnAmYR2O4BUNt+na0mTonvk5AxKSEXQU8pWU/6awWJURawTfCUnio1Ey/c0lX4OQ4EkipBMQHA4ZZ/Z4dszr+6EyLJ5kdSMgEwGX3T61twNwkDUm32ZYpmNRbeVnlrx9KV/Yt9i9suPnWImMzX2x7xPyCG5n0c8yskC2R+rvt6E+ah92ocdHi7m5xUaXzo47reAh4G9Srphrqqd/9LBo12nya6Hh/WZvXN/aiHnDatYOUX569dJIEmtMDY/IhXE4/cN1/f+vBrcCcofNTPMCpWTbLnb5qCRxLG3yyvkSYPrYuMooxrdm8utjT9pt92TLYq4/+xgiDuJG7gcEPF/4jrg6xJAIemKkNyQQl/s8WqzIksStZKF0ZEjh1b33UCDEG/aL3McTjJk/YZSrlgT8G4Tcq7UZ6+10KXuvlQSmQvC30/KpLLTc+qF2iX94cpx30RBK3jdN9+Mc+91X2KVhL9zby6X7XUjN6gpAyZ/d7xrYybFSWh3rTVK8uqE0ELlZEjQY+uX6bhGyjDdK4YzVbEhYFk6Nzfp1i+F9oTG1t4qXDe0pPe2cccu4g8fT73wgcAidbZ98ePQwl9GEWSDGIBFMFMlbpULA/aBDDiVm8BJQP91LDPqOxwyJVCNs8XRwvfjw2iMo3K4TZ6VpTYWMbmIqg65IDTEuYnYBujROyPdHR0Ubr5EHHoe1cm5o0HwpUQ1dILA8fzb8VSiH+xTauOb9qfiQYRiVG+vO6g6ka3OdGjNpVjvcmA4fujUkr4QCvtUWnCO0fp+t0X1i+8woDDw0A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(136003)(396003)(39860400002)(376002)(366004)(41300700001)(66946007)(966005)(6486002)(6512007)(26005)(478600001)(52116002)(6666004)(2906002)(6506007)(4326008)(316002)(8676002)(38350700002)(38100700002)(86362001)(66556008)(66476007)(5660300002)(83380400001)(8936002)(2616005)(1076003)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ckRnqKUYqKlHJ0vBXvPny/VTMhORRtjDJdaw1eA8Ct81+SU2jo85wOwlZCzQ?= =?us-ascii?Q?+Ztj0Y1bB8aJXO1HdKSc1ewKca/LdqC4WSHKGOAZAeombIKpCysc3kpQG0+6?= =?us-ascii?Q?WnkJ8FhfVarAAEO9yMudNw58ZaA75OERfp0R1GOEqdhh3lgM7sVWSSdKqMGS?= =?us-ascii?Q?Eo7LV8BznFqZBZnFP0aiKvAc23hg74wsW2sDj3KZNRcU/Z03V8K8A9h2wneD?= =?us-ascii?Q?QOlw1esbQwQoHrgZf7Nw24DVyhG5F2IbADRzT3J+Gk4p5FKvZ72+ASWbNhgq?= =?us-ascii?Q?Ow7TecVYQhDDbAm4Wvo0Lm1eJoD6tLUfFicDvG0plCiGj/OhPkpa4Nn30/lj?= =?us-ascii?Q?kmn4zjHaWqaxtvWPM9ea5sVQF5Y496m0b2b/WRxmv8PivQkbiOBYDQTjZQOY?= =?us-ascii?Q?6spxo0631JsA5ffcAiu7P/JfQIFzs6K2sLj6ho8K4cNAfo8/1I30bzElvJ9d?= =?us-ascii?Q?/ztWY3HtNhg2CaxJ67RQlpjKvDEIDB+uGo1EWRDc90He9CtugghHrOi75Ufl?= =?us-ascii?Q?L87V1ODnnuOonOzwQkhMMzmb8leX89AAZR2z7ORyp5LzRgjCBlsUQ1YUJUq0?= =?us-ascii?Q?m6bUdQN4cabqgcNIoL7dM4KRDTdTq2zPrj3BVNosoSb4yf+rACQLn8cIz37a?= =?us-ascii?Q?uhhQTgE5AQXC7UWNMSCYF9b+117Yqg4FN2SHZBBHK3rAA/p/YxSKTcrCtynV?= =?us-ascii?Q?3noQolxUQJ9eqlNIA1J8gDbzzpPqDHbxgATHniwguiozgLkJYdhpszR4r9kb?= =?us-ascii?Q?45cmRTZWZVd5pIZkQSj90xX5AffhsdeLaIaCA5uWpzp3uZIiGe1vlu7ArTP/?= =?us-ascii?Q?gFaCwlnUw7wwjq3ZL/e1V4AtBihSsN/aEukI0uXV42HvEWKqfpAFSA/Hc0eQ?= =?us-ascii?Q?j0YXV8xhl+fJJLQ6eGanTVdXaIdsaLjLgGhSB1AAGIaFa265e3OTeRRR7llr?= =?us-ascii?Q?kdSxFcqudk/SOI1glBX9tzRGMjXX/Jmq0ZFToJZzkgH3DZCl0M9PdAGOYbp+?= =?us-ascii?Q?GZlM1znvhNNiADSv673BGe4NZXWMWYN94YmOt6+/2Sh3UWcAJmeWV1X0Ywax?= =?us-ascii?Q?EFYJ3VzJym3ja/U1X3qi5cG6hqenc5uvW+2/T6vcnDmUrR5ATXjhNTKGbNY0?= =?us-ascii?Q?AnQf6yesBttzSGJlDkL8Pmz/cS+TKHtXZ98sNj9BRvFivmgfdrA8BgiLAIE5?= =?us-ascii?Q?lfUlG7q1WUBN80Zy6RrslmnzDxPmq0Amjn34hv41BJ643/oXiVUiUY691RiC?= =?us-ascii?Q?iUBjVSgfAZeql50z3/yaecCW6yLHPakJoleechydkY/zbY54Q8uDvYjxisuJ?= =?us-ascii?Q?rRMmvT2qAejQYu72a0ZiZXvY/vcIBx96K4M8ywKx7wKDSqeeOOUTGda7ws9h?= =?us-ascii?Q?nobxNtICICaoKgVj5uhfOAPI6yUPWbitOr11h7OVtlQ5+mxnEhp2gXtqLrZd?= =?us-ascii?Q?FXL9t6mKbvVdoqXOBbhA5gDxHY+igKXMuvHd3H0AsvGINwBISK9Z64EnHSD2?= =?us-ascii?Q?gvQe4HwJxDpyhJjmfKmHp9Qh1WvCbOmScboHUajJSmVJU4kJmskt4aAbsLb/?= =?us-ascii?Q?Z1vLNrHT7JzeCXxfz24K4VAaXjEKB9lwl5g5XJOs?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7147225e-e1c8-4d35-8e36-08da6df1d8f9 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2022 03:57:52.3938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ob9qnpjD0M5L9GJ3ykVJYwVeLtUE9RYu7VMG/33WBFHTh8VrfvjW+Uc0zARQ7JoN41wkBw2NPPbmypj7Sn2iEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8508 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan i.MX93 mediamix blk ctrl has registers to set QoS(priority) value. It support default QoS value and cfg QoS value. Set an initial value from i.MX design team. If LCDIF/ISI/PXP wanna a different QoS value in future, they could use interconnect to request bandwidth. Signed-off-by: Peng Fan --- V1: This patch is based on https://lore.kernel.org/all/20220719073541.197788-1-peng.fan@oss.nxp.com/ drivers/soc/imx/imx93-blk-ctrl.c | 113 +++++++++++++++++++++++++++++-- 1 file changed, 109 insertions(+), 4 deletions(-) diff --git a/drivers/soc/imx/imx93-blk-ctrl.c b/drivers/soc/imx/imx93-blk-ctrl.c index 42be09688cf1..614de7396680 100644 --- a/drivers/soc/imx/imx93-blk-ctrl.c +++ b/drivers/soc/imx/imx93-blk-ctrl.c @@ -20,6 +20,30 @@ #define BLK_MAX_CLKS 4 +#define LCDIF_QOS_REG 0xC +#define LCDIF_DEFAULT_QOS_OFF 12 +#define LCDIF_CFG_QOS_OFF 8 + +#define PXP_QOS_REG 0x10 +#define PXP_R_DEFAULT_QOS_OFF 28 +#define PXP_R_CFG_QOS_OFF 24 +#define PXP_W_DEFAULT_QOS_OFF 20 +#define PXP_W_CFG_QOS_OFF 16 + +#define ISI_QOS_REG 0x1C +#define ISI_V_DEFAULT_QOS_OFF 28 +#define ISI_V_CFG_QOS_OFF 24 +#define ISI_U_DEFAULT_QOS_OFF 20 +#define ISI_U_CFG_QOS_OFF 16 +#define ISI_Y_R_DEFAULT_QOS_OFF 12 +#define ISI_Y_R_CFG_QOS_OFF 8 +#define ISI_Y_W_DEFAULT_QOS_OFF 4 +#define ISI_Y_W_CFG_QOS_OFF 0 + +#define PRIO_MASK 0xF + +#define PRIO(X) (X) + struct imx93_blk_ctrl_domain; struct imx93_blk_ctrl { @@ -31,13 +55,23 @@ struct imx93_blk_ctrl { struct genpd_onecell_data onecell_data; }; +#define DOMAIN_MAX_QOS 4 + +struct imx93_blk_ctrl_qos { + u32 reg; + u32 cfg_off; + u32 default_prio; + u32 cfg_prio; +}; + struct imx93_blk_ctrl_domain_data { const char *name; const char * const *clk_names; int num_clks; u32 rst_mask; u32 clk_mask; - + u32 num_qos; + struct imx93_blk_ctrl_qos qos[DOMAIN_MAX_QOS]; }; #define DOMAIN_MAX_CLKS 4 @@ -67,6 +101,30 @@ to_imx93_blk_ctrl_domain(struct generic_pm_domain *genpd) return container_of(genpd, struct imx93_blk_ctrl_domain, genpd); } +static int imx93_blk_ctrl_set_qos(struct imx93_blk_ctrl_domain *domain) +{ + const struct imx93_blk_ctrl_domain_data *data = domain->data; + struct imx93_blk_ctrl *bc = domain->bc; + const struct imx93_blk_ctrl_qos *qos; + u32 val, mask; + int i; + + for (i = 0; i < data->num_qos; i++) { + qos = &data->qos[i]; + + mask = PRIO_MASK << qos->cfg_off; + mask |= PRIO_MASK << (qos->cfg_off + 4); + val = qos->cfg_prio << qos->cfg_off; + val |= qos->default_prio << (qos->cfg_off + 4); + + regmap_write_bits(bc->regmap, qos->reg, mask, val); + + dev_dbg(bc->dev, "data->qos[i].reg 0x%x 0x%x\n", qos->reg, val); + } + + return 0; +} + static int imx93_blk_ctrl_power_on(struct generic_pm_domain *genpd) { struct imx93_blk_ctrl_domain *domain = to_imx93_blk_ctrl_domain(genpd); @@ -99,9 +157,9 @@ static int imx93_blk_ctrl_power_on(struct generic_pm_domain *genpd) /* release reset */ regmap_set_bits(bc->regmap, BLK_SFT_RSTN, data->rst_mask); - dev_info(bc->dev, "pd_on: name: %s\n", genpd->name); + dev_dbg(bc->dev, "pd_on: name: %s\n", genpd->name); - return 0; + return imx93_blk_ctrl_set_qos(domain); disable_clk: clk_bulk_disable_unprepare(data->num_clks, domain->clks); @@ -115,7 +173,7 @@ static int imx93_blk_ctrl_power_off(struct generic_pm_domain *genpd) const struct imx93_blk_ctrl_domain_data *data = domain->data; struct imx93_blk_ctrl *bc = domain->bc; - dev_info(bc->dev, "pd_off: name: %s\n", genpd->name); + dev_dbg(bc->dev, "pd_off: name: %s\n", genpd->name); regmap_clear_bits(bc->regmap, BLK_SFT_RSTN, data->rst_mask); regmap_set_bits(bc->regmap, BLK_CLK_EN, data->clk_mask); @@ -288,6 +346,20 @@ static const struct imx93_blk_ctrl_domain_data imx93_media_blk_ctl_domain_data[] .num_clks = 1, .rst_mask = BIT(7) | BIT(8), .clk_mask = BIT(7) | BIT(8), + .num_qos = 2, + .qos = { + { + .reg = PXP_QOS_REG, + .cfg_off = PXP_R_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + }, { + .reg = PXP_QOS_REG, + .cfg_off = PXP_W_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + } + } }, [IMX93_MEDIABLK_PD_LCDIF] = { .name = "mediablk-lcdif", @@ -295,6 +367,15 @@ static const struct imx93_blk_ctrl_domain_data imx93_media_blk_ctl_domain_data[] .num_clks = 2, .rst_mask = BIT(4) | BIT(5) | BIT(6), .clk_mask = BIT(4) | BIT(5) | BIT(6), + .num_qos = 1, + .qos = { + { + .reg = LCDIF_QOS_REG, + .cfg_off = LCDIF_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + } + } }, [IMX93_MEDIABLK_PD_ISI] = { .name = "mediablk-isi", @@ -302,6 +383,30 @@ static const struct imx93_blk_ctrl_domain_data imx93_media_blk_ctl_domain_data[] .num_clks = 1, .rst_mask = BIT(2) | BIT(3), .clk_mask = BIT(2) | BIT(3), + .num_qos = 4, + .qos = { + { + .reg = ISI_QOS_REG, + .cfg_off = ISI_Y_W_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + }, { + .reg = ISI_QOS_REG, + .cfg_off = ISI_Y_R_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + }, { + .reg = ISI_QOS_REG, + .cfg_off = ISI_U_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + }, { + .reg = ISI_QOS_REG, + .cfg_off = ISI_V_CFG_QOS_OFF, + .default_prio = PRIO(1), + .cfg_prio = PRIO(7), + } + } }, }; -- 2.25.1