Index: output/eeprom.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/eeprom.dat	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-aa
+d2
 08
 c2
 84
@@ -2119,11 +2119,51 @@
 20
 40
 02
-12
+1c
+6f
+e0
+c0
+cb
+79
 20
+7e
+04
 20
+40
+23
+e1
 24
-25
+55
+a3
+cb
+37
+d9
+82
+00
+1b
+22
+7e
+00
+67
+e3
+40
+b1
+6f
+e1
+c0
+c6
+6a
+20
+c0
+c9
+df
+20
+00
+03
+20
+20
+24
+2e
 60
 04
 40
@@ -2191,7 +2231,7 @@
 20
 22
 82
-25
+2f
 e7
 e0
 80
@@ -2211,7 +2251,7 @@
 c2
 00
 02
-1f
+29
 1a
 42
 04
@@ -2220,8 +2260,8 @@
 60
 00
 00
-c1
-cd
+88
+c7
 aa
 55
 40
@@ -2319,7 +2359,7 @@
 00
 db
 42
-39
+3a
 31
 1f
 98
@@ -2327,19 +2367,17 @@
 2a
 aa
 55
-09
+07
 00
 6b
 42
-08
-57
-69
-2d
+06
 53
-45
-30
-31
-35
+65
+6c
+66
+69
+65
 aa
 55
 06
@@ -2606,48 +2644,10 @@
 aa
 aa
 55
-77
+b1
 55
-4a
-6f
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+e0
+15
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-05
-72
+37
+da
Index: output/flash.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/flash.dat	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-aa
+d2
 08
 c2
 84
@@ -2119,11 +2119,51 @@
 20
 40
 02
-12
+1c
+6f
+e0
+c0
+cb
+79
 20
+7e
+04
 20
+40
+23
+e1
 24
-25
+55
+a3
+cb
+37
+d9
+82
+00
+1b
+22
+7e
+00
+67
+e3
+40
+b1
+6f
+e1
+c0
+c6
+6a
+20
+c0
+c9
+df
+20
+00
+03
+20
+20
+24
+2e
 60
 04
 40
@@ -2191,7 +2231,7 @@
 20
 22
 82
-25
+2f
 e7
 e0
 80
@@ -2211,7 +2251,7 @@
 c2
 00
 02
-1f
+29
 1a
 42
 04
@@ -2220,8 +2260,8 @@
 60
 00
 00
-c1
-cd
+88
+c7
 aa
 55
 40
@@ -2319,7 +2359,7 @@
 00
 db
 42
-39
+3a
 31
 1f
 98
@@ -2327,19 +2367,17 @@
 2a
 aa
 55
-09
+07
 00
 6b
 42
-08
-57
-69
-2d
+06
 53
-45
-30
-31
-35
+65
+6c
+66
+69
+65
 aa
 55
 06
@@ -2606,48 +2644,10 @@
 aa
 aa
 55
-77
+b1
 55
-4a
-6f
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+e0
+15
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-05
-72
+37
+da
Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/otp.dat	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-aa
+d2
 08
 c2
 84
@@ -2128,11 +2128,51 @@
 20
 40
 02
-12
+1c
+6f
+e0
+c0
+cb
+79
 20
+7e
+04
 20
+40
+23
+e1
 24
-25
+55
+a3
+cb
+37
+d9
+82
+00
+1b
+22
+7e
+00
+67
+e3
+40
+b1
+6f
+e1
+c0
+c6
+6a
+20
+c0
+c9
+df
+20
+00
+03
+20
+20
+24
+2e
 60
 04
 40
@@ -2200,7 +2240,7 @@
 20
 22
 82
-25
+2f
 e7
 e0
 80
@@ -2220,7 +2260,7 @@
 c2
 00
 02
-1f
+29
 1a
 42
 04
@@ -2229,8 +2269,8 @@
 60
 00
 00
-c1
-cd
+88
+c7
 aa
 55
 40
@@ -2328,7 +2368,7 @@
 00
 db
 42
-39
+3a
 31
 1f
 98
@@ -2336,19 +2376,17 @@
 2a
 aa
 55
-09
+07
 00
 6b
 42
-08
-57
-69
-2d
+06
 53
-45
-30
-31
-35
+65
+6c
+66
+69
+65
 aa
 55
 06
@@ -2615,7 +2653,7 @@
 aa
 aa
 55
-77
+b1
 55
-4a
-6f
+e0
+15
Index: output/program.lis
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/program.lis	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/program.lis	(working copy)
@@ -666,40 +666,50 @@
 020d 6fe240ad fetch 4 ,mem_sleep_counter_all 
 020e 9840fe00 iadd temp ,pdata 
 020f 67e240ad store 4 ,mem_sleep_counter_all 
-0210 20400212 call p_lpm_save_context 
-0211 20202425 branch lpm_sleep_skip_cb_function + 4 
+0210 2040021c call p_lpm_save_context 
+0211 6fe0c0cb fetch 1 ,mem_lpm_hv_sel 
+0212 79207e04 set1 lpm_doze_en_bit ,pdata 
+0213 204023e1 call lpm_write_sel_hv 
+0214 2455a3cb ncall lpm_preon_counter ,wake 
+0215 37d98200 until null ,lpo_edge 
+0216 1b227e00 copy clkn ,pdata 
+0217 67e340b1 store 6 ,mem_sleep_clkn 
+0218 6fe1c0c6 fetch 3 ,mem_lpm_isogate 
+0219 6a20c0c9 fetchr rega ,1 ,mem_lpm_ldo_sel 
+021a df200003 arg 3 ,loopcnt 
+021b 2020242e branch lpm_sleep_loop 
 
 p_lpm_save_context:
-0212 600440e7 storer mark ,8 ,mem_saved_mark 
-0213 d8c08070 arg core_gpio_conf ,contr 
-0214 d8a040cc arg mem_saved_gpio ,contw 
-0215 20407c8f call memcpy16 
-0216 d8c080d4 arg core_gpio_conf_hi ,contr 
-0217 20407c89 call memcpy8 
-0218 6ff08080 fetch 1 ,core_spid_ctrl 
-0219 67e0c0ef store 1 ,mem_saved_spidctrl 
-021a 18422400 copy temp ,regb 
+021c 600440e7 storer mark ,8 ,mem_saved_mark 
+021d d8c08070 arg core_gpio_conf ,contr 
+021e d8a040cc arg mem_saved_gpio ,contw 
+021f 20407c8f call memcpy16 
+0220 d8c080d4 arg core_gpio_conf_hi ,contr 
+0221 20407c89 call memcpy8 
+0222 6ff08080 fetch 1 ,core_spid_ctrl 
+0223 67e0c0ef store 1 ,mem_saved_spidctrl 
+0224 18422400 copy temp ,regb 
 
 p_lpm_write_gpio_wakeup:
-021b df20000c arg 12 ,loopcnt 
-021c da200016 arg mem_gpio_wakeup_cfg ,rega 
-021d da60814d arg core_gpio_wakeup_cfg ,regc 
-021e 37d98200 until null ,lpo_edge 
+0225 df20000c arg 12 ,loopcnt 
+0226 da200016 arg mem_gpio_wakeup_cfg ,rega 
+0227 da60814d arg core_gpio_wakeup_cfg ,regc 
+0228 37d98200 until null ,lpo_edge 
 
 p_lpm_write_gpio_loop:
-021f efe08011 ifetch 1 ,rega 
-0220 e8408013 ifetcht 1 ,regc 
-0221 98467c00 isub temp ,null 
-0222 20228225 branch p_lpm_write_gpio_loop_next ,zero 
-0223 e7e08013 istore 1 ,regc 
-0224 37d98200 until null ,lpo_edge 
+0229 efe08011 ifetch 1 ,rega 
+022a e8408013 ifetcht 1 ,regc 
+022b 98467c00 isub temp ,null 
+022c 2022822f branch p_lpm_write_gpio_loop_next ,zero 
+022d e7e08013 istore 1 ,regc 
+022e 37d98200 until null ,lpo_edge 
 
 p_lpm_write_gpio_loop_next:
-0225 1a20a201 increase 1 ,rega 
-0226 1a60a601 increase 1 ,regc 
-0227 c200021f loop p_lpm_write_gpio_loop 
-0228 1a420400 copy regb ,temp 
-0229 20600000 rtn 
+022f 1a20a201 increase 1 ,rega 
+0230 1a60a601 increase 1 ,regc 
+0231 c2000229 loop p_lpm_write_gpio_loop 
+0232 1a420400 copy regb ,temp 
+0233 20600000 rtn 
               org 0x2000
 
 start:
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/ramcode.rom	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/ramcode.rom	(working copy)
@@ -526,8 +526,18 @@
 6fe240ad
 9840fe00
 67e240ad
-20400212
-20202425
+2040021c
+6fe0c0cb
+79207e04
+204023e1
+2455a3cb
+37d98200
+1b227e00
+67e340b1
+6fe1c0c6
+6a20c0c9
+df200003
+2020242e
 600440e7
 d8c08070
 d8a040cc
@@ -544,11 +554,11 @@
 efe08011
 e8408013
 98467c00
-20228225
+2022822f
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c200021f
+c2000229
 1a420400
 20600000
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/sched.rom	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/output/sched.rom	(working copy)
@@ -69,11 +69,11 @@
 mem_ui_button_gpio:ff
 mem_otp_load_check_sum:5a
 
-mem_le_lap:39 31 1f 98 07 2a
+mem_le_lap:3a 31 1f 98 07 2a
 mem_le_name_len:
 # 'AB Shutter3
-#'Selfie
-'Wi-SE015
+'Selfie
+# 'Wi-SE015
 
 mem_shutter_key_conf0_temp:11 ff 90 00 ff #pcb2022-277
 # mem_shutter_key_conf0_temp:15 ff 8c 01 15 #pcb2022-277
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/program/patch.prog	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/program/patch.prog	(working copy)
@@ -799,7 +799,18 @@
 	iadd temp,pdata
 	store 4,mem_sleep_counter_all
 	call p_lpm_save_context
-	branch lpm_sleep_skip_cb_function+4
+	fetch 1,mem_lpm_hv_sel
+	set1 LPM_DOZE_EN_BIT, pdata
+	call lpm_write_sel_hv
+	ncall lpm_preon_counter,wake
+	until null,lpo_edge
+	copy clkn,pdata
+	store 6,mem_sleep_clkn
+	// storer clkn,6,mem_sleep_clkn
+	fetch 3,mem_lpm_isogate
+	fetchr rega,1,mem_lpm_ldo_sel
+	arg 3,loopcnt
+	branch lpm_sleep_loop
 
 p_lpm_save_context:
 	storer mark,8,mem_saved_mark
Index: sched/shutter.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/sched/shutter.dat	(revision 4298)
+++ /1121s/branch/shutter/branch/shutter/yb_project/yc1386s_shutter_H58/sched/shutter.dat	(working copy)
@@ -2,11 +2,11 @@
 mem_ui_button_gpio:ff
 mem_otp_load_check_sum:5a
 
-mem_le_lap:39 31 1f 98 07 2a
+mem_le_lap:3a 31 1f 98 07 2a
 mem_le_name_len:
 # 'AB Shutter3
-#'Selfie
-'Wi-SE015
+'Selfie
+# 'Wi-SE015
 
 mem_shutter_key_conf0_temp:11 ff 90 00 ff #pcb2022-277
 # mem_shutter_key_conf0_temp:15 ff 8c 01 15 #pcb2022-277
