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 C5D87C74A5B for ; Thu, 30 Mar 2023 04:57:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 75B7185D6B; Thu, 30 Mar 2023 06:57:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1680152261; bh=1RQkC12qZLNI58DGqtRY8wm1KVkUMPJZc6sdeLcWapQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QIcxAN+tDiYJlcbuasK4kVKCT6ORTQsOdvXh2OHG6V9l8QJEJDCSrAOls4DNudX+S JN/1xT2wzT05cAwVOyn5Hc1dqTYonl51E1eDTWWuobWMtuCO1wS2f70R0d7LHjFhD/ +rsmDoEbe+fGOmZLO5wdw79NUJ3ZdgNA6Eu0zz96KG5wfgl8BIHKqWxpCpP6nYwvhH tQUSQcyQ89I/b4yAqvNE7nTdld1yRHBYotlCVBrfIX03YtsND7c17XKPx+2MWU9bFa wXZW6S/lMW3gKhiSAlXc4ocBw/2JbldcR0gdIkBWiP1EX4KjkVP60KbpahiLpFaTTo gE40TkAZrDy9A== Received: by phobos.denx.de (Postfix, from userid 109) id D02C485D8F; Thu, 30 Mar 2023 06:57:10 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:101:465::107]) (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 E5D7B85DAA for ; Thu, 30 Mar 2023 06:57:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4PnB3c0NGNz9sTt; Thu, 30 Mar 2023 06:57:00 +0200 (CEST) Message-ID: Date: Thu, 30 Mar 2023 06:56:59 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v2 u-boot-mvebu 5/6] arm: mvebu: Define all BOOTROM_ERR_MODE_* macros Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: u-boot@lists.denx.de References: <20230304105036.19189-1-pali@kernel.org> <20230329190335.9861-1-pali@kernel.org> <20230329190335.9861-6-pali@kernel.org> From: Stefan Roese In-Reply-To: <20230329190335.9861-6-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4PnB3c0NGNz9sTt 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 3/29/23 21:03, Pali Rohár wrote: > A385 BootROM fills into bits [31:28] of register 0x182d0 tracing value, > which represents in which state BootROM currently is. BootROM fills one > of the possible values: 0x2 (CPU initialization), 0x3 (UART detection), > 0x6 (UART booting), 0x8 (PCI Express booting), 0x9 (parallel or SPI NOR > booting), 0xA (parallel or SPI NAND booting), 0xB (SATA booting) and 0xE > (SD / eMMC booting). > > Meaning of these values matches TRACE_* macros from Marvell soc_spec.h file: > https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/blob/u-boot-2013.01-armada-18.06/tools/marvell/doimage_mv/soc_spec.h > > Signed-off-by: Pali Rohár > Tested-by: Tony Dinh > Tested-by: Martin Rowe Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/include/mach/soc.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h > index b02e30552276..c04fa339c31e 100644 > --- a/arch/arm/mach-mvebu/include/mach/soc.h > +++ b/arch/arm/mach-mvebu/include/mach/soc.h > @@ -128,7 +128,14 @@ > #define BOOTROM_ERR_REG (MVEBU_REGISTER(0x182d0)) > #define BOOTROM_ERR_MODE_OFFS 28 > #define BOOTROM_ERR_MODE_MASK (0xf << BOOTROM_ERR_MODE_OFFS) > +#define BOOTROM_ERR_MODE_MAIN 0x2 > +#define BOOTROM_ERR_MODE_EXEC 0x3 > #define BOOTROM_ERR_MODE_UART 0x6 > +#define BOOTROM_ERR_MODE_PEX 0x8 > +#define BOOTROM_ERR_MODE_NOR 0x9 > +#define BOOTROM_ERR_MODE_NAND 0xA > +#define BOOTROM_ERR_MODE_SATA 0xB > +#define BOOTROM_ERR_MODE_MMC 0xE > #define BOOTROM_ERR_CODE_OFFS 0 > #define BOOTROM_ERR_CODE_MASK (0xf << BOOTROM_ERR_CODE_OFFS) > Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de