Index: format/app.format
===================================================================
--- /branch/mouse_project/1066/1066_OTP_FLASH/format/app.format	(revision 1000)
+++ /branch/mouse_project/1066/1066_OTP_FLASH/format/app.format	(working copy)
@@ -121,6 +121,8 @@
 2 mem_keyscan_ptr
 
 2 mem_power_param_ptr
+
+0 mem_power_on_flag	//forbid to move this variable
 2 mem_24g_head_ptr
 )
 //adc read
Index: output/eeprom.dat
===================================================================
--- /branch/mouse_project/1066/1066_OTP_FLASH/output/eeprom.dat	(revision 1000)
+++ /branch/mouse_project/1066/1066_OTP_FLASH/output/eeprom.dat	(working copy)
@@ -2,8 +2,16 @@
 02
 aa
 55
-52
+5a
 00
+68
+10
+81
+3b
+60
+00
+c2
+41
 20
 40
 29
@@ -19,7 +27,7 @@
 20
 40
 00
-0a
+0c
 20
 40
 65
@@ -84,8 +92,8 @@
 60
 00
 00
-aa
-c6
+5c
+ff
 aa
 55
 01
@@ -101,7 +109,7 @@
 41
 8f
 10
-ca
+ce
 aa
 55
 01
@@ -117,5 +125,5 @@
 40
 e1
 41
-8d
-a5
+f4
+8a
Index: output/memmap.format
===================================================================
--- /branch/mouse_project/1066/1066_OTP_FLASH/output/memmap.format	(revision 1000)
+++ /branch/mouse_project/1066/1066_OTP_FLASH/output/memmap.format	(working copy)
@@ -812,6 +812,7 @@
 0x423d mem_key_num_ptr
 0x423d mem_keyscan_ptr
 0x423f mem_power_param_ptr
+0x4241 mem_power_on_flag//forbid to move this variable
 0x4241 mem_24g_head_ptr
 0x4243 mem_baud
 0x4245 mem_hci_lt_rx_state
Index: output/program.lis
===================================================================
--- /branch/mouse_project/1066/1066_OTP_FLASH/output/program.lis	(revision 1000)
+++ /branch/mouse_project/1066/1066_OTP_FLASH/output/program.lis	(working copy)
@@ -1,27 +1,29 @@
 include "bt_format "
 org 0x0000
-0000 20402978 call initialize_radio_cont + 1 
-0001 58000000 setarg 0x0 
-0002 600181f6 store 3 ,mem_addr_hi 
-0003 2040000a call spid_b_init_flash 
-0004 2040650b call spid_unlock_flash 
-0005 d84000ab arg 0xab ,temp 
-0006 20406556 call spid_write_flash_common 
-0007 da606578 arg spid_load_flash ,regc 
-0008 20406429 call read_first_block 
-0009 2020643c branch load_storage 
+0000 6810813b hfetch 1 ,0x813b 
+0001 6000c241 store 1 ,mem_power_on_flag 
+0002 20402978 call initialize_radio_cont + 1 
+0003 58000000 setarg 0x0 
+0004 600181f6 store 3 ,mem_addr_hi 
+0005 2040000c call spid_b_init_flash 
+0006 2040650b call spid_unlock_flash 
+0007 d84000ab arg 0xab ,temp 
+0008 20406556 call spid_write_flash_common 
+0009 da606578 arg spid_load_flash ,regc 
+000a 20406429 call read_first_block 
+000b 2020643c branch load_storage 
 
 spid_b_init_flash:
-000a 70808640 hjam 0x40 ,core_spid_ctrl 
-000b 70808700 hjam 0x0 ,core_spid_delay 
-000c 68108081 hfetch 1 ,core_gpio_sel1 
-000d 793ffe00 set0 0 ,pdata 
-000e 793ffe01 set0 1 ,pdata 
-000f 79207e03 set1 3 ,pdata 
-0010 60108081 hstore 1 ,core_gpio_sel1 
-0011 58000000 setarg 0 
-0012 600201f5 store 4 ,mem_spid_tbuf 
-0013 20600000 rtn 
+000c 70808640 hjam 0x40 ,core_spid_ctrl 
+000d 70808700 hjam 0x0 ,core_spid_delay 
+000e 68108081 hfetch 1 ,core_gpio_sel1 
+000f 793ffe00 set0 0 ,pdata 
+0010 793ffe01 set0 1 ,pdata 
+0011 79207e03 set1 3 ,pdata 
+0012 60108081 hstore 1 ,core_gpio_sel1 
+0013 58000000 setarg 0 
+0014 600201f5 store 4 ,mem_spid_tbuf 
+0015 20600000 rtn 
 org 0x2000
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/1066/1066_OTP_FLASH/program/patch.prog	(revision 1000)
+++ /branch/mouse_project/1066/1066_OTP_FLASH/program/patch.prog	(working copy)
@@ -1,6 +1,10 @@
 
 ifdef PATCH
-	call initialize_radio_cont + 1
+
+	hfetch 1,0x813b
+	store 1,mem_power_on_flag
+
+	call initialize_radio_cont+1
 	setarg 0x0
 	store 3,mem_addr_hi
 	call spid_b_init_flash
Index: sched/hci_boot.dat
===================================================================
--- /branch/mouse_project/1066/1066_OTP_FLASH/sched/hci_boot.dat	(revision 1000)
+++ /branch/mouse_project/1066/1066_OTP_FLASH/sched/hci_boot.dat	(working copy)
@@ -1,6 +1,6 @@
 
 mem_patch11:04
-mem_lpm_config:8f 10 ca
+mem_lpm_config:8f 10 ce
 mem_rf_init_data:
 ff
 mem_rf_init_ptr:mem_rf_init_data
