Commit
84c51687a79c4bac514c43c0c3a0118015e6b13c
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
aristainetos: 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: Heiko Schocher <hs@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Heiko Schocher <hs@denx.de>
Showing
2 changed files
with
1 additions
and
2 deletions
Side-by-side Diff
... |
... |
@@ -102,7 +102,7 @@ |
102
|
102 |
|
103
|
103 |
int dram_init(void) |
104
|
104 |
{ |
105
|
|
- gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); |
|
105 |
+ gd->ram_size = imx_ddr_size(); |
106
|
106 |
|
107
|
107 |
return 0; |
108
|
108 |
} |
... |
... |
@@ -17,7 +17,6 @@ |
17
|
17 |
|
18
|
18 |
#define CONFIG_MACH_TYPE 4501 |
19
|
19 |
#define CONFIG_MMCROOT "/dev/mmcblk0p1" |
20
|
|
-#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024) |
21
|
20 |
|
22
|
21 |
/* Size of malloc() pool */ |
23
|
22 |
#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M) |