diff options
author | Tom Rini <trini@konsulko.com> | 2024-11-30 08:34:45 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-11-30 08:34:45 -0600 |
commit | bf3dfb405ba212752ca9ad103147edd8ba99cd4d (patch) | |
tree | 4dcc75e4b56026dd9ba8f91a9b9051bc2ff8227d /board/data_modul/common/common.c | |
parent | 20f641987f83c4679a1181d79a546a098f11f5ad (diff) | |
parent | 4835efca7a004fab62853f3e6bbd2854d1df503b (diff) |
Merge tag 'u-boot-imx-master-20241130' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/23643
- Make DRAM coding GPIOs available before relocation on Data Modul
i.MX8M Mini/Plus eDM SBC because the DRAM configuration GPIO straps
must be accessible in SPL and before relocation because the GPIOs are
sampled both in U-Boot SPL as well as early on in U-Boot proper.
- Pick safe DRAM size on failure on Data Modul i.MX8M Mini/Plus eDM SBC
instead of failing with hang() or panic().
- Replace YModem with SDP on Data Modul i.MX8M Mini eDM SBC SPL since
SDP is much more flexible.
- Deduplicate Data Modul i.MX8M eDM SBC defconfigs.
- Perform plain boot in altbootcmd on Data Modul i.MX8M Mini/Plus eDM
SBC.
Diffstat (limited to 'board/data_modul/common/common.c')
-rw-r--r-- | board/data_modul/common/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/data_modul/common/common.c b/board/data_modul/common/common.c index b5f83908771..9e35dc5d6cb 100644 --- a/board/data_modul/common/common.c +++ b/board/data_modul/common/common.c @@ -47,6 +47,9 @@ u8 dmo_get_memcfg(void) "dmo,ram-coding-gpios", gpio, ARRAY_SIZE(gpio), GPIOD_IS_IN); + if (ret < 0) + return BIT(2) | BIT(0); + for (i = 0; i < ret; i++) memcfg |= !!dm_gpio_get_value(&(gpio[i])) << i; |