]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - board/gateworks/venice/venice.c
imx8m*_venice: move venice to OF_UPSTREAM
[thirdparty/u-boot.git] / board / gateworks / venice / venice.c
index a39ae58c8a09570bfd352a8ea51eeb81ad264e14..f54f1186b68674bdfb2aa6de1a49737d54720508 100644 (file)
@@ -25,12 +25,13 @@ int board_phys_sdram_size(phys_size_t *size)
        return 0;
 }
 
-int board_fit_config_name_match(const char *name)
+int board_fit_config_name_match(const char *path)
 {
-       int i  = 0;
-       const char *dtb;
+       const char *name = path + strlen("freescale/");
        static char init;
+       const char *dtb;
        char buf[32];
+       int i  = 0;
 
        do {
                dtb = eeprom_get_dtb_name(i++, buf, sizeof(buf));
@@ -238,12 +239,12 @@ int ft_board_setup(void *fdt, struct bd_info *bd)
        if (!strncmp(base_model, "GW73", 4)) {
                pcbrev = get_pcb_rev(base_model);
 
-               if (pcbrev > 'B') {
+               if (pcbrev > 'B' && pcbrev < 'E') {
                        printf("adjusting dt for %s\n", base_model);
 
                        /*
-                        * revC replaced PCIe 5-port switch with 4-port
-                        * which changed ethernet1 PCIe GbE
+                        * revC/D/E has PCIe 4-port switch which changes
+                        * ethernet1 PCIe GbE:
                         * from: pcie@0,0/pcie@1,0/pcie@2,4/pcie@6.0
                         *   to: pcie@0,0/pcie@1,0/pcie@2,3/pcie@5.0
                         */