Re: [U-Boot] [PATCH] omap3logic: Fix Auto detect Logic PD Models

2016-10-23 Thread Tom Rini
On Sun, Oct 23, 2016 at 07:39:01AM -0500, Adam Ford wrote:

> The autodetect feature doesn't allow users to specify the device tree.
> This fix will make it only autodetect if 'fdtimage' is not defined.
> 
> Signed-off-by: Adam Ford 
> 
> diff --git a/board/logicpd/omap3som/omap3logic.c 
> b/board/logicpd/omap3som/omap3logic.c
> index 3ddeb46..de6a060 100644

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] omap3logic: Fix Auto detect Logic PD Models

2016-10-23 Thread 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.

Signed-off-by: Adam Ford 

diff --git a/board/logicpd/omap3som/omap3logic.c 
b/board/logicpd/omap3som/omap3logic.c
index 3ddeb46..de6a060 100644
--- a/board/logicpd/omap3som/omap3logic.c
+++ b/board/logicpd/omap3som/omap3logic.c
@@ -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");
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot