]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: cssi: Remove duplicated FPGA loading sequence on CMPC885
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 3 May 2023 05:46:20 +0000 (07:46 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 4 May 2023 08:58:07 +0000 (10:58 +0200)
A duplicated FPGA loading sequence appears after FPGA reset.

Remove it.

Fixes: dac3c6f625 ("board: cssi: Add new board MCR3000_2G")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
board/cssi/cmpc885/cmpc885.c

index 540b9d3c785d97ef7bb0c8c349b4cb54cb037dff..02da4d9a87ae277f6bad2e90a0f882cc3e9b9d2e 100644 (file)
@@ -896,20 +896,6 @@ int board_early_init_r(void)
                        }
                }
 
-               /* is FPGA firmware loaded ? */
-               if (!(in_be32(&cp->cp_pedat) & 0x00000001)) {
-                       printf("Reloading FPGA firmware\n");
-
-                       /* Load FPGA firmware */
-                       /* Activate PROG_FPGA_FIRMWARE for 1 usec */
-                       clrbits_be32(&cp->cp_pedat, 0x00000002);
-                       udelay(1);
-                       setbits_be32(&cp->cp_pedat, 0x00000002);
-
-                       /* Wait 200ms before checking DONE_FPGA_FIRMWARE */
-                       mdelay(200);
-               }
-
                iop_setup_common();
        } else {
                iop_setup_cmpc885();