Commit
c6a51bab174ecb4c6bebfada951ac556ffc13fcd
Exists in
v2017.01-smarct4x
and in
26 other branches
8qm-imx_v2020.04_5.4.70_2.3.0, emb_lf_v2022.04, emb_lf_v2023.04, pitx_8mp_lf_v2020.04, smarc-8m-android-10.0.0_2.6.0, smarc-8m-android-11.0.0_2.0.0, smarc-8mp-android-11.0.0_2.0.0, smarc-imx6_v2018.03_4.14.98_2.0.0_ga, smarc-imx7_v2017.03_4.9.11_1.0.0_ga, smarc-imx7_v2018.03_4.14.98_2.0.0_ga, smarc-imx_v2017.03_4.9.11_1.0.0_ga, smarc-imx_v2017.03_4.9.88_2.0.0_ga, smarc-imx_v2017.03_o8.1.0_1.3.0_8m, smarc-imx_v2018.03_4.14.78_1.0.0_ga, smarc-n7.1.2_2.0.0-ga, smarc_8m-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8m-imx_v2019.04_4.19.35_1.1.0, smarc_8m_00d0-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8mm-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2020.04_5.4.24_2.1.0, smarc_8mp_lf_v2020.04, smarc_8mq-imx_v2020.04_5.4.24_2.1.0, smarc_8mq_lf_v2020.04, v2017.01-smarct3x, v2017.01-smarct3x-emmc
bx50v3: Use imx_ddr_size() for calculating the DDR size
imx_ddr_size() can be used to calculate the DDR size in runtime.
By using this function we no longer need to define PHYS_SDRAM_SIZE.
Cc: Martin Donnelly <martin.donnelly@ge.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Showing
2 changed files
with
1 additions
and
3 deletions
Side-by-side Diff
... |
... |
@@ -60,7 +60,7 @@ |
60
|
60 |
|
61
|
61 |
int dram_init(void) |
62
|
62 |
{ |
63
|
|
- gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); |
|
63 |
+ gd->ram_size = imx_ddr_size(); |
64
|
64 |
|
65
|
65 |
return 0; |
66
|
66 |
} |
... |
... |
@@ -32,8 +32,6 @@ |
32
|
32 |
#define CONFIG_MXC_UART_BASE UART3_BASE |
33
|
33 |
#define CONFIG_CONSOLE_DEV "ttymxc2" |
34
|
34 |
|
35
|
|
-#define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024) |
36
|
|
- |
37
|
35 |
#define CONFIG_SUPPORT_EMMC_BOOT |
38
|
36 |
|
39
|
37 |
|