From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 08 Dec 2014 17:27:32 +0100 Subject: [U-Boot] [PATCH RFC] arm: mx6: Add CCGR0 configuration to default DCD (spl_sd.cfg) In-Reply-To: References: <1418045465-32179-1-git-send-email-sr@denx.de> <5485B67A.8000800@denx.de> <5485C19E.1030907@denx.de> <5485C6E7.2060403@denx.de> Message-ID: <5485D174.5030501@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 08.12.2014 17:13, Fabio Estevam wrote: >> I just tested it. And it doesn't help. I really think this code is not >> reached in this failure case. As the SPL is not loaded completely. > > Do you have this patch applied? > > commit f2863ff3f47c99c4b5ba00be572e3a2c4213c5a2 > Author: Nikita Kiryanov > Date: Wed Oct 29 19:28:33 2014 +0200 > > arm: imx: make bmode command work with SPL/U-Boot combo > > The bmode command forces the SoC to use a specific boot device > by writing its boot mode into SRC_GPR9, and notifying the SoC of > the change using SRC_GPR10[28] bit: if the bit is on, bootROM > uses the value in SRC_GPR9 instead of SRC_SMBR1 to determine > the boot device. > > SPL on the other hand is oblivious to this distinction, so once > the bootROM loads SPL from the device configured in SRC_GPR10, > SPL will attempt to load U-Boot from the device configured in > SRC_SMBR1, which is not updated by the bootROM to the value in > SRC_GPR9. > > The result is that the selected boot device is not used across all > the boot stages. > > Update spl_boot_device() to look at gpr9 when necessary. > > Signed-off-by: Nikita Kiryanov > Cc: Stefano Babic > Cc: Troy Kisky > Cc: Tim Harvey > Cc: Eric Nelson > Cc: Fabio Estevam > Cc: Heiko Schocher Yes, its applied. I'm nearly on mainline right now. And it doesn't help. Which makes sense if my current guess is correct, that the BootROM doesn't load the SPL completely without this CCGR0 register setting in the DCD. Thanks, Stefan