xhci: tegra: support loading xusb firmware from file
authorJC Kuo <jckuo@nvidia.com>
Mon, 24 Jun 2013 12:19:31 +0000 (20:19 +0800)
committerHarshada Kale <hkale@nvidia.com>
Fri, 19 Jul 2013 13:05:53 +0000 (06:05 -0700)
commit12c6b61e6af9a2dbfc5d92fcb0032392ed88594b
tree1c3cb8f9bff4df1ca269f2573f863f390fc1e8a8
parent1fb658156251fdd5927a7d7b2df0cb0a775ee3e6
xhci: tegra: support loading xusb firmware from file

This commit add the capability of loading Tegra xusb firmware from
a firmware file in file system.

Two kernel module parameters provides the firmware loading flexibility.
1. "use_bootloader_firmware=Y" driver loads firmware from the
   bootloader carveout region.
2. "use_bootloader_firmware=N" driver loads firmware from the file
   specified by "firmware_file" parameter.

This example shows how to load firmware from /etc/firmware/xusb_sil_prod_fw

   insmod /system/lib/modules/xhci-hcd.ko use_bootloader_firmware=N firmware_file=xusb_sil_prod_fw

bug 1301430

Change-Id: I7ff4a86ab56b2724d3a4d17f28fe048e6303b067
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/241457
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
drivers/usb/host/xhci-tegra.c