arm: socfpga: set the fpga global bit to disable HPS to FPGA signals
authorDinh Nguyen <dinh.linux@gmail.com>
Wed, 6 Jan 2016 19:48:43 +0000 (13:48 -0600)
committerMarek Vasut <marex@denx.de>
Sat, 16 Jan 2016 06:07:22 +0000 (07:07 +0100)
We should be setting the FPGA Interface Group global bit that will correctly
disable all interfaces between the FPGA and HPS.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
drivers/fpga/socfpga.c

index 4448250f5c64a0b1a1605a3d5dbf581891e05a0b..431e159e48c0ba37443057ef4ca68429fb6128d8 100644 (file)
@@ -269,7 +269,7 @@ int socfpga_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size)
        /* Prior programming the FPGA, all bridges need to be shut off */
 
        /* Disable all signals from hps peripheral controller to fpga */
-       writel(0, &sysmgr_regs->fpgaintfgrp_module);
+       writel(0, &sysmgr_regs->fpgaintfgrp_gbl);
 
        /* Disable all signals from FPGA to HPS SDRAM */
 #define SDR_CTRLGRP_FPGAPORTRST_ADDRESS        0x5080