From patchwork Mon Jul 19 07:47:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 479821 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3869934jao; Mon, 19 Jul 2021 00:19:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjiBRktufBHNt2KO/V55p/asmrMRPZz+yWafpCHAUv3uZJZspfZXUKmFzOC+E3Go9O0GDM X-Received: by 2002:a50:a40c:: with SMTP id u12mr15083337edb.20.1626679156741; Mon, 19 Jul 2021 00:19:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626679156; cv=pass; d=google.com; s=arc-20160816; b=wEgEDZScpfMpVGC8Xu3t4E3ynP39ubH752aMcT1LNrrxq95I1J1lOrtNblGZSrt/GV zQqQNNu8f8tz9onC448rLJEBVYp4LGm0KaJeoxYyjQ5hYLDQBGP8/FHunjVni9NVFc89 tJH/jzle017Lcc2nKcYWrYcbzXxY2pQ0PoBamL7mWbS/8WdQ2g9UHhj+jh38joz7VKwp p0u69svPLPkXyTSaSzCBgq4nf84wAeKby2FrY+0DnKxluFvGVpSr3YFrIegLi6Di0f4D BQq49pULja5Am1P6NXkXcR0sPh4W/wXVE7FsUo+HAwXRKx4AQXxW7KWeuzosHgttG3aK 12Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SM7wQoZPfTof5cvek/LTF2Bsmyn/joESbzZf4Z6F0fI=; b=J6C+1jfXIVegWKCB0dizjamtG+SIJeZpiu2owc57sCO9f3VBhI51Rs+LrWvA+TU1Po Esmth/O5PgMuNONHixax+4i6jEBBSF5K9KI2eTw+18B2WJiom+BL/Zx0uJrI4YsP/8Ux ooR9pdD2rsnTQXfoPaakxTi3hIhPvjRUpcvSK7G4zwLLpD2mGlpZY5/SP1HLxeILhaui FAyn2xUqoks+5GxZa4sDyE9p8J2SasYzkrb2y3MhyEsFZ/XTbogSG4fMwM2dR5sEHGB5 nXVzlEphqxEqXVi8o+YK/NUHhRhHu91HZdL5GXZAJd6WZ69XxFvWU2QyDAnoZ0fEq42O a/lQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="KkA8ZTs/"; 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 u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id n21si20565948eda.13.2021.07.19.00.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 00:19:16 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="KkA8ZTs/"; 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 u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9BE4382D87; Mon, 19 Jul 2021 09:15:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="KkA8ZTs/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 27BF882C7F; Mon, 19 Jul 2021 09:14:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on062e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::62e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9FD5E82C63 for ; Mon, 19 Jul 2021 09:14:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iWcTbjD/Q2BnU8W6KqJMe9rbOEtavQr3swhRo6PXs3nfqkA6NTsHbY95QmDdigKOCszP11YZ2nQhlZW8hetBdK3DaK8o6+tJcyKIhndw5/fTeUJIOJsqw6YlsRYGk7QRuTs3cvTqHOj+hb6KEHWXoL8vYr1FgdQVo34u06eETJTuNC0H8C5PXvRNWPLNUUBOfzmpER8EQRmeAG568kCaFT9dujJbm8fPuRe7YIHqZJb/gl7ArrvBQthdr33Dl7O6zUJ4o/+PP8Grp7BLTypgdrepIHH8bmk16sVSzLrLcaaiO5JRAbso6MyloV0hoPvr5C14qM/cd9pWj9y/HnGnyA== 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-SenderADCheck; bh=SM7wQoZPfTof5cvek/LTF2Bsmyn/joESbzZf4Z6F0fI=; b=GLdfB/jCTMAvqBJre/1jJR16KPMz/0bz1QylFTvBvMBy4V2MML8G3rJr6CLAflVb419hB6c7AOxpfz2KQLjsMVQNLVpRZMe1tDePV1VT0zVw0IWA9ZI/ojQa9qzAUtMHFWlnTji0KRV/Kc5b2xDazKD7qsjiUscbgrWJeB0ZsfYYzdzTE3S9UDXEYSln5Lf/mVkmnwkCOY5n0MPoyuOMlCfczqE2NYRpVOqMxiGTatDv+m3XRQZcGnBNOYuedycm6i0Jot4k0b6KqTdeEXy71+GEX6DCTXSKMw22civCABqFka40vZOvJt8++YPSXXp/Sv5jcDdXhuHqTfgcV+fV/Q== 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=SM7wQoZPfTof5cvek/LTF2Bsmyn/joESbzZf4Z6F0fI=; b=KkA8ZTs/VyIIpmpwWNRQEjmlwMbqyP1Qyv699SvPZ09nasuGcc+F44xk2EBxOtjv/emRBP21MzGuor6U7G2OkeiTakEYPmgga3HSpN29mlQH4sggTl5SZWNswKmOXMYU31OY52qgnDF72u5tH4xTsxuyaMaCxzpH61bKzYBc4oM= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBAPR04MB7302.eurprd04.prod.outlook.com (2603:10a6:10:1a5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.25; Mon, 19 Jul 2021 07:14:47 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd%9]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 07:14:47 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan , Ye Li Subject: [Patch V3 29/44] arm: imx8ulp: release trdc and assign lpav from RTD to APD Date: Mon, 19 Jul 2021 15:47:19 +0800 Message-Id: <20210719074734.29170-30-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210719074734.29170-1-peng.fan@oss.nxp.com> References: <20210719074734.29170-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SGAP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::18) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SGAP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 07:14:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7aac8136-0118-4e8e-a079-08d94a84e3e6 X-MS-TrafficTypeDiagnostic: DBAPR04MB7302: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5pRMCsr3FZVRQYyfJR4aYwad0C81Wb7sw6H5sdcctsSMBKdFbJI73Ltd3V3FOkuhzNI8whu6VzLFAzqT1sek/geU3rOdqVRyOR0YVuZQo5rbd7AW373VACa/WQBotIqkEzQYelJErRhK9w+1+p6FccPYFahbGgkfBeQnIM0pqp2LOujaY7MKf5beHoB9+TIqEd8evbFcDlW453lKNk4zhfIVg3L+EKEb4VIpa+Lqfm0gakIJq7ewbxnAA0/2n1ahjXCOBnxZ3uckCHIqvD8+c9UTl5CtLUTOTa8u7/RXNpw3XhBwA37FC+5TCNa+KchmVXKwa7o5xugM53rOvbEYdx5YvhGUjxGlb/0KJGVvgdJtVjpnvBqMsyZTXpqt9Nb/kG9IdK4cOWfQH53D99hB+CQedawhYAW6prJlICAKoiz1q9OVx3PRR7sttYywgNGXleRSvDnt2gyDcMD2Oq8nzVAge5H7x+xzAxMG07W+WOFui+I3Enq7sGULF7n6rQgntjOSAeDqY+LM5LOCGve5GIXRBBVN/9gh8r1oWq5Qynjsx+0KhtGMJR1ZRnX/4JXoa+rbL+7N51rJUU5S65pEeykBvGUKgd22DjRfOnryAU7OSztcBm7fwNBBZU3eHFAMFpLMhMKCRolqHsNy4+tjveD0RTOFtqR+QjZKiHZjwF56lQN/V+jtEakzH7qD37DUd0cq5xE9JvW82jwMKdpIXalJcn5+/567cIFLfXc0D2o= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2906002)(1076003)(6506007)(8936002)(52116002)(186003)(26005)(86362001)(83380400001)(316002)(54906003)(66556008)(5660300002)(2616005)(6666004)(6512007)(508600001)(8676002)(6486002)(66476007)(66946007)(4326008)(956004)(38350700002)(38100700002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: s0kSFV2p0bdp0omLppCuWhKwilVg7pI8H/SOe2FofQNQ4I+UklbNcMz5pijVna9wevxOvOpHnMPjG2vlzqMjZKRsqiQSQczJuYalCqm1ktJ0kkS3tZ8PdKVCDvBbL0C/XgCASdeuS6h4DTaStd2KR0UWj3JQ2XzlDx6gJi79byYWU5aOgHtKJSPPvLVJFfVPdm5XPTiK4a0EwfjI8b1qpltFpGM6VEr/yvORqYM6nZ2YI5RBBfn3JpzkEfjlalFAgEKZbTacLc7zNAY7DXxEPbZMbH74f94al9J9+BuW06RzHQh5Y11BxobfMKxVA3ZYq1BPFYAkNXLqvfBKLHpdpcbRn359pMQ0IKtcGOe7lr+X6w1+7CB6wyH11b4NwCr09r6xtWCMeL5R4Y7HoNGMj2dt2Eu8o1JQ8/ibQ/4mcSCxQSbaZa6C3LnQsGeEQM/Hsc4WgYJNVUkj3vQYznsRTcxyd90E8jRd46joq4NFHoLR47RW6GKgzMYPMRk6FIY+Kf7NE1OUAiApXWdSTYzjAQgyBI2RZJkE0jzVaksOHa/YFWsonzfhIcFy2acn+ArLbscgLGy/h7A1h8Dbl626eSZRY0rq1ckCxw1IZi5KSW2bP8XOF4ekJFI+LImQc4FoW8CWM1fgPJI0LegliSXOLXh9xlWb8T9Gj/07z8jmWpn1xaXCbD+b98QIGu50m+04x2rus9ps5mMa6orMMUEcJlnZuw0Z2z18OvTIT5ZjlzBUY24IS5vMCQtbtyyiLI0xKeYqHOx/J3Sc3WpJeogmGEoZWvXq66oBJ014NR2uH8sMG2FJ66cJ2sirBTr1rXd7JkiLdHsn4h2ocC3ms3YPa6opkMvzU+FBFmuKa9Dgori6kR4X9cFWn+QO6SO2JTgq+FVlYeOFJD3Fm6dVrq74dEzjzIL5J3fYaALSoGiwUhmv6qwf/ZsqpqK5Rv05T2qHsd/DhWYFBEkLjiRKit50kfKn6oNvD06MEx7D8il5IXwnRhixauW+J6KTi/dBx0yUX9JiPT5lwN5kAq/wh0Qv9NqZKBbKo7e3NgxC7WW3rH+qkUmfS5OqpamRtpakoNOBYhzh19Li4+koNTZZO10GVOb33TPm5aNKFGu/8ayGxM8sE7/7CyY9ckTMiDtMAY8hCi3prKrI7z2okptddLspEBBnfEDjArdy12Lfgkkr0eXtEr/qspeLCqB0qiUuJBcMOlp63C2jB5Qdad/2Rr521/rXQ5fFjY07EP0ABTw56dyTcD4M/TEZGZH62CuvN5O3wVZKV/UXaOHFryIIXbeG2WdYyqZSpHsqchpFcRSuQDoXSD0wCcibxJFo3iVRRRam X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7aac8136-0118-4e8e-a079-08d94a84e3e6 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 07:14:47.1305 (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: y3XD40ZMTq1JQpOWEiQyC1hPc8Kb5Xq0ZbhnB8E0I8D2mhiq6agIaeG1YG0QMoFFTgSbOF74DWIB7iGzn35/MA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7302 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan Rlease LPAV from RTD to APD Release gpu2D/3D to APD Set TRDC MBC2 MEM1 for iomuxc0 access Since upower depends AP/M33 SW to configure IOMUX for its PMIC i2c and MODE pins. we have to open iomuxc0 access for A35 core (domain 7) in single boot. Signed-off-by: Peng Fan Signed-off-by: Ye Li --- arch/arm/mach-imx/imx8ulp/soc.c | 104 +++++++++++++++++++++++++++++++- 1 file changed, 103 insertions(+), 1 deletion(-) -- 2.30.0 diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 43fe62c2fd..29f7d5be02 100644 --- a/arch/arm/mach-imx/imx8ulp/soc.c +++ b/arch/arm/mach-imx/imx8ulp/soc.c @@ -380,6 +380,102 @@ static int release_rdc(enum rdc_type type) return ret; } +struct mbc_mem_dom { + u32 mem_glbcfg[4]; + u32 nse_blk_index; + u32 nse_blk_set; + u32 nse_blk_clr; + u32 nsr_blk_clr_all; + u32 memn_glbac[8]; + /* The upper only existed in the beginning of each MBC */ + u32 mem0_blk_cfg_w[64]; + u32 mem0_blk_nse_w[16]; + u32 mem1_blk_cfg_w[8]; + u32 mem1_blk_nse_w[2]; + u32 mem2_blk_cfg_w[8]; + u32 mem2_blk_nse_w[2]; + u32 mem3_blk_cfg_w[8]; + u32 mem3_blk_nse_w[2];/*0x1F0, 0x1F4 */ + u32 reserved[2]; +}; + +struct trdc { + u8 res0[0x1000]; + struct mbc_mem_dom mem_dom[4][8]; +}; + +/* MBC[m]_[d]_MEM[s]_BLK_CFG_W[w] */ +int trdc_mbc_set_access(u32 mbc_x, u32 dom_x, u32 mem_x, u32 blk_x, u32 perm) +{ + struct trdc *trdc_base = (struct trdc *)0x28031000U; + struct mbc_mem_dom *mbc_dom; + u32 *cfg_w, *nse_w; + u32 index, offset, val; + + mbc_dom = &trdc_base->mem_dom[mbc_x][dom_x]; + + switch (mem_x) { + case 0: + cfg_w = &mbc_dom->mem0_blk_cfg_w[blk_x / 8]; + nse_w = &mbc_dom->mem0_blk_nse_w[blk_x / 32]; + break; + case 1: + cfg_w = &mbc_dom->mem1_blk_cfg_w[blk_x / 8]; + nse_w = &mbc_dom->mem1_blk_nse_w[blk_x / 32]; + break; + case 2: + cfg_w = &mbc_dom->mem2_blk_cfg_w[blk_x / 8]; + nse_w = &mbc_dom->mem2_blk_nse_w[blk_x / 32]; + break; + case 3: + cfg_w = &mbc_dom->mem3_blk_cfg_w[blk_x / 8]; + nse_w = &mbc_dom->mem3_blk_nse_w[blk_x / 32]; + break; + default: + return -EINVAL; + }; + + index = blk_x % 8; + offset = index * 4; + + val = readl((void __iomem *)cfg_w); + + val &= ~(0xFU << offset); + + if (perm == 0x7700) { + val |= (0x0 << offset); + writel(perm, (void __iomem *)cfg_w); + } else if (perm == 0x0077) { + val |= (0x8 << offset); /* nse bit set */ + writel(val, (void __iomem *)cfg_w); + } else { + return -EINVAL; + } + + return 0; +} + +int trdc_set_access(void) +{ + /* + * CGC0: PBridge0 slot 47 + * trdc_mbc_set_access(2, 7, 0, 47, 0x7700); + * For secure access, default single boot already support, + * For non-secure access, need add in future per usecase. + */ + trdc_mbc_set_access(2, 7, 0, 49, 0x7700); + trdc_mbc_set_access(2, 7, 0, 50, 0x7700); + trdc_mbc_set_access(2, 7, 0, 51, 0x7700); + trdc_mbc_set_access(2, 7, 0, 52, 0x7700); + + trdc_mbc_set_access(2, 7, 0, 47, 0x0077); + + /* iomuxc 0 */ + trdc_mbc_set_access(2, 7, 1, 33, 0x7700); + + return 0; +} + static void xrdc_mrc_region_set_access(int mrc_index, u32 addr, u32 access) { ulong xrdc_base = 0x292f0000, off; @@ -428,8 +524,14 @@ int arch_cpu_init(void) /* Disable wdog */ init_wdog(); - if (get_boot_mode() == SINGLE_BOOT) + if (get_boot_mode() == SINGLE_BOOT) { release_rdc(RDC_TRDC); + trdc_set_access(); + /* LPAV to APD */ + setbits_le32(0x2802B044, BIT(7)); + /* GPU 2D/3D to APD */ + setbits_le32(0x2802B04C, BIT(1) | BIT(2)); + } /* release xrdc, then allow A35 to write SRAM2 */ release_rdc(RDC_XRDC);