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 5967DEB64DA for ; Wed, 12 Jul 2023 14:26:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 666CE86A91; Wed, 12 Jul 2023 16:26:04 +0200 (CEST) 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 AB1CD86AA0; Wed, 12 Jul 2023 16:26:02 +0200 (CEST) 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 82B1A86A84 for ; Wed, 12 Jul 2023 16:26:00 +0200 (CEST) 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 (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id AC3172034F; Wed, 12 Jul 2023 16:25:59 +0200 (CEST) Date: Wed, 12 Jul 2023 16:25:55 +0200 From: Francesco Dolcini To: Andrew Davis Cc: Francesco Dolcini , u-boot@lists.denx.de, Tom Rini , Emanuele Ghidoli , Vignesh Raghavendra , Francesco Dolcini Subject: Re: [PATCH v1 2/3] arm: mach-k3: am62: Add CTRLMMR_WKUP_JTAG_DEVICE_ID register definition Message-ID: References: <20230712134730.30229-1-francesco@dolcini.it> <20230712134730.30229-3-francesco@dolcini.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Jul 12, 2023 at 09:18:42AM -0500, Andrew Davis wrote: > On 7/12/23 8:47 AM, Francesco Dolcini wrote: > > From: Emanuele Ghidoli > > > > Add register address and relevant bitmasks and shifts. > > Allow reading these information: > > - device identification > > - number of cores (part of device identification) > > - features (currently: PRU / no PRU) > > - security > > - functional safety > > - speed grade > > - temperature grade > > - package > > > > Signed-off-by: Emanuele Ghidoli > > Signed-off-by: Francesco Dolcini > > --- > > arch/arm/mach-k3/include/mach/am62_hardware.h | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/arch/arm/mach-k3/include/mach/am62_hardware.h b/arch/arm/mach-k3/include/mach/am62_hardware.h > > index 88d58947269a..d67045a697df 100644 > > --- a/arch/arm/mach-k3/include/mach/am62_hardware.h > > +++ b/arch/arm/mach-k3/include/mach/am62_hardware.h > > @@ -20,6 +20,24 @@ > > #define MCU_CTRL_MMR0_BASE 0x04500000 > > #define WKUP_CTRL_MMR0_BASE 0x43000000 > > +#define CTRLMMR_WKUP_JTAG_DEVICE_ID (WKUP_CTRL_MMR0_BASE + 0x18) > > We have similar defines in arch/arm/mach-k3/include/mach/hardware.h, > if these are common that might be a better spot. I do not have complete visibility on the whole k3 architecture and I can only test on AM62. From what we were able to understand AM65 has the exact same register, but the actual content is just different. Should we just move CTRLMMR_WKUP_JTAG_DEVICE_ID to mach-k3/include/mach/hardware.h ? Francesco