From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Date: Sun, 12 Oct 2014 22:16:12 +0100 Subject: [U-Boot] [PATCH v3 3/6] sunxi: When we've both mmc0 and mmc2, detect from which one we're booting In-Reply-To: <1413137238-27251-4-git-send-email-hdegoede@redhat.com> References: <1413137238-27251-1-git-send-email-hdegoede@redhat.com> <1413137238-27251-4-git-send-email-hdegoede@redhat.com> Message-ID: <1413148572.11505.69.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2014-10-12 at 20:07 +0200, Hans de Goede wrote: > sunxi SOCs can boot from both mmc0 and mmc2, detect from which one we're > booting, and make that one "mmc dev 0" so that a single u-boot binary can > be used for both the onboard eMMC and for external sdcards. > > When we're booting from mmc2, we make it dev 0 because that is where the SPL > will load the tertiary payload (the actual u-boot binary in our case) from, > see: common/spl/spl_mmc.c, which has dev 0 hardcoded everywhere. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell