From: Marek Vasut Date: Mon, 8 Oct 2018 22:27:58 +0200 Subject: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI In-Reply-To: References: <20180806130509.21967-1-simon.k.r.goldschmidt@gmail.com> <1f5e8a25-55c6-ada0-9c01-d42a94980ba8@denx.de> <8c12ed86-8156-f730-4491-e164c9632ebc@gmail.com> <8886eb7d-2452-9f4a-c88a-6381c5bd5d3f@gmail.com> <1daa78c2-e504-c529-5f22-c84fd19ce50b@denx.de> Message-ID: <40fcaa12-92f0-d967-3721-0cc79978e596@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/08/2018 08:45 PM, Simon Goldschmidt wrote: > On Mon, Oct 8, 2018 at 2:20 AM Marek Vasut wrote: >> >> On 10/07/2018 08:43 AM, Simon Goldschmidt wrote: >>> On 09.08.2018 23:57, Marek Vasut wrote: >>>> On 08/09/2018 09:17 PM, Simon Goldschmidt wrote: >>>>> On Mon, Aug 6, 2018 at 3:45 PM Simon Goldschmidt >>>>> wrote: >>>>>> >>>>>> >>>>>> Marek Vasut schrieb am Mo., 6. Aug. 2018, 15:19: >>>>>>> On 08/06/2018 03:05 PM, Simon Goldschmidt wrote: >>>>>>>> This fixes the board's dts to supply SPL with QSPI info. >>>>>>>> >>>>>>>> The EBV Socrates board has DIP switches to boot from SD card or >>>>>>>> QSPI, so let's fix its defconfig to work for both cases. >>>>>>>> >>>>>>>> Signed-off-by: Simon Goldschmidt >>>>>>>> >>>>>>>> --- >>>>>>>> >>>>>>>> arch/arm/dts/socfpga_cyclone5_socrates.dts | 2 ++ >>>>>>>> 1 file changed, 2 insertions(+) >>>>>>>> >>>>>>>> diff --git a/arch/arm/dts/socfpga_cyclone5_socrates.dts >>>>>>>> b/arch/arm/dts/socfpga_cyclone5_socrates.dts >>>>>>>> index 0d452ae300..46d7eabdc8 100644 >>>>>>>> --- a/arch/arm/dts/socfpga_cyclone5_socrates.dts >>>>>>>> +++ b/arch/arm/dts/socfpga_cyclone5_socrates.dts >>>>>>>> @@ -63,6 +63,7 @@ >>>>>>>> >>>>>>>> &qspi { >>>>>>>> status = "okay"; >>>>>>>> + u-boot,dm-pre-reloc; >>>>>>>> >>>>>>>> flash0: n25q00 at 0 { >>>>>>>> #address-cells = <1>; >>>>>>>> @@ -77,6 +78,7 @@ >>>>>>>> cdns,tsd2d-ns = <50>; >>>>>>>> cdns,tchsh-ns = <4>; >>>>>>>> cdns,tslch-ns = <4>; >>>>>>>> + u-boot,dm-pre-reloc; >>>>>>>> }; >>>>>>>> }; >>>>>>>> >>>>>>>> >>>>>>> But the SoCrates boots from SDMMC :-) >>>>>> >>>>>> Yours might :-) >>>>>> >>>>>> As written above, the board has an 8 digit dip switch to control >>>>>> both hps and fpga boot sources. And I use this board to verify that >>>>>> mainline U-Boot (without our private board configs, which boot from >>>>>> qspi) works on the architecture. >>>>> So, will it be ok to merge this patch or do we need a separate dts for >>>>> running from qspi (much like you did recently for the gen10 clk >>>>> items)? That might be a bad choice though, as my configuration >>>>> currently runs for both boot types (when enabling both environment >>>>> drivers). >>>> If it works with both out of the box, then that's fine. >>> >>> So can this be merged? I need different config settings than the >>> defconfig by now to get qspi running, but the device tree works without >>> changes with this added and I can boot the socrates from all its 3 >>> sources available from the DIP switches (MMC, QSPI, FPGA). >> >> Yes, applied > > To which tree? I can't find it on > http://git.denx.de/?p=u-boot/u-boot-socfpga.git;a=summary > > Is there any delay involved in syncing that? Locally, yes, I didn't push it yet. I'm a bit busy, sorry. -- Best regards, Marek Vasut