From patchwork Sat Aug 7 08:00:58 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: 493387 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp1031942jap; Sat, 7 Aug 2021 00:35:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4lxwMkcPiRID3UKt2UZCVqvEUFoKGOetUASbmN4tsfs/tMGg3k+Rr0FloxwrVlduVCo06 X-Received: by 2002:a17:907:2a45:: with SMTP id fe5mr13729406ejc.415.1628321727794; Sat, 07 Aug 2021 00:35:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628321727; cv=pass; d=google.com; s=arc-20160816; b=xX0E0ymut4ilW3GNLmPrHgWrpQvTPvn1kuzU/XbXJOrwDX4aDxbiKKSaIevp2cotSp AAXdUfvYtbDlJWgpZGlMH4RsWRK9DdzDCdPZghCuBS6byaTBO4I/Sz6QHWWEx/XXeDE1 v/2dINORT8XO5wA+hT6i+Me1sIiT7LA5uqCK6FmH5nvYq9PkmgHXojF6h/JG2VlkqnUF c+PMmLlIUiRmWCkpJA8zOWQ6fBW3AUyvfs6f1zBF307xhfMWArEJm9os6SgUP55s4ZVI FNKmi8DGgFdACCKGgRCSDIBPUxxT+xf8GSO/5dkzN7yMAb+jpR3qjtP4pm3Ira+lXZxf zT7w== 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=N3tp6EkdZR9YGK4nRruyTJfg7hwBnPBeUiLO+EM4nSkuQZKd1z+rT2q9CpooRfg9Df CZ2cfL6MGMmxIFlywfCpA9OewHEdngquLR/waqAWVOAYWrYNSocwNkbEqt5OaJQKAhbk z85KEX0gmeMxkhGy9+8EejuI0XvgC5GcGklcDynWWsKXB8vuUWCDtOSZQlEsqPIc8M76 dW2SB5nswAbH1hGFcrN58MWp32jR9AXKWirYPaU1oZ6Nonr2g21EJEKM65XG27nAErGU eL/9D6KZqj47dMxyctZVOUYeJ/I7/Mc1F5M4qvkX8d+wcC2X9uxHBd491ytUBuleOOXV ya9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=auMfyZvI; 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 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id cb15si11280015edb.452.2021.08.07.00.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 00:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=auMfyZvI; 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 85.214.62.61 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 3B8CA83216; Sat, 7 Aug 2021 09:35:14 +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="auMfyZvI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DC7783212; Sat, 7 Aug 2021 09:35:11 +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.9 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-he1eur04on061a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::61a]) (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 3042083255 for ; Sat, 7 Aug 2021 09:27:58 +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=aR/AIZDf86SIX997oBkML846DkqklgD3XCBBnLwAFHvqGPV8fTteNQO6nsrD6ddxgwbYeW4N2d7gd0cWV+L1NFr1sS3KWASVJqqLWgit8vnpVqwWm9QhhjMHgsGb3kMHAFdunZKZ4h2lKV9ztM+sH+Nck3Vs6tsvWSi1d7hCNZugBY8biS3OkRRKnqyBEccYarsm+eDd+HjJSWxHuBmJmayKgwMxk7sVTIKxS4v2PEfFO/rEZ+FdUKPNmdvYE4p8C6ECQxw9b/EC/AavxgGSnEo9D3votmAltqhxn7nK2TqZnMrtdZ1xf6ughBhZ8MAQBLIhSxshZeaL5qkThpWLOQ== 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=SxRn+LrxVEJyD97VhHa9r1bf88LH/JWebksJ0InNDKtv30qUyafNk2S2HkiZezM1C5wjvlo9/B8UM0A/Wug/2gNyHUbUqhJQVLpP+PMnHfpKOm+66tfa3A1FiBSyWgsBdK/+WO/M1+b0dY0gMmpnMFZtCmPtePgvkvPftP1C+zY0ExyKDBRdetjZiIYkQMcdm8qOIjcEt/idC+kKHJvSuoAPm53rEa1p1P3BsMgSCinC7rvD7sasUZRyMHZOb+VJpJ+cDyvUwThjsvukBlxxUXIbo0DlUlYQoOIqKW5wpAFoBc/LGFs+9LiRX8rVQ4XbhUh9kNF3oMXDDhXAMmFAQQ== 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=auMfyZvIrK+6tUilMqkQ/UWW51yffWPb2jV1f68/57SrtbZDv3XC1B8qC6Jj8CaOK6N3NOIoCIs8ESNYJh9rZpWvTK2zBQELVo47l3Sb5BZVyTcB+wW76M5GctbQ6OP8boAXIkUA0p67mpulf5oS1N2QIlGqFSUyIEWryK7Wk08= 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 DB6PR0402MB2758.eurprd04.prod.outlook.com (2603:10a6:4:96::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16; Sat, 7 Aug 2021 07:27:56 +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.4394.019; Sat, 7 Aug 2021 07:27:56 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan , Ye Li Subject: [PATCH V5 29/44] arm: imx8ulp: release trdc and assign lpav from RTD to APD Date: Sat, 7 Aug 2021 16:00:58 +0800 Message-Id: <20210807080113.16020-30-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210807080113.16020-1-peng.fan@oss.nxp.com> References: <20210807080113.16020-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) 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 SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Sat, 7 Aug 2021 07:27:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b39658ef-f7d7-487d-33c5-08d95974e015 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2758: 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: ZTOD7uddrRscN1/8QJnoLK2Wg1FEP9f7LXnc8CAZmdh/jbKR/Gp1gLgDz0OTL6KwTvcPtnkH+/RN870KkmEo385ktuHAFQUJwR1x4cthDd37IK50G3omdPzRu+X4mxy6S47qYM6NrLFm5sytyrHd63iICEibCyhvMMYbQdaJ3o8EK6L5TWr6gF1VnjurRbK2h3kziimgGSAHXHDjff7a8kcf+qE1uatT8aivnEl47vc2TVum2vsWmamUc5vPrpbtm4gz2cWN8EhiP/J61Zun1PNj4cH4j0B43qrHKdjXZ4vRGxuclHi8082qesHItw2RQX9w+CkWmeQYBTC668cdzoY0I6dI4k+QHLcS9BnlXP78HknR+JKdKz2xJIr9WRYFMOFElA5EcPRDQIL5Lts9ePO3dZ5nhh3oPIVI08DQCzGGlGoRfzlHTc5IGuJ+VHjgIh7kKcMO795uHgxyTAN4RL3szA04OPUVbIGGRxG0Z0BI2iaY0jUqu9FekC6IaLg1VJU5THunwJ6YkdoXiEv61SuHD+srX9Kha/hv1niGHRH3AdaOoeHoUpdF3IZ6HUKPvmnQ+hjTVHyH3a/NeFZWswAem0zumNIPqS/IZQd1IBiUhvFUiebE6mZRXQR6EXB2NidMg4MYAOc3yFnCYUskCQcLebrBLforUxo0vgMSTBSJeF7AHOcOLekEnYzzmBVji31OpppQGr326/IIS+3OlpG1+xp090vCx1D6giodTag= 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)(136003)(396003)(39860400002)(346002)(376002)(66946007)(66556008)(66476007)(8936002)(52116002)(5660300002)(6506007)(4326008)(6512007)(38100700002)(2906002)(38350700002)(2616005)(8676002)(478600001)(956004)(1076003)(83380400001)(186003)(26005)(86362001)(6486002)(54906003)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QWrFtPyCOm2U/XTrlPrkDpOQl/T8FymrazshuSFoAsT5olJ7Ya6m+iT3aHXZa94vuE5d6X24i5i03xY1fVsclFB65ugKhy0EVT65aKXI2qPRJ7bl+9oVyS5rt9aoKu7WCCP6i/cTo0BWeEvOF/rfODFMtI++YI3pzM3uXX8pXVnRQnEWRUooIuMaFV8JTCSUBSuziYBPmg26qX8nnkzQXGNNpYevtlbypZ9Zvg2878Tnxi6Z6hwT19kK0YUCdZz3DmAnxu1Ndr54uDNXXAglco8jU6DwMbohCu/4q6rRJ+7kjvHxaC91kKgxkIBNQAMf9kJTPOJ3dJLpPyxRtqzgzovBUKdOcgucO9DegQFIto5JDJgh3c16ahd5Cwk/sBiHkUNAK9w0XkjFukOFOYa4gMhkhFK94yPPMdEJ6SPYDFKCp5mPzW1cg/wnAbiDeDjtNTtsrkSC7fVf/RyusvWXtyE4Zjw8k6UJLqM0bah9GueHopbo7FIgJgdDPQPlZEvoLQw7gfxaWPMPWqFVuuLglnC/9odCNR4+S3g3VoMjBB2yiO3iCS7p9YiGFD+BwAPsGMDXRzfyc69Aax//o5j/Jm9qM7DTEwlqqkZuKHb5yd94EysqrLayYw9+g4JKl1GGz4Zu6rfBEifUB9J4sDrBn/aMzQ+kBYxUEYxo2x9P/qefSORjmxrej6nTw7bdUTpEpnmzf7oU/c2bC0erU/3l1FxbJVoGHi+kWbT3Klt1Y7eK2R0ztnBvLeg1jrc0lz8N30svFca4M5FjT18ROVcjjM0pxLlnUaXgmtNngRW5U+XcI8hXpz8bq/P4GYtDefLoRz/vI8SxPPWwwRXRd3Iyh96VsQIxvgY/U8f7mblajX+dYbPGGGc/r10BKOriRvARqUnblwHR3M/WrbxW40CobOC7Jq0ca5PCOIEPQlns83tbMfU4j1XcUJtxEkM2VBiW64pE26LySZY+1+bLHoTRNn/8s5EkamoBmQjMDtxDrsixzRiqnnexCdhd1DSuZfFwneOPyPp1KYrCnkx/bfQ5q37j6CWKrcJ+pLbEX699Hx4p7VOv3cUV/pdjnUUBJZ6AW4CtrNI6DVK8o1CNvEyRkdKoKpBwwrnhmmImpnR4wxWCcp/wPKW0Rbrp1s/fZrOzlHpmkz0MqbAXdmwlvmE5go1c11aIDKGuReYGAL4x7mCd0yv4YizhBPc1//pO3tK/Pj7oY2ixrOTX6rEKjaHHPbBQcfT3kpbkVuOvXXewNh47De2KwubL3y7CXTGqb5L9idg+5TzLbVrhVFyma++ijnLO0pjB2y1XvAU9RRFBoGpMKnEciLxC+w9fP9HGsJje X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b39658ef-f7d7-487d-33c5-08d95974e015 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2021 07:27:56.3658 (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: nvuetmpYqQ5hgYasz9yXc/qAYhmZRcyonx+Qw8uApAlNHJ1bz5cQm+Gy6LeuP+euXVxvMxfn8QWMaq5ZSrQkuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2758 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);