[PATCH v2 1/3] rockchip: bootrom: Sync bootsource id enum from bootrom

Dragan Simic dsimic at manjaro.org
Sun Mar 24 17:20:34 CET 2024


On 2024-03-22 21:50, Jonas Karlman wrote:
> From: Jason Zhu <jason.zhu at rock-chips.com>
> 
> Add more bootsource id:
> 1. BROM_BOOTSOURCE_UNKNOWN
> 2. BROM_BOOTSOURCE_I2C
> 3. BROM_BOOTSOURCE_SPI
> 
> Signed-off-by: Jason Zhu <jason.zhu at rock-chips.com>
> [jonas at kwiboo.se: Update commit message]
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>

Looking good to me.

Reviewed-by: Dragan Simic <dsimic at manjaro.org>

> ---
> v2:
> - New patch
> ---
>  arch/arm/include/asm/arch-rockchip/bootrom.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/include/asm/arch-rockchip/bootrom.h
> b/arch/arm/include/asm/arch-rockchip/bootrom.h
> index 4276a0f6811a..ecf3b4e7428c 100644
> --- a/arch/arm/include/asm/arch-rockchip/bootrom.h
> +++ b/arch/arm/include/asm/arch-rockchip/bootrom.h
> @@ -43,11 +43,14 @@ void back_to_bootrom(enum rockchip_bootrom_cmd 
> brom_cmd);
>   * Boot-device identifiers as used by the BROM
>   */
>  enum {
> +	BROM_BOOTSOURCE_UNKNOWN = 0,
>  	BROM_BOOTSOURCE_NAND = 1,
>  	BROM_BOOTSOURCE_EMMC = 2,
>  	BROM_BOOTSOURCE_SPINOR = 3,
>  	BROM_BOOTSOURCE_SPINAND = 4,
>  	BROM_BOOTSOURCE_SD = 5,
> +	BROM_BOOTSOURCE_I2C = 8,
> +	BROM_BOOTSOURCE_SPI = 9,
>  	BROM_BOOTSOURCE_USB = 10,
>  	BROM_LAST_BOOTSOURCE = BROM_BOOTSOURCE_USB
>  };


More information about the U-Boot mailing list