]> Git Repo - J-u-boot.git/commitdiff
fpga: arria10: Fix error in fpga pin configuration
authorDalon Westergreen <[email protected]>
Tue, 16 Jul 2019 16:28:10 +0000 (09:28 -0700)
committerMarek Vasut <[email protected]>
Sun, 21 Jul 2019 10:47:13 +0000 (12:47 +0200)
Pin configuration of the FPGA devicetree block should be done
after core configuration in the arria10 fpga driver.  This fix
corrects the check of status, and ensures that the fpga pin mux
is configured on correct configuration of the core fpga image.

Signed-off-by: Dalon Westergreen <[email protected]>
drivers/fpga/socfpga_arria10.c

index 285280e507fb5f9568fe68218b2b3ce943becc8f..5fb9d6a1911a1148ef5a634759ae5a8ca2d45783 100644 (file)
@@ -936,10 +936,11 @@ int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size)
        fpgamgr_program_write(rbf_data, rbf_size);
 
        status = fpgamgr_program_finish();
-       if (status) {
-               config_pins(gd->fdt_blob, "fpga");
-               puts("FPGA: Enter user mode.\n");
-       }
+       if (status)
+               return status;
+
+       config_pins(gd->fdt_blob, "fpga");
+       puts("FPGA: Enter user mode.\n");
 
        return status;
 }
This page took 0.043589 seconds and 4 git commands to generate.