From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Manuel_Lu=C3=ADs_Reis?= Date: Mon, 5 Apr 2021 16:42:14 +0100 Subject: SAMA5D3 Xplained: SPL broken after panic added to /lib/time.c:94 In-Reply-To: <6ba90f91-30fd-cf91-153c-ccf9d87e81b1@microchip.com> References: <32474781-93e4-0d71-b5c0-b0b3743ea085@microchip.com> <61fa8518-41ca-cff6-c88b-a0ba5df42edd@microchip.com> <8AS1RQ.LLEADDUOJVBP2@gmail.com> <6ba90f91-30fd-cf91-153c-ccf9d87e81b1@microchip.com> 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 Hi Eugen, > Does the node have the property > > u-boot,dm-pre-reloc; > > Maybe try to add this and see if it changes anything ? Thanks. Indeed it didn't have those properties. I have added them and also had to remove the udelay call in ddr2_init for the fix to work. The udelay call in ddr2_init was also failing (maybe too early for a timer call!?), but it seems to be redundant as it sits between two nops, and is working well as far as I can tell. If extra time is needed in that place, maybe extra NOPs could be considered instead. I am sending a patch for the fix. Could you review it please? Let me know if you'd like me to change anything. Thanks again, --------------------------------------------------------------------------------------------------------