summaryrefslogtreecommitdiff
path: root/board/renesas/ulcb/ulcb.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-12-04 01:44:34 +0100
committerMarek Vasut <marex@denx.de>2018-12-04 09:21:07 +0100
commit04513805054478aa024b6c67cb1dcdcd1b37625a (patch)
tree9b4ad5eb1b01e2e418c490afd00a3ba2ca9de4cb /board/renesas/ulcb/ulcb.c
parent14ebe87b58f759c395512e01e592a96abe62c3b6 (diff)
ARM: dts: Turn ULCB into Multi-DTB config
Bundle DTBs for R8A7795, R8A7796 ULCB variants into single U-Boot build and let U-Boot choose between them based on the CPU model. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'board/renesas/ulcb/ulcb.c')
-rw-r--r--board/renesas/ulcb/ulcb.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c
index 628c5364b8..81d6f8f6f2 100644
--- a/board/renesas/ulcb/ulcb.c
+++ b/board/renesas/ulcb/ulcb.c
@@ -82,3 +82,21 @@ int dram_init_banksize(void)
return 0;
}
+
+#ifdef CONFIG_MULTI_DTB_FIT
+int board_fit_config_name_match(const char *name)
+{
+ /* PRR driver is not available yet */
+ u32 cpu_type = rmobile_get_cpu_type();
+
+ if ((cpu_type == RMOBILE_CPU_TYPE_R8A7795) &&
+ !strcmp(name, "r8a7795-h3ulcb-u-boot"))
+ return 0;
+
+ if ((cpu_type == RMOBILE_CPU_TYPE_R8A7796) &&
+ !strcmp(name, "r8a7796-m3ulcb-u-boot"))
+ return 0;
+
+ return -1;
+}
+#endif