From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dinh Nguyen Date: Mon, 22 May 2017 10:11:51 -0500 Subject: [U-Boot] [PATCH v4 3/5] arm: socfpga: Enable FPGA driver on SPL In-Reply-To: <4ff7b370-29da-0bf0-2fab-f35e5aa4b800@kernel.org> References: <1495167262-2305-1-git-send-email-tien.fong.chee@intel.com> <1495167262-2305-4-git-send-email-tien.fong.chee@intel.com> <4ff7b370-29da-0bf0-2fab-f35e5aa4b800@kernel.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/22/2017 09:23 AM, Dinh Nguyen wrote: > > > On 05/18/2017 11:14 PM, tien.fong.chee at intel.com wrote: >> From: Tien Fong Chee >> >> Enable FPGA driver build for SPL. FPGA driver is needed for SPL >> to configure and getting DDR up before loading U-boot into DDR and >> booting from there. >> >> Signed-off-by: Tien Fong Chee >> --- >> drivers/Makefile | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/Makefile b/drivers/Makefile >> index 4a4b237..b4a2230 100644 >> --- a/drivers/Makefile >> +++ b/drivers/Makefile >> @@ -47,6 +47,7 @@ obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/ >> obj-$(CONFIG_SPL_SATA_SUPPORT) += block/ >> obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/ >> obj-$(CONFIG_SPL_MMC_SUPPORT) += block/ >> +obj-$(CONFIG_FPGA) += fpga/ > > There's a SPL_FPGA_SUPPORT already defined. Can you use that? > Also with the above change, you're building in the FPGA driver into the SPL for Gen5 devices, you probably didn't want that. CC spl/drivers/fpga/fpga.o CC spl/drivers/fpga/altera.o CC spl/drivers/fpga/socfpga.o Dinh