summaryrefslogtreecommitdiff
path: root/drivers/fpga/socfpga_arria10.c
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2019-05-07 17:42:30 +0800
committerMarek Vasut <marex@denx.de>2019-05-10 22:48:11 +0200
commit1085bb3cbaf8321fdc8d0eaa367192433bd51d44 (patch)
tree099e967755262df7e02f0ce5a23172cfb2373f93 /drivers/fpga/socfpga_arria10.c
parentf61d52926086bf56c870f06ba5e88bdb41ac246e (diff)
downloadu-boot-1085bb3cbaf8321fdc8d0eaa367192433bd51d44.tar.gz
spl: socfpga: Implement fpga bitstream loading with socfpga loadfs
Add support for loading FPGA bitstream to get DDR up running before U-Boot is loaded into DDR. Boot device initialization, generic firmware loader and SPL FAT support are required for this whole mechanism to work. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Diffstat (limited to 'drivers/fpga/socfpga_arria10.c')
-rw-r--r--drivers/fpga/socfpga_arria10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c
index 9df2c430d7..285280e507 100644
--- a/drivers/fpga/socfpga_arria10.c
+++ b/drivers/fpga/socfpga_arria10.c
@@ -69,7 +69,7 @@ static int wait_for_user_mode(void)
1, FPGA_TIMEOUT_MSEC, false);
}
-static int is_fpgamgr_early_user_mode(void)
+int is_fpgamgr_early_user_mode(void)
{
return (readl(&fpga_manager_base->imgcfg_stat) &
ALT_FPGAMGR_IMGCFG_STAT_F2S_EARLY_USERMODE_SET_MSK) != 0;