gpu: nvgpu: Add abstraction for firmware loading

Add nvgpu_firmware data structure, and return it instead of Linux
struct firmare from nvgpu_request_firmware. Also add abstraction
for releasing firmware: nvgpu_release_firmware.

JIRA NVGPU-16

Change-Id: I6dae8262957c0d4506f710289e3a43a6c1729fc7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463538
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-04-14 12:06:39 -07:00
committed by mobile promotions
parent 7eb59ff8d3
commit a9c66768db
15 changed files with 251 additions and 139 deletions

View File

@@ -11,7 +11,6 @@
* more details.
*/
#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/uaccess.h>