From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Murphy Date: Mon, 13 Jan 2014 07:50:37 -0600 Subject: [U-Boot] [U-Boot 3/3] spl: common: Support for USB MSD FAT image loading In-Reply-To: <1389358937-30151-3-git-send-email-dmurphy@ti.com> References: <1389358937-30151-1-git-send-email-dmurphy@ti.com> <1389358937-30151-3-git-send-email-dmurphy@ti.com> Message-ID: <52D3EF2D.6050304@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 01/10/2014 07:02 AM, Dan Murphy wrote: > Add SPL support to be able to detect a USB Mass Storage device > connected to a USB host. Once a USB Mass storage device is detected > the SPL will load the u-boot.img from a FAT partition to target address. > > Signed-off-by: Dan Murphy > --- > arch/arm/include/asm/arch-am33xx/spl.h | 14 ++++++-- > common/Makefile | 4 +++ > common/spl/Makefile | 1 + > common/spl/spl.c | 5 +++ > common/spl/spl_fat.c | 16 ++++----- > common/spl/spl_usb.c | 58 ++++++++++++++++++++++++++++++++ > include/spl.h | 3 ++ > spl/Makefile | 2 ++ > 8 files changed, 92 insertions(+), 11 deletions(-) > create mode 100644 common/spl/spl_usb.c > > diff --git a/arch/arm/include/asm/arch-am33xx/spl.h b/arch/arm/include/asm/arch-am33xx/spl.h > index 95de9aa..cd1d88d 100644 > --- a/arch/arm/include/asm/arch-am33xx/spl.h > +++ b/arch/arm/include/asm/arch-am33xx/spl.h > @@ -20,6 +20,7 @@ > #if defined(CONFIG_AM33XX) || defined(CONFIG_AM43XX) > #define BOOT_DEVICE_MMC1 8 > #define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */ > +#define BOOT_DEVICE_USB 13 After a rebase it appears this does not get merged to the right spot. I can submit a V2 if the maintainer wants me to or it can be a fix up once applied. -- ------------------ Dan Murphy