All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] linux/sizes.h: add SZ_8G for 1GB RAM size
@ 2025-07-16  7:37 Christian Marangi
  2025-07-16  7:37 ` [PATCH 2/2] airoha: rework RAM size handling to support multiple " Christian Marangi
  2025-07-16 11:47 ` [PATCH 1/2] linux/sizes.h: add SZ_8G for 1GB " Bryan Brattlof
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Marangi @ 2025-07-16  7:37 UTC (permalink / raw)
  To: Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Christian Marangi, u-boot

Add additional macro to handle a 1GB RAM size in 8Gb.

Drop the redundant entry from the Mediatek arch.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 arch/arm/mach-mediatek/mt7988/init.c | 2 --
 include/linux/sizes.h                | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-mediatek/mt7988/init.c b/arch/arm/mach-mediatek/mt7988/init.c
index 2efc8c6a88f..2b6f38983af 100644
--- a/arch/arm/mach-mediatek/mt7988/init.c
+++ b/arch/arm/mach-mediatek/mt7988/init.c
@@ -12,8 +12,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define SZ_8G				_AC(0x200000000, ULL)
-
 int dram_init(void)
 {
 	int ret;
diff --git a/include/linux/sizes.h b/include/linux/sizes.h
index fbde0bc7e88..35a23d714b7 100644
--- a/include/linux/sizes.h
+++ b/include/linux/sizes.h
@@ -47,5 +47,6 @@
 #define SZ_2G				0x80000000
 
 #define SZ_4G				_AC(0x100000000, ULL)
+#define SZ_8G				_AC(0x200000000, ULL)
 
 #endif /* __LINUX_SIZES_H__ */
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-22 19:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16  7:37 [PATCH 1/2] linux/sizes.h: add SZ_8G for 1GB RAM size Christian Marangi
2025-07-16  7:37 ` [PATCH 2/2] airoha: rework RAM size handling to support multiple " Christian Marangi
2025-07-22 19:00   ` Christian Marangi
2025-07-16 11:47 ` [PATCH 1/2] linux/sizes.h: add SZ_8G for 1GB " Bryan Brattlof

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.