summaryrefslogtreecommitdiff
path: root/board/technexion/pico-imx7d/pico-imx7d.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2018-06-29 15:19:11 -0300
committerStefano Babic <sbabic@denx.de>2018-07-23 10:59:48 +0200
commitd5b7177f9130d8b66e7f20f71ff358fb5619a13a (patch)
tree26fbe6b8b3cea71caa2a5a3726b871f09c4e35f2 /board/technexion/pico-imx7d/pico-imx7d.c
parent3fbbfed7a86354a51590647bcaf7c65665e81357 (diff)
pico-imx7d: Add SPL support
Convert pico-imx7d to SPL support. There are two variants of pico-imx7d SOMs: - One with 512MB of RAM - One with 1GB of RAM The 512MB module contains two Hynix H5TC2G63GFR-PBA. The 1GB module contains two Hynix H5TC4G63GFR-PBA. The RAM size is determined in runtime by reading GPIO1_12. While at it, also add USB Serial Download mode support as it is very helpful for loading SPL and u-boot.img via imx_usb_loader. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'board/technexion/pico-imx7d/pico-imx7d.c')
-rw-r--r--board/technexion/pico-imx7d/pico-imx7d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index 44c81ecdb3f..0767d0462fe 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -58,7 +58,7 @@ static struct i2c_pads_info i2c_pad_info4 = {
int dram_init(void)
{
- gd->ram_size = PHYS_SDRAM_SIZE;
+ gd->ram_size = imx_ddr_size();
return 0;
}