;/*++
;
;Copyright (c) 2014, 2017-2018  QualComm Corporation
;
;Module Name:
;    qccamfrontsensor850.INF
;
;Abstract:
;    INF file for installing the Driver Frameworks Camera Sensor Driver
;
;Reference:
; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/inf-copyfiles-directive
; https://docs.microsoft.com/en-us/windows-hardware/drivers/install/using-dirids
;--*/

[Version]
Signature   = "$WINDOWS NT$"
Class       = SYSTEM
ClassGuid   = {4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider    = %QC%
DriverVer = 03/15/2019,1.0.10440.0011                ;ergong,release bin,release ergong tunning,add yigong tunning0321,0329
CatalogFile = qccamfrontsensor850.cat
PnpLockDown = 1

; ================= Class section =====================
[SourceDisksNames]
;
; A SourceDisksNames section identifies the distribution disks or CD-ROM discs that contain
; the source files to be transferred to the target computer during installation.
;
; diskid = disk-description[,[tag-or-cab-file],[unused],[path],[flags][,tag-file]]
;
; If the path value is omitted from an entry, files are assumed to be in the 
; installation root of the distribution disk.
;
0 = %Desc_x860%

[SourceDisksFiles]
;
; filename=diskid[,[ subdir][,size]]
; if no path directory was specified, in the installation root.
;
qccamfrontsensor850.sys         = 0       ; System file
com.qti.sensormodule.semco_imx258.bin  = 0       ; Driver binary file
com.qti.sensormodule.liteon_ov5670.bin = 0       ; Driver binary file
com.qti.tuned.semco_imx258.bin         = 0       ; Tuning binary file
com.qti.tuned.liteon_ov5670.bin        = 0       ; Tuning binary file
com.qti.tuned.default.bin              = 0       ; Default tuning binary file
com.qti.sensormodule.liteon_gc5025.bin = 0
com.qti.tuned.liteon_gc5025.bin        = 0
gc5025sensor.bin  = 0
gc5025tuning.bin  = 0

[DestinationDirs]
;
; [DefaultDestDir=dirid[,subdir]]
; [file-list-section=dirid[,subdir]]... 
; DIRIDs: 11, System directory; 12, Drivers directory
;
DefaultDestDir   = 13
Binary_CopyFiles = 13

[Binary_CopyFiles]
com.qti.sensormodule.semco_imx258.bin   ; Driver binary
com.qti.tuned.semco_imx258.bin          ; Tuning binary
com.qti.sensormodule.liteon_ov5670.bin  ; Driver binary for Thanos
com.qti.tuned.liteon_ov5670.bin         ; Tuning binary
com.qti.tuned.default.bin
com.qti.sensormodule.liteon_gc5025.bin 
com.qti.tuned.liteon_gc5025.bin
gc5025sensor.bin  
gc5025tuning.bin  

;*****************************************
; Camera Sensor  Install Section
;*****************************************
[Manufacturer]
%QC%=QC, NTARM64

[QC.NTARM64]
%CameraFrontSensor.DeviceDesc% = CameraFrontSensor_Device, ACPI\QCOM024A
%CameraFrontSensor.DeviceDesc% = CameraFrontSensor_Device, ACPI\VEN_QCOM&DEV_024A

[Drivers_Dir]
qccamfrontsensor850.sys

[CameraFrontSensor_Device.NT]
CopyFiles       = Drivers_Dir                   ; copy system file(s)
CopyFiles       = Binary_CopyFiles              ; copy binary files
AddProperty     = WDTFSOCDeviceCategory
Reboot

[WDTFSOCDeviceCategory]
{5D078032-6378-437B-8DA5-9B32B7CA3FDD},2,7,,0

[CameraFrontSensor_Device.NT.HW]
AddReg = CameraFrontSensor_Device_Security_Reg
 
[CameraFrontSensor_Device_Security_Reg]
HKR,,IQVersionYear,0x10001,2018
HKR,,IQVersionMonth,0x10001,5
HKR,,IQVersionRelease,0x10001,10
HKR,,DeviceCharacteristics,0x10001,0x100

;-------------- Service installation
[CameraFrontSensor_Device.NT.Services]
AddService = CameraFrontSensor,%SPSVCINST_ASSOCSERVICE%, CameraFrontSensor_Service_Inst

; -------------- CameraFrontSensor driver install sections
[CameraFrontSensor_Service_Inst]
DisplayName    = %CameraFrontSensor.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\qccamfrontsensor850.sys

[Strings]
SPSVCINST_ASSOCSERVICE          = 0x00000002
QC                              = "Wingtech"                                      
CameraFrontSensor.DeviceDesc    = "Qualcomm(R) Spectra(TM) 280 ISP"
CameraFrontSensor.SVCDESC       = "Qualcomm(R) Spectra(TM) 280 ISP"
ClassName                       = "Qualcomm Camera Front Sensor Device"
Desc_x860                       = "Qualcomm Camera Front Sensor Installation Disk"
