{"id":2219450,"url":"http://patchwork.ozlabs.org/api/patches/2219450/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260403022513.9446-4-alif.zakuan.yuslaimi@altera.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260403022513.9446-4-alif.zakuan.yuslaimi@altera.com>","list_archive_url":null,"date":"2026-04-03T02:25:07","name":"[v1,3/9] arm: socfpga: Move firmware register settings from source code to device tree","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"4a0b81ee7dfb0d356f2d63f85c5604cfb799661e","submitter":{"id":90458,"url":"http://patchwork.ozlabs.org/api/people/90458/?format=json","name":"Yuslaimi, Alif Zakuan","email":"alif.zakuan.yuslaimi@altera.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260403022513.9446-4-alif.zakuan.yuslaimi@altera.com/mbox/","series":[{"id":498580,"url":"http://patchwork.ozlabs.org/api/series/498580/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=498580","date":"2026-04-03T02:25:04","name":"SoCFPGA: Update Boot Support for Stratix10 in U-Boot","version":1,"mbox":"http://patchwork.ozlabs.org/series/498580/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2219450/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2219450/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=altera.com header.i=@altera.com header.a=rsa-sha256\n header.s=selector2 header.b=Bojz9BtI;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=altera.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=altera.com header.i=@altera.com header.b=\"Bojz9BtI\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=altera.com","phobos.denx.de;\n spf=pass smtp.mailfrom=alif.zakuan.yuslaimi@altera.com","dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=altera.com;"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fn2dz2f2Gz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 13:26:15 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 434AA840AB;\n\tFri,  3 Apr 2026 04:25:57 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id D0C9D8408D; Fri,  3 Apr 2026 04:25:53 +0200 (CEST)","from SN4PR0501CU005.outbound.protection.outlook.com\n (mail-southcentralusazlp170110003.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c10d::3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id CE0A48408D\n for <u-boot@lists.denx.de>; Fri,  3 Apr 2026 04:25:50 +0200 (CEST)","from PH7PR03MB7063.namprd03.prod.outlook.com (2603:10b6:510:2a4::6)\n by BN8PR03MB5044.namprd03.prod.outlook.com (2603:10b6:408:7e::12)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17; Fri, 3 Apr\n 2026 02:25:47 +0000","from PH7PR03MB7063.namprd03.prod.outlook.com\n ([fe80::f6cf:4203:1cbc:cd21]) by PH7PR03MB7063.namprd03.prod.outlook.com\n ([fe80::f6cf:4203:1cbc:cd21%4]) with mapi id 15.20.9745.025; Fri, 3 Apr 2026\n 02:25:47 +0000"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","ARC-Seal":"i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=ku8Yz5JEU/UdoYfYjeyewBfV1XbdIoBGk4WObeAv2z+nM8jPRxAqLLAqw6Nd8/1p2JdAN/4w37AGdWiGRZplABTjQ0gbrg/XFchauN8xZ2cSdO5wjfOzQ6GjMigaPV1rI4wrvgcX9v0hxRm3XHTMNx1RekWZL71PioVvMnMMO02HqRiF9eiqZVNuuzn7YSkMqRobAmtCcpun9q9qf/u8YjDyG9oKBHDlH0tnpOTqxdyCf/xoQ3vw//2Q8/HKatqDVgsv+ZJ9tZpvudKcG+UYZUEfIqMBg5ML6dA8C/1mBorTKavbxz6/WCtOoLOQ/sz16yIGrCI7MNG0CHn/ke5hjw==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=0A0rj6e/TfgLER1MnxlUAdEddJb7avQ02Q1xgC5rVaQ=;\n b=x1rZ34II18MrYDlaWwrqpnKFISxUF41rh/mnDbwdNDRSmtOq8IviHQ+W/+3GdYOYxVZY6pvseGq85oFQzita58x1AVOksHT2TiB9gdNCcmBAIvP0H0BW2kvsGffYWXLmTPLm6+yUlwRYpeVe+hYPwmz0jmSdSU8CBi/2aqJykExs69gf1ivK4kCm3hF3fvtlyBQk+BP+aTENy1eRXAqgFK1r/i9RkJp+46hkXczEb8n3Xj6WM00Xgalg0FkTC0LtPvzhBJiRK1IrHe9TGjJbT1xtSkV9bt8Pxxoy2VcsHGHb2aEir38tHz0+g+BolVakvTZhH5gJNcAoDVTHPIpBKg==","ARC-Authentication-Results":"i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=altera.com; dmarc=pass action=none header.from=altera.com;\n dkim=pass header.d=altera.com; arc=none","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=0A0rj6e/TfgLER1MnxlUAdEddJb7avQ02Q1xgC5rVaQ=;\n b=Bojz9BtIGIEoXrjJ3HFWKsIUaG2cyHw4F6EgiXJwJI4a4cJhUslwsvuQv8gWV1pW0dzHQwXnqp83nmIOghPkwmGyT7sC1MclliQtde1sfbXCulDQtiwQ+07R2nfDZbug/GZv0MwPFOK2Jlz4CTXRV2mi5c8IhG+8v+pvXerYbKa6VFcz/VuqohQqd8jqDLT2xHodG8YCN5xwWk7Vo3CQ80IhHO3uDmuHaULTtRcLZF5pzHfL5jPA92DTcjvumh9T/OalDOn2fJM2F8ad0tBu5cVk7SkrAt2+hkdbw0ABlLWt8i5rsyGrZG9ceaxzKoj/p9Ox5565aLXcObUhuTYFfA==","From":"alif.zakuan.yuslaimi@altera.com","To":"u-boot@lists.denx.de","Cc":"Tom Rini <trini@konsulko.com>, Marek Vasut <marex@denx.de>,\n Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>,\n Tien Fong Chee <tien.fong.chee@altera.com>,\n Lukasz Majewski <lukma@denx.de>, Peng Fan <peng.fan@nxp.com>,\n Jaehoon Chung <jh80.chung@samsung.com>,\n Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>","Subject":"[PATCH v1 3/9] arm: socfpga: Move firmware register settings from\n source code to device tree","Date":"Thu,  2 Apr 2026 19:25:07 -0700","Message-ID":"<20260403022513.9446-4-alif.zakuan.yuslaimi@altera.com>","X-Mailer":"git-send-email 2.43.7","In-Reply-To":"<20260403022513.9446-1-alif.zakuan.yuslaimi@altera.com>","References":"<20260403022513.9446-1-alif.zakuan.yuslaimi@altera.com>","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain","X-ClientProxiedBy":"SJ0PR03CA0001.namprd03.prod.outlook.com\n (2603:10b6:a03:33a::6) To PH7PR03MB7063.namprd03.prod.outlook.com\n (2603:10b6:510:2a4::6)","MIME-Version":"1.0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"PH7PR03MB7063:EE_|BN8PR03MB5044:EE_","X-MS-Office365-Filtering-Correlation-Id":"be4abe62-efa1-4ad0-1711-08de91285079","X-MS-Exchange-AtpMessageProperties":"SA","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|376014|366016|1800799024|22082099003|56012099003|18002099003|55112099003;","X-Microsoft-Antispam-Message-Info":"\n +oQza/BjVOdYm2STPCLoMdfemo6Nid8M/hyahi82zGBIdY20N+dwRt57F7NG2RI3a05FuoO9n3Ze/jk9OnQTWSfKe4SlPYWIAmmO0rsDy4k4t2TvAU1pOYTjM3xvah21BsBXFkX0BwPvtM0JEOUPOxv/MMS4XZWPp33A9PsirIm/eHS3GjK41PBfAjnW77v0uaP6wgomcC5hMddvX1P5T/uw12LNkK99VeLio01DcWfQww22zVwVA4HRtupy+TTs+uHiOSeTyDR3FYSoNyLjaUw4gMqJHPmR8IRUubuKAZi5aS9sh41LVoayq+Qmu0tczO68Eab9XFEtV0jyBn1P5o3JctzRt7VSmuW/Kz+TNXLvbJCGXIHgRatSeIxOkD0LDNzuTGqrdtcawJ0y/Hz0fHWkRHz6goNmqB217IZZMi9nRHucVgMu9zhJY98t5qJMIENcUou4iAIqFKg/TjJtkRBPzsyxgmuXFKDhSUdpEQ25yJEwbHS+jNMW7GVIA4QkNe5LExojJ5qVx0apGX6G/UHmE5vpFvKyoq5oTLCicX6KeCu+EpxwoBicyHNL41KwsXBjbVb5JjUs7waF4BI+Md4Wovs5ep8+ZgMO7qhggBO4etFw8WY/IXJyb9HHyJXKwl1YTz1FkVCfNCP/fvVPgUogISB8MVtW79IGL5zzHdIdJpPAuj8zXHuz4GguShu7","X-Forefront-Antispam-Report":"CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:PH7PR03MB7063.namprd03.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230040)(376014)(366016)(1800799024)(22082099003)(56012099003)(18002099003)(55112099003);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n 83Djbyp5ep63sJh23zKYs/ieeMFAVxCfqbrVHhk3P9JXeMNh86anTesFesF5fXw+ngB2ZVMCDMUVbI/Y1REVW3TfXxBUqh2X1lXs9DShkw7tOBkM0BXFk53G6xPgyDskFR4LcECKelKbPw+jM+vR91zV4QJF6dYkEjV7M/lSC4D2XbhgiLzUwNEwVm2lkmaOqhTSTPq6mc8xJP8HGgqQ6126QpZBIDayc/nz0TZeSnOm4aYshRGLjeXwN6X/bMOcY0Hwm0ycBSwnEKzGgG+W5BkBGlEPqtEr6oiSeX5PqczZDEjcQbb9/+kTORNUkFu0+B6gZHUVcl/4c99PtWGpC666SZnYguJOzIHFCODr1L2pkG9S1ZXN+9ynMDM9o+fhdpk97tnslZv2+/7nbVihMWybxp00FMfebtnWLkpq+0ElP3a4k1UX1JWr8gSqVrmUIcPhVhH0TzpXLZZGrgKMaIQgNUCPzGgajRqsCdHCMhh/taS9pNCRnRsLRAJcozlYtt3+gTdL4VZQX5z1rFiJZfndCMQTDCG656/Tf7uJ5HKodxQw4NYGKZ1EwZH6nEPy2m27xXrxp1Nw/MisM/xMdC+1RiSuMgz0C9hPoEFB71+BkA0R/8vgaY+nXV0CjpOkE+UJzppNut64deSRtykbjE/bFSIqjL3QDw6gD9GjKXZWAwxLMY8y+3XOfIAGrn2ElQwxIOkgkx54GoKpbnhaIv/eOVBJYPAin85wQPxJJbhT5dLRwk4kS+wSf3AT4n4pSzN9q+nLAJXuOufZ4CDjkqrwVwP1PuYi8jXOJJsuUlPGDSFXss9FvolfSRHV2yY6dRpS/zkC5YBPXiwgfb4Sn7Llc5PcA27aSGrOgm6Z+fNji6B2oT41TTZE34Zj8vN1VKlusjXNv4kMNZEW86W/WJOU/nibXoF9I3ti3J/l3bax3OZueB7qOcf4eO3XgGrRS/MvK0kkq0HuscejOw/O661zDfu35zjbO+uGyJ3TBb/7P7fenjFAyO8o95AAmRtqW2Iak8qVndA/JRUSu/h7IJ/lv/n7otsBvgNY8Z5WO2FF/OKTbl0+uRTk7ATzfSIlTg4dIAG67Mf2u2P9tRIGq3ck2/BNPopgwE4BPkR4KwdzTV1Nhq3p/ib8sd3InOhxqz6oMjXMrjF77MTkxaSGmX9Uj0fSKUuwy+O/U43IfgLnXuo+rB7s4ECV6CF+PvHRA37l3pKiGc/5/E9jopn43A32+nzfM4cMcR52oNLVIBb3GXDX3j5nqtXwm19EXg4ZGLriJ8I3oqrtuxhPLBF32K6aa+WbkCM2GNDKB27v6gl5sXEXIOEQ6E+aLWlMtS/nMhS1m4uEIEimNI8gmyU1ECaOSHW1zotuf8ZC6oLAEvGrsQntENJC5m4yKIhE7JK7CA0yqhU4HJJ0XHKOn4u8LQfaj5m+XzKvW4QnVCsRrLv4j+iYLfGwANtHR+MWukSRBZpaSYvYbXgrD/ZWkg4va+jROoYKQLf5ghMOCQBj5f5Qr4MlM4egzyYen6Q13BNpSQnCFyFR25iB3OhFC2LQ3xtZ5UEOakRqX/CpvqOl/GgVR2woImf+O9ztc4voHePeNPQrtET/BPad2MrvkHTGxTyAFLWxO+c3t6xDbd2peUYWrvmpi+FwrOJwhBm3YTSvr7o8apxpttH7o/R0unWKtjp0HPoT3gbLuI0At6GNeXKItg7Z6ikXMwNaVd2vduoHCjMsDaW3CHYjcOnRZ2SAw1H1snQ1DB1S9Yr/IWi0Kyc=","X-OriginatorOrg":"altera.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n be4abe62-efa1-4ad0-1711-08de91285079","X-MS-Exchange-CrossTenant-AuthSource":"PH7PR03MB7063.namprd03.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Internal","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"03 Apr 2026 02:25:46.9894 (UTC)","X-MS-Exchange-CrossTenant-FromEntityHeader":"Hosted","X-MS-Exchange-CrossTenant-Id":"fbd72e03-d4a5-4110-adce-614d51f2077a","X-MS-Exchange-CrossTenant-MailboxType":"HOSTED","X-MS-Exchange-CrossTenant-UserPrincipalName":"\n upz9YrQTBvmXGwhZ/EkORMUV2TyC2t3auppwHRFabOBfy1GqOmAQHIlWhkxJ+PMmd9ofccPtS632fY7/VJT6fKr0XNfEqa5+lJfDJa/p9eU=","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"BN8PR03MB5044","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"From: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>\n\nMigrate the CCU, firewall, and high privilege register configurations from\nhardcoded values in the source code to the device tree.\n\nThis helps to centralize hardware configuration, improves maintainability,\nand allows easier customization for different platforms.\n\nSigned-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>\n---\n arch/arm/dts/socfpga_stratix10-u-boot.dtsi | 149 +++++++++++++++++++++\n arch/arm/mach-socfpga/spl_s10.c            |  29 ++--\n drivers/ddr/altera/sdram_s10.c             |  44 ------\n 3 files changed, 165 insertions(+), 57 deletions(-)","diff":"diff --git a/arch/arm/dts/socfpga_stratix10-u-boot.dtsi b/arch/arm/dts/socfpga_stratix10-u-boot.dtsi\nindex a3b4c0564f9..ad4b383f704 100644\n--- a/arch/arm/dts/socfpga_stratix10-u-boot.dtsi\n+++ b/arch/arm/dts/socfpga_stratix10-u-boot.dtsi\n@@ -6,6 +6,7 @@\n  * Copyright (C) 2026 Altera Corporation <www.altera.com>\n  */\n \n+#include \"socfpga_soc64_u-boot.dtsi\"\n #include \"socfpga_soc64_fit-u-boot.dtsi\"\n \n /{\n@@ -134,6 +135,154 @@\n \tbootph-all;\n };\n \n+&socfpga_l3interconnect_firewall {\n+\ti_ccu_noc_registers@f7000000 {\n+\t\treg = <0xf7000000 0x00049e60>;\n+\t\tintel,offset-settings =\n+\t\t\t/* Enable access to DDR reg from CPU */\n+\t\t\t<0x0004400 0xF8000000 0xffffffff>,\n+\n+\t\t\t/* Enable access to DDR region from CPU */\n+\t\t\t<0x00045c0 0x00000000 0xffffffdf>,\n+\t\t\t<0x00045e0 0x00000000 0xffffffdf>,\n+\t\t\t<0x0004600 0x00000000 0xffffffdf>,\n+\t\t\t<0x0004620 0x00000000 0xffffffdf>,\n+\t\t\t<0x0004640 0x00000000 0xffffffdf>,\n+\t\t\t<0x0004660 0x00000000 0xffffffdf>,\n+\n+\t\t\t/* Disable ocram security at CCU for non secure access */\n+\t\t\t<0x0004688 0xfffc0000 0xffffffcf>,\n+\t\t\t<0x0018628 0xfffc0000 0xffffffcf>,\n+\n+\t\t\t/* Enable access to DDR region from IO master */\n+\t\t\t<0x00018560 0x00000000 0xffffffdf>,\n+\t\t\t<0x00018580 0x00000000 0xffffffdf>,\n+\t\t\t<0x000185a0 0x00000000 0xffffffdf>,\n+\t\t\t<0x000185c0 0x00000000 0xffffffdf>,\n+\t\t\t<0x000185e0 0x00000000 0xffffffdf>,\n+\t\t\t<0x00018600 0x00000000 0xffffffdf>,\n+\n+\t\t\t/* Enable access to DDR region from TCU */\n+\t\t\t<0x0002c520 0x00000000 0xffffffdf>,\n+\t\t\t<0x0002c540 0x00000000 0xffffffdf>,\n+\t\t\t<0x0002c560 0x00000000 0xffffffdf>,\n+\t\t\t<0x0002c580 0x00000000 0xffffffdf>,\n+\t\t\t<0x0002c5a0 0x00000000 0xffffffdf>,\n+\t\t\t<0x0002c5c0 0x00000000 0xffffffdf>,\n+\n+\t\t\t/* Enable access to DDR region from FPGA */\n+\t\t\t<0x000105a0 0x00000000 0xffffffdf>,\n+\t\t\t<0x000105c0 0x00000000 0xffffffdf>,\n+\t\t\t<0x000105e0 0x00000000 0xffffffdf>,\n+\t\t\t<0x00010600 0x00000000 0xffffffdf>,\n+\t\t\t<0x00010620 0x00000000 0xffffffdf>,\n+\t\t\t<0x00010640 0x00000000 0xffffffdf>;\n+\t\tbootph-all;\n+\t};\n+\n+\t/*\n+\t * Both firewall and QOS regs accessed by CPU in MPFE has\n+\t * dependency on CCU configuration above.\n+\t *\n+\t * Below are all fpga2sdram firewall settings with default\n+\t * reset value for the sake of easy reference by users.\n+\t * Users may choose to remove any of these register configurations\n+\t * that they do not require in their specific implementation.\n+\t */\n+\tsoc_noc_fw_ddr_fpga2sdram_inst_0_ddr_scr@f8020200 {\n+\t\treg = <0xf8020200 0x00000050>;\n+\t\tintel,offset-settings =\n+\t\t\t<0x0000000 0x00000000 0x0000000f>,\n+\t\t\t<0x0000004 0x00000000 0x0000000f>,\n+\t\t\t<0x0000008 0x00000000 0x0000000f>,\n+\t\t\t<0x0000010 0x00000000 0xffff0000>,\n+\t\t\t<0x0000014 0x00000000 0x0000001f>,\n+\t\t\t<0x0000018 0x00000000 0xffff0000>,\n+\t\t\t<0x000001c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000020 0x00000000 0xffff0000>,\n+\t\t\t<0x0000024 0x00000000 0x0000001f>,\n+\t\t\t<0x0000028 0x00000000 0xffff0000>,\n+\t\t\t<0x000002c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000030 0x00000000 0xffff0000>,\n+\t\t\t<0x0000034 0x00000000 0x0000001f>,\n+\t\t\t<0x0000038 0x00000000 0xffff0000>,\n+\t\t\t<0x000003c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000040 0x00000000 0xffff0000>,\n+\t\t\t<0x0000044 0x00000000 0x0000001f>,\n+\t\t\t<0x0000048 0x00000000 0xffff0000>,\n+\t\t\t<0x000004c 0x00000000 0x0000001f>;\n+\t\tbootph-all;\n+\t};\n+\n+\tsoc_noc_fw_ddr_fpga2sdram_inst_1_ddr_scr@f8020300 {\n+\t\treg = <0xf8020300 0x00000050>;\n+\t\tintel,offset-settings =\n+\t\t\t<0x0000000 0x00000000 0x0000000f>,\n+\t\t\t<0x0000004 0x00000000 0x0000000f>,\n+\t\t\t<0x0000008 0x00000000 0x0000000f>,\n+\t\t\t<0x0000010 0x00000000 0xffff0000>,\n+\t\t\t<0x0000014 0x00000000 0x0000001f>,\n+\t\t\t<0x0000018 0x00000000 0xffff0000>,\n+\t\t\t<0x000001c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000020 0x00000000 0xffff0000>,\n+\t\t\t<0x0000024 0x00000000 0x0000001f>,\n+\t\t\t<0x0000028 0x00000000 0xffff0000>,\n+\t\t\t<0x000002c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000030 0x00000000 0xffff0000>,\n+\t\t\t<0x0000034 0x00000000 0x0000001f>,\n+\t\t\t<0x0000038 0x00000000 0xffff0000>,\n+\t\t\t<0x000003c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000040 0x00000000 0xffff0000>,\n+\t\t\t<0x0000044 0x00000000 0x0000001f>,\n+\t\t\t<0x0000048 0x00000000 0xffff0000>,\n+\t\t\t<0x000004c 0x00000000 0x0000001f>;\n+\t\tbootph-all;\n+\t};\n+\n+\tsoc_noc_fw_ddr_fpga2sdram_inst_2_ddr_scr@f8020400 {\n+\t\treg = <0xf8020400 0x00000050>;\n+\t\tintel,offset-settings =\n+\t\t\t<0x0000000 0x00000000 0x0000000f>,\n+\t\t\t<0x0000004 0x00000000 0x0000000f>,\n+\t\t\t<0x0000008 0x00000000 0x0000000f>,\n+\t\t\t<0x0000010 0x00000000 0xffff0000>,\n+\t\t\t<0x0000014 0x00000000 0x0000001f>,\n+\t\t\t<0x0000018 0x00000000 0xffff0000>,\n+\t\t\t<0x000001c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000020 0x00000000 0xffff0000>,\n+\t\t\t<0x0000024 0x00000000 0x0000001f>,\n+\t\t\t<0x0000028 0x00000000 0xffff0000>,\n+\t\t\t<0x000002c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000030 0x00000000 0xffff0000>,\n+\t\t\t<0x0000034 0x00000000 0x0000001f>,\n+\t\t\t<0x0000038 0x00000000 0xffff0000>,\n+\t\t\t<0x000003c 0x00000000 0x0000001f>,\n+\t\t\t<0x0000040 0x00000000 0xffff0000>,\n+\t\t\t<0x0000044 0x00000000 0x0000001f>,\n+\t\t\t<0x0000048 0x00000000 0xffff0000>,\n+\t\t\t<0x000004c 0x00000000 0x0000001f>;\n+\t\tbootph-all;\n+\t};\n+\n+\t/*\n+\t * Example of ccu_mem0_I_main QOS settings with\n+\t * default reset value for the sake of easy reference\n+\t * by users. Users may choose to remove any of these register\n+\t * configurations that they do not require in their specific\n+\t * implementation.\n+\t */\n+\tsoc_ddr_scheduler_inst_0_ccu_mem0_I_main_QosGenerator@f8022080 {\n+\t\treg = <0xf8022080 0x0000001c>;\n+\t\tintel,offset-settings =\n+\t\t\t<0x0000008 0x00000000 0x00000303>,\n+\t\t\t<0x000000c 0x00000001 0x00000003>,\n+\t\t\t<0x0000010 0x00000BFE 0x00001fff>,\n+\t\t\t<0x0000014 0x00000008 0x000003ff>,\n+\t\t\t<0x0000018 0x00000000 0x00000007>;\n+\t\tbootph-all;\n+\t};\n+};\n+\n &uart0 {\n \tbootph-all;\n \tclock-frequency = <100000000>;\ndiff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c\nindex a0d3c96d456..8ab80740c6e 100644\n--- a/arch/arm/mach-socfpga/spl_s10.c\n+++ b/arch/arm/mach-socfpga/spl_s10.c\n@@ -25,6 +25,7 @@ void board_init_f(ulong dummy)\n {\n \tconst struct cm_config *cm_default_cfg = cm_get_default_config();\n \tint ret;\n+\tstruct udevice *dev;\n \n \tret = spl_early_init();\n \tif (ret)\n@@ -67,22 +68,24 @@ void board_init_f(ulong dummy)\n \tprint_reset_info();\n \tcm_print_clock_quick_summary();\n \n-\tfirewall_setup();\n+\tret = uclass_get_device_by_name(UCLASS_NOP, \"socfpga-system-mgr-firewall\", &dev);\n+\tif (ret) {\n+\t\tprintf(\"System manager firewall configuration failed: %d\\n\", ret);\n+\t\thang();\n+\t}\n \n-\t/* disable ocram security at CCU for non secure access */\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADMASK_MEM_RAM0),\n-\t\t     CCU_ADMASK_P_MASK | CCU_ADMASK_NS_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADMASK_MEM_RAM0),\n-\t\t     CCU_ADMASK_P_MASK | CCU_ADMASK_NS_MASK);\n+\tret = uclass_get_device_by_name(UCLASS_NOP, \"socfpga-l3interconnect-firewall\", &dev);\n+\tif (ret) {\n+\t\tprintf(\"L3 interconnect firewall configuration failed: %d\\n\", ret);\n+\t\thang();\n+\t}\n \n #if CONFIG_IS_ENABLED(ALTERA_SDRAM)\n-\t\tstruct udevice *dev;\n-\n-\t\tret = uclass_get_device(UCLASS_RAM, 0, &dev);\n-\t\tif (ret) {\n-\t\t\tdebug(\"DRAM init failed: %d\\n\", ret);\n-\t\t\thang();\n-\t\t}\n+\tret = uclass_get_device(UCLASS_RAM, 0, &dev);\n+\tif (ret) {\n+\t\tdebug(\"DRAM init failed: %d\\n\", ret);\n+\t\thang();\n+\t}\n #endif\n \n #ifdef CONFIG_CADENCE_QSPI\ndiff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c\nindex 4ac4c79e0ac..1497a8e4aab 100644\n--- a/drivers/ddr/altera/sdram_s10.c\n+++ b/drivers/ddr/altera/sdram_s10.c\n@@ -78,50 +78,6 @@ int sdram_mmr_init_full(struct udevice *dev)\n \tphys_size_t hw_size;\n \tstruct bd_info bd = {0};\n \n-\t/* Enable access to DDR from CPU master */\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_DDRREG),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_MEMSPACE0),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_MEMSPACE1A),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_MEMSPACE1B),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_MEMSPACE1C),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_MEMSPACE1D),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_CPU0_MPRT_ADBASE_MEMSPACE1E),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\n-\t/* Enable access to DDR from IO master */\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADBASE_MEMSPACE0),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADBASE_MEMSPACE1A),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADBASE_MEMSPACE1B),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADBASE_MEMSPACE1C),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADBASE_MEMSPACE1D),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_IOM_MPRT_ADBASE_MEMSPACE1E),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\n-\t/* Enable access to DDR from TCU */\n-\tclrbits_le32(CCU_REG_ADDR(CCU_TCU_MPRT_ADBASE_MEMSPACE0),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_TCU_MPRT_ADBASE_MEMSPACE1A),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_TCU_MPRT_ADBASE_MEMSPACE1B),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_TCU_MPRT_ADBASE_MEMSPACE1C),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_TCU_MPRT_ADBASE_MEMSPACE1D),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\tclrbits_le32(CCU_REG_ADDR(CCU_TCU_MPRT_ADBASE_MEMSPACE1E),\n-\t\t     CCU_ADBASE_DI_MASK);\n-\n \t/* this enables nonsecure access to DDR */\n \t/* mpuregion0addr_limit */\n \tFW_MPU_DDR_SCR_WRITEL(0xFFFF0000, FW_MPU_DDR_SCR_MPUREGION0ADDR_LIMIT);\n","prefixes":["v1","3/9"]}