Commit aee119bd70b8200739182f9abcdb4b7b634b73c2

Authored by Mugunthan V N
Committed by Tom Rini
1 parent 46a14a6383

am43xx_evm: add usb host boot support

While booting via usb host mode, ROM uses DMA to copy MLO over USB so
ARM internal RAM cannot be used. Adding USB host boot support by
introducing new config target which sets SPL_TEXT_BASE to OCMC ram.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

Showing 2 changed files with 16 additions and 1 deletions Side-by-side Diff

configs/am43xx_evm_usbhost_boot_defconfig
  1 +CONFIG_ARM=y
  2 +CONFIG_TARGET_AM43XX_EVM=y
  3 +CONFIG_SPL=y
  4 +CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,SPL_USB_HOST_SUPPORT"
  5 +CONFIG_CMD_NET=y
include/configs/am43xx_evm.h
... ... @@ -42,7 +42,16 @@
42 42 #define CONFIG_POWER_TPS62362
43 43  
44 44 /* SPL defines. */
  45 +#ifdef CONFIG_SPL_USB_HOST_SUPPORT
  46 +/*
  47 + * For USB host boot, ROM uses DMA for copying MLO from USB storage
  48 + * and ARM internal ram is not accessible for DMA, so SPL text base
  49 + * should be in OCMC ram
  50 + */
  51 +#define CONFIG_SPL_TEXT_BASE 0x40300350
  52 +#else
45 53 #define CONFIG_SPL_TEXT_BASE 0x402F4000
  54 +#endif
46 55 #define CONFIG_SPL_MAX_SIZE (220 << 10) /* 220KB */
47 56 #define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + \
48 57 (128 << 20))
49 58  
... ... @@ -95,8 +104,8 @@
95 104 #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
96 105  
97 106 /* SPL USB Support */
  107 +#ifdef CONFIG_SPL_USB_HOST_SUPPORT
98 108 #define CONFIG_SPL_USB_SUPPORT
99   -#define CONFIG_SPL_USB_HOST_SUPPORT
100 109 #define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1
101 110  
102 111 #define CONFIG_CMD_USB
... ... @@ -108,6 +117,7 @@
108 117  
109 118 #define CONFIG_OMAP_USB_PHY
110 119 #define CONFIG_AM437X_USB2PHY2_HOST
  120 +#endif
111 121  
112 122 /* USB GADGET */
113 123 #if !defined(CONFIG_SPL_BUILD) || \