Skip to contentSkip to conversation

omap3logic: Fix Auto detect Logic PD Models

PATCH In review Adam Ford 2 participants 3 messages Oct 23, 2016 – Nov 2, 2016

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 omap3logic: Fix Auto detect Logic PD Models

The autodetect feature doesn't allow users to specify the device tree. This fix will make it only autodetect if 'fdtimage' is not defined.

board/logicpd/omap3som/omap3logic.c +4 -0
index 3ddeb46..de6a060 100644
@@ -219,6 +219,10 @@ int board_init(void)
 #ifdef CONFIG_BOARD_LATE_INIT
 int board_late_init(void)
 {
+	/* If we do not have an fdtimage, let's autodetect it*/
+	if (getenv("fdtimage"))
+		return 0;
+
 	switch (gd->bd->bi_arch_number) {
 	case MACH_TYPE_DM3730_TORPEDO:
 		setenv("fdtimage", "logicpd-torpedo-37xx-devkit.dtb");
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 omap3logic: Fix Auto detect Logic PD Models

board/logicpd/omap3som/omap3logic.c

Quoted 7 lines · Adam Ford

The autodetect feature doesn't allow users to specify the device tree. This fix will make it only autodetect if 'fdtimage' is not defined.

board/logicpd/omap3som/omap3logic.c +0 -0
index 3ddeb46..de6a060 100644
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161023/787db620/attachment.sig>
#2 lore raw
In reply to Adam Ford

board/logicpd/omap3som/omap3logic.c

Quoted 8 lines · Adam Ford

The autodetect feature doesn't allow users to specify the device tree. This fix will make it only autodetect if 'fdtimage' is not defined.

board/logicpd/omap3som/omap3logic.c +0 -0
index 3ddeb46..de6a060 100644

Applied to u-boot/master (before v2016.11-rc3), thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161102/65f984bc/attachment.sig>