]> git.sur5r.net Git - u-boot/commitdiff
imx: ventana: fix GW520x external watchdog dt update
authorTim Harvey <tharvey@gateworks.com>
Mon, 15 May 2017 17:05:06 +0000 (10:05 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:24:33 +0000 (11:24 +0200)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c

index c4c2d23532074cfed758b688abf18a92bd08dc23..c26807d4c2883b735f2f0929be131e992d568ee3 100644 (file)
@@ -1203,16 +1203,16 @@ int ft_board_setup(void *blob, bd_t *bd)
                            strstr((const char *)info->model, "SP331-B"))
                                gpio_cfg[board_type].usd_vsel = 0;
 
-                       /* GW520x-E adds WDOG1_B external reset */
-                       if (info->model[4] == '0' && rev < 'E')
-                               ft_delprop_path(blob, WDOG1_PATH,
-                                               "fsl,ext-reset-output");
-
                        /* GW522x-B adds WDOG1_B external reset */
-                       if (info->model[4] == '2' && rev < 'B')
-                               ft_delprop_path(blob, WDOG1_PATH,
-                                               "fsl,ext-reset-output");
+                       ft_delprop_path(blob, WDOG1_PATH,
+                                       "fsl,ext-reset-output");
                }
+
+               /* GW520x-E adds WDOG1_B external reset */
+               else if (info->model[4] == '0' && rev < 'E')
+                       ft_delprop_path(blob, WDOG1_PATH,
+                                       "fsl,ext-reset-output");
+
                break;
 
        case GW53xx: