[PATCH v1 2/3] ram: starfive: use SZ_8G for 8GB memory size
    Hal Feng 
    hal.feng at starfivetech.com
       
    Thu Oct 30 07:31:40 CET 2025
    
    
  
> On 30.10.25 14:24, E Shattow wrote:
> Replace numeric literal with SZ_8G consistent with other uses of types from
> linux/types.h
> 
> Signed-off-by: E Shattow <e at freeshell.de>
Acked-by: Hal Feng <hal.feng at starfivetech.com>
Best regards,
Hal
> ---
>  drivers/ram/starfive/starfive_ddr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ram/starfive/starfive_ddr.c
> b/drivers/ram/starfive/starfive_ddr.c
> index 9e902f03ee9..f030192f6f4 100644
> --- a/drivers/ram/starfive/starfive_ddr.c
> +++ b/drivers/ram/starfive/starfive_ddr.c
> @@ -43,7 +43,7 @@ static int starfive_ddr_setup(struct udevice *dev, struct
> starfive_ddr_priv *pri
>  		size = DDR_SIZE_4G;
>  		break;
> 
> -	case 0x200000000:
> +	case SZ_8G:
>  		size = DDR_SIZE_8G;
>  		break;
> 
> --
> 2.50.0
    
    
More information about the U-Boot
mailing list