]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx95/imx94: Remove board_phys_sdram_size from each board
authorYe Li <ye.li@nxp.com>
Mon, 2 Mar 2026 05:20:03 +0000 (13:20 +0800)
committerFabio Estevam <festevam@gmail.com>
Mon, 16 Mar 2026 21:44:00 +0000 (18:44 -0300)
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@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/nxp/imx94_evk/imx94_evk.c
board/nxp/imx95_evk/imx95_evk.c

index 2aeb21c1de7b6345edf604430d697c0e985a49b0..4731b79b55da3d95b586167f3f4eafc056a55559 100644 (file)
@@ -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;
-}
index 620a69b53e5a44fc2a631bf5af4c13dbca735e7f..99a37e0593fc437ba2a558838aafe46a76da53a0 100644 (file)
@@ -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;
-}