xhci: tegra: support loading xusb firmware from file
authorJC Kuo <jckuo@nvidia.com>
Mon, 24 Jun 2013 12:19:31 +0000 (20:19 +0800)
committerBharat Nihalani <bnihalani@nvidia.com>
Fri, 18 Oct 2013 10:09:08 +0000 (03:09 -0700)
commita01002af03a35f9eec725272dd5a173ae5c8c130
tree04bc6bc02686dde103d1c16f5e35a64ea071c1a7
parent688dea3223cc049f368d113b1890dbd2b0004dab
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
bug 1381552

Change-Id: I7ff4a86ab56b2724d3a4d17f28fe048e6303b067
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/241457
(cherry picked from commit 12c6b61e6af9a2dbfc5d92fcb0032392ed88594b)
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/299351
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/usb/host/xhci-tegra.c