[PATCH v2 02/13] imx95/imx94: Remove board_phys_sdram_size from each board
alice.guo at oss.nxp.com
alice.guo at oss.nxp.com
Sat Feb 28 01:22:20 CET 2026
From: Ye Li <ye.li at nxp.com>
Change to use default board_phys_sdram_size implementation in soc.c,
which will call SM API to get DDR size.
If board has special implementation for DDR size, then board_phys_sdram_size
could be implemented in board file to override the default one in soc.c.
Signed-off-by: Ye Li <ye.li at nxp.com>
Signed-off-by: Alice Guo <alice.guo at nxp.com>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
---
board/nxp/imx94_evk/imx94_evk.c | 7 -------
board/nxp/imx95_evk/imx95_evk.c | 7 -------
2 files changed, 14 deletions(-)
diff --git a/board/nxp/imx94_evk/imx94_evk.c b/board/nxp/imx94_evk/imx94_evk.c
index 2aeb21c1de7..4731b79b55d 100644
--- a/board/nxp/imx94_evk/imx94_evk.c
+++ b/board/nxp/imx94_evk/imx94_evk.c
@@ -26,10 +26,3 @@ int board_late_init(void)
return 0;
}
-
-int board_phys_sdram_size(phys_size_t *size)
-{
- *size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE;
-
- return 0;
-}
diff --git a/board/nxp/imx95_evk/imx95_evk.c b/board/nxp/imx95_evk/imx95_evk.c
index 620a69b53e5..99a37e0593f 100644
--- a/board/nxp/imx95_evk/imx95_evk.c
+++ b/board/nxp/imx95_evk/imx95_evk.c
@@ -14,10 +14,3 @@ int board_late_init(void)
return 0;
}
-
-int board_phys_sdram_size(phys_size_t *size)
-{
- *size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE;
-
- return 0;
-}
--
2.43.0
More information about the U-Boot
mailing list