;DebugMsgEnable

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
	"PlatformName"="YUANFENG"
	"OEMINfo"="TM-650"
	"SysInfo"="RAMSize: 128M"
	"RomVersion"="RomVersion : PF02"
	"DeviceCode"="NVX225"
	"MapCode"="iGONA@0610"
	"UUIDType"=dword:3
	"CFGDate"="2010.11.03"
; END HIVE BOOT SECTION

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Filters\CacheFilt]
	"EnableFileCache"=dword:0
; END HIVE BOOT SECTION

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GPS]
	"PowerCtrl"="GPIO_3_22"
	"PowerCtrlPol"=dword:1
	"ResetCtrl"="GPIO_0_30"
	"ResetCtrlPol"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\Display\AT_LCD1]
	"PowerDCtrl"="GPIO_0_6"
	"PowerDCtrlPol"=dword:1
	;"ResetCtrl"="GPIO_0_20"
	;"ResetCtrlPol"=dword:0
	"DispCtrl"="GPIO_0_21"
	"DispCtrlPol"=dword:1
	"CursorOn"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]
	"AutoDetectChip"=dword:0
	;"PowerCtrl"="GPIO_"
	;"PowerCtrlPol"=dword:1
	;"ResetCtrl"="GPIO_"
	;"ResetCtrlPol"=dword:0
	"AmpCtrl"="GPIO_0_15"
	"AmpCtrlPol"=dword:1
	"EarDetect"="GPIO_0_4"
	"EarDetectPol"=dword:0
	"SpkAmpAlwaysOn"=dword:0
	"HeadphoneGainRange"=dword:790061
	"SpeakerGainRange"=dword:780061
	"FMOutGainRange"=dword:76730061

[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH]
	"MaxCalError"=dword:7
;USER_PARAM_START
	;"CalibrationData"="2048,2094 544,769 544,3385 3559,3391 3551,785 "
;USER_PARAM_END
	"XYOrder"=dword:0
	"IICSCL"="GPIO_0_2"
	"IICSDA"="GPIO_0_3"
	"DisTap"=dword:32	;50
	"Dis1T"=dword:150	;350
	"DisPinch"=dword:18 	;24
	"DisPan"=dword:320		;800
	"DxT"=dword:48
	"DyT"=dword:48
	"DriverName"="touch.dll"
	;"IntrPin"="GPIO_0_8"				;触摸屏的中断脚是哪个
	;"IntrPol"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MiscCtl]
	"USBDetect1"="GPIO_0_1"
	"UsbDetectPol1"=dword:1
	;"SimDetect"="GPIO_1_9"			;没有sim卡检测
	;"SimDetectPol"=dword:1
	"UsbPullUpAuto"=dword:0
	"LightDetectChannel"=dword:2
	"VibrationEn"="GPIO_1_9"
	"VibrationEnPol"=dword:1

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MiscCtl\FloatPins]
	"GPIO_0_7"=dword:3	;CMMB power

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MiscCtl\SleepGpio]
;	"GRP_EN0"=dword:FFFFFFFF
;	"GRP_IO0"=dword:41000020
;	"GRP_VAL0"=dword:BFFFFFDF
;	"GRP_EN1"=dword:FFFFFFFF
;	"GRP_IO1"=dword:B0783E00
;	"GRP_VAL1"=dword:4F87C1FF
;	"GRP_EN2"=dword:FFFFFFFF
;	"GRP_IO2"=dword:000203FE
;	"GRP_VAL2"=dword:FFFDFC01
;	"GRP_EN3"=dword:FFFFFFFF
;	"GRP_IO3"=dword:004FFC00
;	"GRP_VAL3"=dword:FFA03FFF
;	"GRP_EN4"=dword:FFFFFFFF
;	"GRP_IO4"=dword:0
;	"GRP_VAL4"=dword:FFFFFFFF
;	"GRP_EN5"=dword:AAAA5555
;	"GRP_IO5"=dword:0
;	"GRP_VAL5"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Battery]
	"ADCChannel"=dword:1
	;"RefVoltage"=dword:09c4   ;2500
	"RefVoltage"=dword:0ce4   ;3300
	"SampleScale"=dword:20000 ;2X
	"MaximumVol"=dword:0fa0   ;4000
	"MinimumVol"=dword:0dac   ;3500
	"ShutdownVol"=dword:0dc0  ;3520
	"VoltageDelta"=dword:28   ;+40mv
	"IsUsbCanCharge"=dword:1
	"AC1Check"="GPIO_0_14"
	"AC1CheckPol"=dword:1
	"CpuCanChangeClk"=dword:1
	"ChargeCheck"="GPIO_0_12"
	"ChargeCheckPol"=dword:0
	"BattLowSleepMode"=dword:3	;check BattFault and volatage at the same time
	"PMICA5Pwrc"=dword:1
	"PMICStatusMask"=dword:3	;mask AC and charge status
	"Level0"=dword:0A0E42 ;3650
	"Level1"=dword:140E74 ;3700
	"Level2"=dword:1E0EA6 ;3750
	"Level3"=dword:280ED8 ;3800
	"Level4"=dword:320F0A ;3850
	"Level5"=dword:3C0F3C ;3900
	"Level6"=dword:460F64 ;3940
	"Level7"=dword:500F82 ;3970
	"Level8"=dword:5A0F96 ;3990
	"Level9"=dword:640FA0 ;4000

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\sdmmcloader]
	"PlaySound"=dword:1
	"AutoRun"="YFAutoRun.inf"
	"SlotsEn0"=dword:2
	;"SlotsEn1"=dword:2
	"CardDetect1"="GPIO_1_7"
	"PowerCtrl3"="GPIO_0_18"
	"PowerCtrl3Pol"=dword:1
	"ResetCtrl3"="GPIO_0_11"
	"ResetCtrl3Pol"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\Builtin\SDBusDriver]
	"Order"=dword:0
	"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDIOStandardHC]
	"Order"=dword:1
	"Flags"=dword:1000
	"SlotsEn"=dword:2
	"AutoDetect1"=dword:0
	"PrintCmd1"=dword:0
	;"BaseClockFrequency"=dword:15EF3C0	;23M
	"BaseClockFrequency"=dword:29020C0	;43M
	"ClockRateLimit0"=dword:29020C0	;43M
	"ClockRateLimit1"=dword:15EF3C0	;23M
	
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDIOStandardHC1]
	"Order"=dword:2
;	"Flags"=dword:1000
	"SlotsEn"=dword:2
	"AutoDetect3"=dword:0
	"PrintCmd3"=dword:0
	;"BaseClockFrequency"=dword:15EF3C0	;23M
	"BaseClockFrequency"=dword:29020C0	;43M
	"ClockRateLimit2"=dword:29020C0	;43M
	"ClockRateLimit3"=dword:15EF3C0	;23M
	;"ClockRateLimit3"=dword:989680	;10M
	;"ClockRateLimit3"=dword:E4E1C0	;15M
	;"Dll"=-
	
; END HIVE BOOT SECTION

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BAK]
	;"BacklightEnable"="GPIO_"
	"BacklightPwm"=dword:1
	"PwmFreq"=dword:7D0
	"PwmOffVal"=dword:19
	"PwmPol"=dword:0
	"PowerUpDelay"=dword:C8
	"IsSensorValid"=dword:1

[HKEY_CURRENT_USER\ControlPanel\KeyMap]
	;For Application
	"VK_MENU"=dword:C6
	"VK_VOLUME_UP"=dword:C7
	"VK_VOLUME_DOWN"=dword:C8
	;For Driver
	"GPIO_0_0"=dword:80C6	;VK_MENU
	"GPIO_0_8"=dword:5a5a	;Lock	
	"KeySound"=dword:1
	"KeyRepeat"=dword:1
	"KeyGotoCE"=dword:0000C6C7	;menu + volume_up
	"UseKeypadEvent"=dword:1

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PWRBUTTON]
	;"WakeSource"=dword:18	;ALARM0,ALARM1
	"WakeSource"=dword:1C	;ALARM0,ALARM1,EXT_ON
	;"MuxKey"=dword:80C6	;menu
	"MuxKey"=dword:0	;none
	"OffKeyWait"=dword:258	;600ms
	"OffKeySound"="click.wav"
	"UseKeypadEvent"=dword:1

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FM]
	"Clk32KEn"=dword:1
	"PowerCtrl"="GPIO_0_13"
	"PowerCtrlPol"=dword:1
	"IICSCL"="GPIO_0_2"
	"IICSDA"="GPIO_0_3"
	"IICADDR"=dword:6c
	"ExtPower"=dword:1
	"RFGain"=dword:3B600FC

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\INNOIF101]
	"SPIPort"=dword:0
	"PowerCtrl"="GPIO_0_7"
	"PowerCtrlPol"=dword:1
	"ResetCtrl"="GPIO_1_3"
	"ResetCtrlPol"=dword:0
	;"IntrPin"="GPIO_1_2"
	"IntrPin"=-
	
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SCR]	;cmmb的加密芯片，只是当为202芯片时，才会用到这个dll，所以当为206的时候，可以把这个dll去掉
	"USPPort"=dword:1
	"ResetCtrl"="GPIO_0_25"
	"PowerCtrl"=-;"GPIO_0_7"
	"Dll"=-

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0]
	"EnableDMA"=dword:1 ;1 Enable DMA function; 0 Disable DMA function
	"FullRS232"=dword:1
	;"FullRS232"=-
	"AutoRTS"=dword:1
       "RtsDelayTime"=dword:898
	"Index"=dword:8	;URT0 for GSM (URT8)
        "DMAMode"=dword:1
	"RxFifoThreshold"=dword:20

;[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0] ;;;;;;;;;;;;;;;for BC04/BC06;;;;;;;;;;;;;;;;;;;;;;
;	"Prefix"="URT"  
;	"Index"=dword:8
;	"FullRS232"=-        ;
;	"DMAMode"=-            ;
;	"RxFifoThreshold"=-    ;
	
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
	"Prefix"="COM"
	"Index"=dword:4	;TMC
	
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2]
	"Index"=dword:6	;USP0 for BC04 (URT6)
	"RxFifoThreshold"=dword:a

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BTPort]
	"ComPort"="URT6:"
	"PowerCtrl"="GPIO_0_18"
	"PowerCtrlPol"=dword:1
	"ResetCtrl"="GPIO_0_10"
	"ResetCtrlPol"=dword:0
        "AutoPowerOn"=dword:0
	;"ChipFreqKHz"=dword:3E80	;16MHz, default is 26MHz

[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\sys]
    "cntAcceptSync" =dword:1
    	
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\USBOTG1]
;	"LegacyHost"=dword:0	; Function only
	"OTGPortMode"=dword:2	; Function only
	"HighSpeed"=dword:1
	"AttachDelay"=dword:c8	;delay 200ms

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class]
	"ResetTimeout"=dword:3E8         ;1000ms
	"CommandBlockTimeout"=dword:3E8  ;1000ms
	"CommandStatusTimeout"=dword:3E8 ;1000ms

[HKEY_LOCAL_MACHINE\SYSTEM\Explorer\Shell Folders]
	"Desktop"="\Windows\Desktop"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] 
	"NoNewWindows"="0"

[HKEY_LOCAL_MACHINE\init\YFShortcuts]
	"\Windows\Desktop\GPS"="\Windows\RetShell.exe"
	"\Windows\Desktop\XLS"="\Windows\XLS.exe"
	"\Windows\Desktop\presviewer"="\Windows\presviewer.exe"
	"\Windows\Desktop\pdfviewer"="\Windows\pdfviewer.lnk"
	"\Windows\Desktop\imageviewer"="\Windows\imageviewer.exe"
	"\Windows\Desktop\docviewer"="\Windows\docviewer.exe"
	"\Windows\Desktop\WinRAR"="\Windows\WinRAR.exe"

[HKEY_LOCAL_MACHINE\SYSTEM\OOM]
	"ShowOomWindow"=dword:0

;;;; Beep
[HKEY_LOCAL_MACHINE\init\YFInit]
	"BeepTest.exe"=-
	"GSMPMReq.exe"=dword:1

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ROADTUNES]
	"Dll"=-

;;;; USB MassStorage
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
;USER_PARAM_START
   ;"DefaultClientDriver"="Serial_Class"
   "DefaultClientDriver"="Mass_Storage_Class"
;USER_PARAM_END



[HKEY_LOCAL_MACHINE\init\YFExtParts]
	"ExtPart0Size"=dword:200
	"ExtPart1Size"=dword:8000


[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WaveDev]
	"Dll"="wav_ALC5625.dll"
	"IICSCL"="GPIO_0_2"
	"IICSDA"="GPIO_0_3"
	"AmpCtrl"=-
	"ResetCtrl"="GPIO_0_15"
	"ResetCtrlPol"=dword:0
	"PreOutZeroPages"=dword:3
	"SpeakClass"=dword:1	;0->classAB, 1->classD
	"Filter384FS"=dword:1
	"AddCtrlReg"=dword:0408		;1.25x
	"MicCtrlReg"=dword:0401		;mic1 boost +20db
	"MicInVolume"=dword:0808		;mic +0db
	"ADCGain"=dword:cbcb			;adc +0db
	"VoiceDACVolume"=dword:e008			;defualt is 0xe010
	"Mic1Diff"=dword:1
	"MicInSel"=dword:2	;mic1
	"BTInSel"=dword:21	;DAC and voice DAC
	"LineInSel"=dword:10	;auxin
	"AuxInSel"=dword:20	;phone
	"HeadphoneGainRange"=dword:0000001c	;-42db~0db
	"SpeakerGainRange"=dword:0000001d	;-43.5db~0db
	"AuxoutGainRange"=dword:000a0014	;
	"FmOutPath"=dword:1		;headphone
	"OutPathEnable"=dword:18  ;喇叭和听筒都可以切换到耳机
	"AuxOutPath"=dword:20c		;aux output
	"FM1182InitParams"=hex:
		22,CE, 04,00,
		22,D3, 12,00,
		22,D4, 15,00,
		22,D5, 36,00,
		22,D6, 70,00,
		23,01, 00,02,
		23,04, 00,1D,
		23,05, 32,00,
		23,06, 7F,FF,
		23,07, 5F,FF,
		23,08, 00,7F,
		23,0B, 00,01,
		23,0D, 01,C0,
		23,0E, 06,80,
		23,12, 00,B1,
		23,14, C0,00,
		23,15, 03,CF,
		23,16, 00,75,
		23,17, 18,00,
		23,18, 0C,00,
		23,1D, 00,80,
		23,1F, 40,00,
		23,28, 00,02,
		23,2C, 00,25,
		23,30, 00,08,
		23,35, 00,06,
		23,36, 00,02,
		23,37, 50,00,
		23,3A, 00,80,
		23,3B, 00,12,
		23,40, 00,04,
		23,41, 00,01,
		23,43, 08,00,
		23,52, 7F,00,
		23,53, 3C,00,
		23,7F, 08,00,
		23,99, 04,80,
		23,9A, 01,00,
		23,A0, 28,00,
		23,A3, 12,00,
		23,A7, 03,80,
		23,F8, 40,03,
		23,FF, 00,00,
		23,0C, 00,00,
		00,00, 00,00
	"FM1182InitParamsBT"=hex:
        22,CE, 04,00,
		22,D3, 12,00,
		22,D4, 15,00,
		22,D5, 36,00,
		22,D6, 70,00,
		23,01, 00,02,
		23,04, 00,1D,
		23,05, 18,00,
		23,06, 7F,FF,
		23,07, 5F,FF,
		23,08, 00,7F,
		23,0B, 00,01,
		23,0D, 01,C0,
		23,0E, 02,80,
		23,12, 00,B1,
		23,14, C0,00,
		23,15, 03,CF,
		23,16, 00,75,
		23,17, 18,00,
		23,18, 0C,00,
		23,1D, 00,C0,
		23,1F, 40,00,
		23,28, 00,02,
		23,2C, 00,25,
		23,30, 00,08,
		23,35, 00,08,
		23,36, 00,03,
		23,37, 50,00,
		23,3A, 00,80,
		23,3B, 00,12,
		23,40, 00,04,
		23,41, 00,01,
		23,43, 08,00,
		23,52, 7F,00,
		23,53, 3C,00,
		23,7F, 08,00,
		23,99, 04,80,
		23,9A, 01,00,
		23,A0, 28,00,
		23,A3, 12,00,
		23,A7, 03,80,
		23,F8, 40,03,
		23,FF, 00,00,
		23,0C, 00,00,
		00,00, 00,00
	
[HKEY_LOCAL_MACHINE\Drivers\SimDetect]
	"ActiveRil"=dword:1   ;1 Active ril; 0 not active ril
	"Connect"="GPIO_0_23"
	"ConnectPol"=dword:1
	"PowerCtrl"="GPIO_0_25"
	"PowerrCtrlPol"=dword:1
	"ResetCtrl"="GPIO_0_26"
	"ResetCtrlPol"=dword:1
	"RTSCtrl"="GPIO_0_22"
	"SleepCtrl"="GPIO_0_24"
	"SleepCtrlPol"=dword:0
;	"IntrPin"="GPIO_4_14"
;	"IntrPol"=dword:1
        "ResetRetryTimes"=dword:1
        "ResetDelayTime"=dword:0



[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\YFAccometer]
	"GPIOInterrupt"="GPIO_0_9"
	"IICSCL"="GPIO_0_2"
	"IICSDA"="GPIO_0_3"
	"I2CAddress"=dword:1e
	"ActiveTime"=dword:100
	"InactiveTime"=dword:200
	"Direction"=dword:0
	"Dll"=-

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PMADev]
	"Dll"="YFPMExtra.dll"
	"Order"=dword:8
	"Prefix"="PMA"
	"Index"=dword:5

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RIL]
    "ComSleepString"="AT+CREG=0;+CGREG=0;+ECSQ=0"
    "ComWakeupString"="AT+CREG=2;+CGREG=1;+ECSQ=1"
    
;[HKEY_LOCAL_MACHINE\Comm\AR6K_SD1\Parms]
;    "eepromFile"="calData_ar6102_15dBm.bin"
;    "NetworkAddress"="000012345678"
