From: Ye Li <[email protected]> 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 <[email protected]> Signed-off-by: Alice Guo <[email protected]> --- 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 588aa7548d4..a4b59bb7cea 100644 --- a/board/nxp/imx94_evk/imx94_evk.c +++ b/board/nxp/imx94_evk/imx94_evk.c @@ -32,10 +32,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 ca1d916deab..74a6c14bf6d 100644 --- a/board/nxp/imx95_evk/imx95_evk.c +++ b/board/nxp/imx95_evk/imx95_evk.c @@ -22,10 +22,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

