diff options
| author | E Shattow <[email protected]> | 2025-10-29 23:23:33 -0700 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2025-12-08 12:10:30 +0800 |
| commit | e8874f361d6ce38b807d6c124dd51980c0475d46 (patch) | |
| tree | ed2114a2a246b5b6b21592d38733fdb6c17fe08b /drivers/ram | |
| parent | bccbe56710a53c37a98471fd483d1e44e5fb9b21 (diff) | |
ram: starfive: use SZ_8G for 8GB memory size
Replace numeric literal with SZ_8G consistent with other uses of types
from linux/types.h
Signed-off-by: E Shattow <[email protected]>
Acked-by: Hal Feng <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'drivers/ram')
| -rw-r--r-- | drivers/ram/starfive/starfive_ddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
