]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ram: starfive: use SZ_8G for 8GB memory size
authorE Shattow <e@freeshell.de>
Thu, 30 Oct 2025 06:23:33 +0000 (23:23 -0700)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 8 Dec 2025 04:10:30 +0000 (12:10 +0800)
Replace numeric literal with SZ_8G consistent with other uses of types
from linux/types.h

Signed-off-by: E Shattow <e@freeshell.de>
Acked-by: Hal Feng <hal.feng@starfivetech.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/ram/starfive/starfive_ddr.c

index 9e902f03ee9ae3b6e3f2b8c2d16a0257e406b8d7..f030192f6f428f8600e97ddd64545072d82ee066 100644 (file)
@@ -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;