[PATCH 02/12] rockchip: rk3399-gru: Use SYS_SPI_U_BOOT_OFFS value in offset prop

Kever Yang kever.yang at rock-chips.com
Fri Jan 3 07:43:45 CET 2025


On 2024/12/13 07:57, Jonas Karlman wrote:
> Use the offset configured with SYS_SPI_U_BOOT_OFFS Kconfig option
> instead of a hardcoded 0x40000 for the FIT payload offset.
>
> This has no intended impact as SYS_SPI_U_BOOT_OFFS=0x40000.
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/dts/rk3399-gru-u-boot.dtsi | 2 +-
>   arch/arm/dts/rk3399-u-boot.dtsi     | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/dts/rk3399-gru-u-boot.dtsi b/arch/arm/dts/rk3399-gru-u-boot.dtsi
> index 6bdc892bd913..2505d9b01b8a 100644
> --- a/arch/arm/dts/rk3399-gru-u-boot.dtsi
> +++ b/arch/arm/dts/rk3399-gru-u-boot.dtsi
> @@ -11,7 +11,7 @@
>   	};
>   
>   	config {
> -		u-boot,spl-payload-offset = <0x40000>;
> +		u-boot,spl-payload-offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
>   	};
>   };
>   
> diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi
> index 2bec139d8338..81a3c6fc972b 100644
> --- a/arch/arm/dts/rk3399-u-boot.dtsi
> +++ b/arch/arm/dts/rk3399-u-boot.dtsi
> @@ -43,7 +43,7 @@
>   			};
>   		};
>   		u-boot-img {
> -			offset = <0x40000>;
> +			offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
>   		};
>   		u-boot {
>   			offset = <0x300000>;


More information about the U-Boot mailing list