[PATCH v2 u-boot-mvebu 5/6] arm: mvebu: Define all BOOTROM_ERR_MODE_* macros

Stefan Roese sr at denx.de
Thu Mar 30 06:56:59 CEST 2023


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 <pali at kernel.org>
> Tested-by: Tony Dinh <mibodhi at gmail.com>
> Tested-by: Martin Rowe <martin.p.rowe at gmail.com>

Reviewed-by: Stefan Roese <sr at denx.de>

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 at denx.de


More information about the U-Boot mailing list