1ifneq ($(filter db845c, $(TARGET_BOARD_PLATFORM)),)
2
3LOCAL_PATH := $(call my-dir)
4
5include device/linaro/dragonboard/utils.mk
6
7# Firmware files copied over from
8# http://releases.linaro.org/96boards/dragonboard845c/qualcomm/firmware/RB3_firmware_20190529180356-v3.zip
9
10# Adreno
11firmware_files :=	\
12    a630_gmu.bin	\
13    a630_sqe.fw		\
14    a630_zap.b00	\
15    a630_zap.b01	\
16    a630_zap.b02	\
17    a630_zap.elf	\
18    a630_zap.mdt
19
20# DSP (adsp+cdsp)
21sdm845_firmware_files +=	\
22    adsp.b00		\
23    adsp.b01		\
24    adsp.b02		\
25    adsp.b03		\
26    adsp.b04		\
27    adsp.b05		\
28    adsp.b06		\
29    adsp.b07		\
30    adsp.b08		\
31    adsp.b09		\
32    adsp.b10		\
33    adsp.b11		\
34    adsp.b12		\
35    adsp.b13		\
36    adsp.mdt		\
37    adspua.jsn		\
38    cdsp.b00		\
39    cdsp.b01		\
40    cdsp.b02		\
41    cdsp.b03		\
42    cdsp.b04		\
43    cdsp.b05		\
44    cdsp.b06		\
45    cdsp.b08		\
46    cdsp.mdt
47
48# USB
49firmware_files +=	\
50    K2026090.mem
51
52# Wlan
53sdm845_firmware_files +=	\
54    bdwlan.102		\
55    bdwlan.104		\
56    bdwlan.105		\
57    bdwlan.106		\
58    bdwlan.107		\
59    bdwlan.108		\
60    bdwlan.109		\
61    bdwlan.10b		\
62    bdwlan.10c		\
63    bdwlan.b04		\
64    bdwlan.b07		\
65    bdwlan.b09		\
66    bdwlan.b0a		\
67    bdwlan.b0b		\
68    bdwlan.b0d		\
69    bdwlan.b0e		\
70    bdwlan.b0f		\
71    bdwlan.b14		\
72    bdwlan.b15		\
73    bdwlan.b30		\
74    bdwlan.b31		\
75    bdwlan.b32		\
76    bdwlan.b33		\
77    bdwlan.b34		\
78    bdwlan.b35		\
79    bdwlan.b36		\
80    bdwlan.b37		\
81    bdwlan.b38		\
82    bdwlan.b39		\
83    bdwlan.b3a		\
84    bdwlan.b3c		\
85    bdwlan.b3d		\
86    bdwlan.b3e		\
87    bdwlan.b3f		\
88    bdwlan.b41		\
89    bdwlan.b42		\
90    bdwlan.b45		\
91    bdwlan.b70		\
92    bdwlan.bin		\
93    bdwlan.txt		\
94    wlanmdsp.mbn
95
96ath10k_firmware_files += \
97    board-2.bin		\
98    firmware-5.bin	\
99    notice.txt_wlanmdsp
100
101# I2C/SPI fix
102firmware_files +=	\
103    devcfg.mbn
104
105# wifi/modem/mba
106sdm845_firmware_files +=	\
107    mba.mbn		\
108    modem.mbn		\
109    modemuw.jsn
110
111# License
112firmware_files +=	\
113    LICENSE.qcom.txt
114
115$(foreach f, $(firmware_files), $(call add-qcom-firmware, $(f), $(TARGET_OUT_VENDOR)/firmware/))
116$(foreach f, $(sdm845_firmware_files), $(call add-qcom-firmware, $(f), $(TARGET_OUT_VENDOR)/firmware/qcom/sdm845/))
117$(foreach f, $(ath10k_firmware_files), $(call add-qcom-firmware, $(f), $(TARGET_OUT_VENDOR)/firmware/ath10k/WCN3990/hw1.0/))
118
119include $(call all-makefiles-under,$(LOCAL_PATH))
120endif
121