From: Tom Rini Date: Wed, 17 Oct 2012 08:18:48 -0700 Subject: [U-Boot] [PATCH 3/3] am33xx: Add SPI SPL as an option In-Reply-To: <87bog1sig2.fsf@macbook.be.48ers.dk> References: <1350428767-15380-1-git-send-email-trini@ti.com> <1350428767-15380-3-git-send-email-trini@ti.com> <87bog1sig2.fsf@macbook.be.48ers.dk> Message-ID: <20121017151848.GA14796@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 17, 2012 at 08:47:57AM +0200, Peter Korsgaard wrote: > >>>>> "Tom" == Tom Rini writes: > > Tom> Add the required config.mk logic for this SoC as well as the BOOT_DEVICE > Tom> define. Finally, enable the options on the am335x_evm. > > Tom> Signed-off-by: Tom Rini > Tom> --- > Tom> arch/arm/cpu/armv7/am33xx/config.mk | 1 + > Tom> arch/arm/include/asm/arch-am33xx/spl.h | 1 + > Tom> include/configs/am335x_evm.h | 7 +++++++ > Tom> 3 files changed, 9 insertions(+) > > Tom> diff --git a/arch/arm/cpu/armv7/am33xx/config.mk b/arch/arm/cpu/armv7/am33xx/config.mk > Tom> index 5750bbd..babf0eb 100644 > Tom> --- a/arch/arm/cpu/armv7/am33xx/config.mk > Tom> +++ b/arch/arm/cpu/armv7/am33xx/config.mk > Tom> @@ -13,6 +13,7 @@ > Tom> # > Tom> ifdef CONFIG_SPL_BUILD > Tom> ALL-y += $(OBJTREE)/MLO > Tom> +ALL-$(CONFIG_SPL_SPI_SUPPORT) += $(OBJTREE)/MLO.byteswap > Tom> else > Tom> ALL-y += $(obj)u-boot.img > Tom> endif > Tom> diff --git a/arch/arm/include/asm/arch-am33xx/spl.h b/arch/arm/include/asm/arch-am33xx/spl.h > Tom> index 63ed10b..644ff35 100644 > Tom> --- a/arch/arm/include/asm/arch-am33xx/spl.h > Tom> +++ b/arch/arm/include/asm/arch-am33xx/spl.h > Tom> @@ -27,6 +27,7 @@ > Tom> #define BOOT_DEVICE_NAND 5 > Tom> #define BOOT_DEVICE_MMC1 8 > Tom> #define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */ > Tom> +#define BOOT_DEVICE_SPI 11 > > 11? According to the TRM (spuh73f, pg4295) spi is 21. Correct. I hadn't seen the table before and all of those numbers come from run-time testing. I'm filing a bug against the TRM now, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: