From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Tue, 23 Jun 2020 09:51:27 +0200 (CEST) Subject: [PATCH v3 2/4] mx6cuboxi: customize board_boot_order to access eMMC In-Reply-To: <20200519182424.19959-3-walter.lozano@collabora.com> Message-ID: <20200623075127.87C9081F2E@phobos.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 > In SPL legacy code only one MMC device is created, based on BOOT_CFG > register, which can be either SD or eMMC. In this context > board_boot_order return always MMC1 when configure to boot from > SD/eMMC. After switching to DM both SD and eMMC devices are created > based on the information available on DT, but as board_boot_order > only returns MMC1 is not possible to boot from eMMC. > This patch customizes board_boot_order taking into account BOOT_CFG > register to point to correct MMC1 / MMC2 device. Additionally, handle > IO mux for the desired boot device. > Signed-off-by: Walter Lozano Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk 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 =====================================================================