From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 12 Nov 2014 09:05:09 +0100 Subject: [U-Boot] [PATCH] arm: imx: make bmode command work with SPL/U-Boot combo In-Reply-To: <1414603713-15155-1-git-send-email-nikita@compulab.co.il> References: <1414603713-15155-1-git-send-email-nikita@compulab.co.il> Message-ID: <546314B5.9030804@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 Hi Nikita, On 29/10/2014 18:28, Nikita Kiryanov wrote: > 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 > --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================