Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EF57C4167B for ; Fri, 1 Dec 2023 17:08:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 854C6870D5; Fri, 1 Dec 2023 18:08:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id E7602870A0; Fri, 1 Dec 2023 18:08:09 +0100 (CET) Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 824E3870D5 for ; Fri, 1 Dec 2023 18:08:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francesco@dolcini.it Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id DED13221C6; Fri, 1 Dec 2023 18:08:04 +0100 (CET) Date: Fri, 1 Dec 2023 18:08:00 +0100 From: Francesco Dolcini To: Bryan Brattlof Cc: Apurva Nandan , Hari Nagalla , Lukasz Majewski , Sean Anderson , Jaehoon Chung , Neha Malcom Francis , Simon Glass , Andrew Davis , Kamlesh Gurudasani , Dasnavis Sabiya , Manorit Chawdhry , Aradhya Bhatia , Christian Gmeiner , Nishanth Menon , Heinrich Schuchardt , Marcel Ziswiler , Roger Quadros , Jayesh Choudhary , Ralph Siemsen , Yanhong Wang , Marek Vasut , Rasmus Villemoes , u-boot@lists.denx.de, Sinthu Raja M , Udit Kumar Subject: Re: [PATCH v5 04/17] arm: mach-k3: Add basic support for J784S4 SoC definition Message-ID: References: <20231130115552.3580995-1-a-nandan@ti.com> <20231130115552.3580995-5-a-nandan@ti.com> <20231201163755.p5tmttmjyo7pnnk3@bryanbrattlof.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201163755.p5tmttmjyo7pnnk3@bryanbrattlof.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean On Fri, Dec 01, 2023 at 10:37:55AM -0600, Bryan Brattlof wrote: > On November 30, 2023 thus sayeth Apurva Nandan: > > Add J784S4 initialization files for initial SPL boot. > > > > Signed-off-by: Hari Nagalla > > [ add firewall configurations and change the R5 MCU scratchpad ] > > Signed-off-by: Manorit Chawdhry > > Signed-off-by: Dasnavis Sabiya > > Signed-off-by: Apurva Nandan > > --- > > arch/arm/mach-k3/Kconfig | 16 +- > > arch/arm/mach-k3/Makefile | 2 + > > arch/arm/mach-k3/arm64-mmu.c | 52 +++ > > arch/arm/mach-k3/include/mach/hardware.h | 4 + > > .../mach-k3/include/mach/j784s4_hardware.h | 60 ++++ > > arch/arm/mach-k3/include/mach/j784s4_spl.h | 47 +++ > > arch/arm/mach-k3/include/mach/spl.h | 4 + > > arch/arm/mach-k3/j784s4_fdt.c | 15 + > > arch/arm/mach-k3/j784s4_init.c | 338 ++++++++++++++++++ > > arch/arm/mach-k3/r5/Makefile | 1 + > > 10 files changed, 532 insertions(+), 7 deletions(-) > > create mode 100644 arch/arm/mach-k3/include/mach/j784s4_hardware.h > > create mode 100644 arch/arm/mach-k3/include/mach/j784s4_spl.h > > create mode 100644 arch/arm/mach-k3/j784s4_fdt.c > > create mode 100644 arch/arm/mach-k3/j784s4_init.c > > > > ... > > > + if (IS_ENABLED(CONFIG_TARGET_J784S4_R5_EVM)) { > > + ret = uclass_get_device_by_name(UCLASS_MISC, "msmc", &dev); > > + if (ret) > > + panic("Probe of msmc failed: %d\n", ret); > > + > > + ret = uclass_get_device(UCLASS_RAM, 0, &dev); > > + if (ret) > > + panic("DRAM 0 init failed: %d\n", ret); > > + > > + ret = uclass_next_device_err(&dev); > > + if (ret) > > + panic("DRAM 1 init failed: %d\n", ret); > > + > > + ret = uclass_next_device_err(&dev); > > + if (ret) > > + panic("DRAM 2 init failed: %d\n", ret); > > + > > + ret = uclass_next_device_err(&dev); > > + if (ret) > > + panic("DRAM 3 init failed: %d\n", ret); > > + } > > I don't know if this is is the right approach. I can see situations > where people will not have all these controllers utilized or would want > to artificially remove them for some reason. Not sure on the exact implication, but yes, you should expect customers (like myself/my company) integrating the SoC into some board to not necessarily use all the functionalities, memory controller included. Francesco