Skip to content
Snippets Groups Projects
Commit 539800bf authored by Svyatoslav Ryhel's avatar Svyatoslav Ryhel
Browse files

ARM: tegra: board2: add common dtb reselect logic


Add common logic for dynamic dtb switch and DM reload if board
features multi-dtb support.

Signed-off-by: default avatarSvyatoslav Ryhel <clamor95@gmail.com>
parent b515d7ae
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
#include <config.h>
#include <dm.h>
#include <dm/root.h>
#include <env.h>
#include <errno.h>
#include <init.h>
......@@ -457,3 +458,18 @@ phys_addr_t board_get_usable_ram_top(phys_size_t total_size)
return CFG_SYS_SDRAM_BASE + usable_ram_size_below_4g();
}
#if IS_ENABLED(CONFIG_DTB_RESELECT)
int embedded_dtb_select(void)
{
int ret, rescan;
ret = fdtdec_resetup(&rescan);
if (!ret && rescan) {
dm_uninit();
dm_init_and_scan(true);
}
return 0;
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment