Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/output/otp.dat	(revision 5626)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/output/otp.dat	(working copy)
@@ -11,8 +11,8 @@
 00
 aa
 55
-a6
-13
+5e
+14
 c2
 84
 00
@@ -32,7 +32,7 @@
 c0
 0a
 04
-0c
+3a
 c0
 0a
 82
@@ -52,7 +52,7 @@
 c0
 12
 84
-2e
+5c
 c0
 13
 80
@@ -95,20 +95,20 @@
 ef
 c0
 6d
-03
-f5
+04
+23
 c0
 6d
 84
-90
+be
 c0
 6e
 04
-cd
+fb
 c0
 6e
 84
-ae
+dc
 20
 20
 23
@@ -128,11 +128,11 @@
 c0
 1c
 84
-28
+56
 c0
 26
 84
-2c
+5a
 c1
 7f
 80
@@ -2584,11 +2584,11 @@
 20
 40
 03
-c7
+f5
 20
 40
-03
-f2
+04
+20
 20
 40
 02
@@ -2603,8 +2603,8 @@
 4e
 20
 20
-03
-f4
+04
+22
 20
 75
 80
@@ -3078,13 +3078,21 @@
 73
 96
 20
+40
+03
+1f
+20
 75
 80
 00
 20
 40
+63
+d9
+20
+40
 04
-4d
+7b
 20
 40
 02
@@ -3100,7 +3108,7 @@
 58
 00
 03
-7c
+aa
 67
 e1
 43
@@ -3108,7 +3116,7 @@
 58
 00
 03
-51
+7f
 67
 e1
 43
@@ -3116,7 +3124,7 @@
 58
 00
 03
-6e
+9c
 67
 e1
 43
@@ -3132,7 +3140,7 @@
 58
 00
 03
-15
+43
 67
 e1
 43
@@ -3148,7 +3156,7 @@
 58
 00
 03
-2a
+58
 67
 e1
 43
@@ -3161,16 +3169,192 @@
 e1
 45
 24
+58
+00
+63
+40
+67
+e1
+45
+1f
+58
+00
+63
+9a
+67
+e1
+45
+21
+70
+41
+5e
+07
 20
 40
-62
-c6
+29
+69
+20
+40
+63
+8d
+20
+40
+78
+ad
+20
+40
+77
+ac
 20
 20
 64
 7d
 20
 40
+03
+24
+20
+40
+03
+2b
+20
+40
+03
+32
+20
+40
+03
+37
+20
+20
+03
+3e
+70
+80
+70
+00
+37
+d9
+82
+00
+70
+80
+71
+00
+37
+d9
+82
+00
+70
+81
+4d
+11
+37
+d9
+82
+00
+20
+60
+00
+00
+70
+80
+76
+00
+37
+d9
+82
+00
+70
+80
+77
+00
+37
+d9
+82
+00
+70
+81
+50
+11
+37
+d9
+82
+00
+20
+60
+00
+00
+70
+80
+78
+00
+37
+d9
+82
+00
+70
+81
+51
+01
+37
+d9
+82
+00
+20
+60
+00
+00
+70
+80
+d6
+00
+37
+d9
+82
+00
+70
+80
+d7
+00
+37
+d9
+82
+00
+70
+81
+56
+11
+37
+d9
+82
+00
+20
+60
+00
+00
+70
+80
+d8
+00
+37
+d9
+82
+00
+70
+81
+57
+01
+37
+d9
+82
+00
+20
+60
+00
+00
+20
+40
 6f
 35
 70
@@ -3180,7 +3364,7 @@
 20
 40
 03
-1a
+48
 20
 40
 70
@@ -3224,7 +3408,7 @@
 20
 22
 83
-25
+53
 1f
 e2
 04
@@ -3232,7 +3416,7 @@
 20
 40
 03
-28
+56
 1a
 20
 a2
@@ -3240,7 +3424,7 @@
 c2
 00
 03
-1f
+4d
 20
 60
 00
@@ -3256,15 +3440,15 @@
 20
 40
 04
-55
+83
 20
 40
 03
-34
+62
 20
 40
 03
-46
+74
 20
 40
 67
@@ -3300,7 +3484,7 @@
 da
 40
 03
-37
+65
 20
 20
 42
@@ -3316,19 +3500,19 @@
 c0
 02
 03
-3e
+6c
 c0
 01
 03
-40
+6e
 c0
 00
 03
-42
+70
 c0
 02
 83
-44
+72
 20
 60
 00
@@ -3380,7 +3564,7 @@
 da
 40
 03
-4b
+79
 20
 20
 42
@@ -3416,11 +3600,11 @@
 c0
 20
 03
-65
+93
 c0
 18
 83
-55
+83
 20
 20
 64
@@ -3432,7 +3616,7 @@
 20
 40
 03
-58
+86
 20
 60
 00
@@ -3444,11 +3628,11 @@
 20
 3a
 03
-5b
+89
 20
 20
 03
-60
+8e
 6f
 e1
 4f
@@ -3512,7 +3696,7 @@
 24
 3a
 03
-79
+a7
 6f
 e4
 4f
@@ -3532,7 +3716,7 @@
 c0
 12
 03
-71
+9f
 20
 60
 00
@@ -3556,7 +3740,7 @@
 24
 3a
 03
-79
+a7
 6f
 e4
 4f
@@ -3620,7 +3804,7 @@
 20
 20
 03
-86
+b4
 6f
 e1
 48
@@ -3684,7 +3868,7 @@
 20
 40
 03
-a3
+d1
 6f
 e1
 06
@@ -3732,7 +3916,7 @@
 c2
 00
 03
-8f
+bd
 20
 60
 00
@@ -3776,7 +3960,7 @@
 20
 20
 03
-ad
+db
 1a
 60
 8c
@@ -3788,7 +3972,7 @@
 20
 20
 03
-b0
+de
 20
 40
 65
@@ -3812,7 +3996,7 @@
 20
 40
 03
-c0
+ee
 18
 e2
 7e
@@ -3820,7 +4004,7 @@
 c0
 04
 03
-b9
+e7
 20
 20
 65
@@ -3828,7 +4012,7 @@
 20
 40
 03
-bb
+e9
 20
 20
 63
@@ -3931,8 +4115,8 @@
 06
 20
 40
-03
-e4
+04
+12
 2a
 2f
 fe
@@ -3963,8 +4147,8 @@
 1e
 20
 40
-03
-e4
+04
+12
 d8
 a0
 8a
@@ -3991,8 +4175,8 @@
 ff
 20
 21
-03
-d9
+04
+07
 20
 20
 21
@@ -4096,7 +4280,7 @@
 20
 40
 04
-05
+33
 70
 8a
 08
@@ -4140,7 +4324,7 @@
 c3
 02
 84
-06
+34
 68
 59
 01
@@ -4176,7 +4360,7 @@
 c0
 08
 04
-25
+53
 58
 00
 57
@@ -4220,7 +4404,7 @@
 c0
 08
 04
-22
+50
 58
 00
 2b
@@ -4256,7 +4440,7 @@
 20
 20
 04
-1e
+4c
 58
 00
 83
@@ -4268,7 +4452,7 @@
 20
 20
 04
-13
+41
 6f
 e0
 c3
@@ -4316,7 +4500,7 @@
 20
 40
 04
-35
+63
 20
 20
 24
@@ -4388,7 +4572,7 @@
 20
 22
 84
-48
+76
 e7
 e0
 80
@@ -4408,7 +4592,7 @@
 c2
 00
 04
-42
+70
 1a
 42
 04
@@ -4460,7 +4644,7 @@
 20
 40
 04
-4f
+7d
 24
 61
 00
@@ -4484,11 +4668,11 @@
 20
 40
 04
-cd
+fb
 20
 40
 04
-ae
+dc
 67
 e1
 4f
@@ -4500,7 +4684,7 @@
 20
 40
 04
-67
+95
 6f
 e0
 c4
@@ -4508,11 +4692,11 @@
 c2
 80
 84
-87
+b5
 c3
 00
 04
-8b
+b9
 70
 4f
 d0
@@ -4520,7 +4704,7 @@
 20
 20
 04
-89
+b7
 ef
 e4
 00
@@ -4580,7 +4764,7 @@
 20
 21
 04
-83
+b1
 68
 49
 06
@@ -4592,11 +4776,11 @@
 24
 21
 04
-85
+b3
 20
 3a
 04
-85
+b3
 1f
 ef
 a2
@@ -4812,11 +4996,11 @@
 c0
 00
 84
-b2
+e0
 c0
 01
 04
-b9
+e7
 20
 60
 00
@@ -4848,7 +5032,7 @@
 20
 20
 04
-bf
+ed
 58
 00
 03
@@ -4896,7 +5080,7 @@
 20
 40
 04
-a1
+cf
 6f
 f0
 8a
@@ -4932,7 +5116,7 @@
 20
 40
 04
-c4
+f2
 20
 40
 6f
@@ -4960,7 +5144,7 @@
 20
 40
 04
-c4
+f2
 6f
 e0
 c4
@@ -4991,8 +5175,8 @@
 03
 20
 40
-04
-e6
+05
+14
 68
 59
 01
@@ -5035,14 +5219,14 @@
 29
 c3
 02
-84
-e6
+85
+14
 20
 60
 00
 00
-e8
-59
+8f
+b5
 aa
 55
 40
@@ -7221,6 +7405,13 @@
 55
 01
 00
+1c
+02
+5a
+aa
+55
+01
+00
 07
 44
 01
@@ -7305,7 +7496,7 @@
 aa
 aa
 55
-d5
-62
-ad
-81
+4d
+64
+5c
+cd
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/output/ramcode.rom	(revision 5626)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/output/ramcode.rom	(working copy)
@@ -2,12 +2,12 @@
 c0000052
 c0010244
 c008824d
-c00a040c
+c00a043a
 c00a82da
 c00c02e8
 c00c82a7
 c00d025f
-c012842e
+c012845c
 c013807d
 c05180d9
 c052822c
@@ -18,16 +18,16 @@
 c05882fd
 c0620020
 c06282ef
-c06d03f5
-c06d8490
-c06e04cd
-c06e84ae
+c06d0423
+c06d84be
+c06e04fb
+c06e84dc
 2020235a
 c0120056
 c0128201
 c0130206
-c01c8428
-c026842c
+c01c8456
+c026845a
 c17f8000
 2020235a
 20406b34
@@ -640,12 +640,12 @@
 58557474
 67f18968
 7089606e
-204003c7
-204003f2
+204003f5
+20400420
 20400288
 7041480c
 20406f4e
-202003f4
+20200422
 20758000
 37d98200
 6fe0c11c
@@ -764,32 +764,78 @@
 67e1442c
 20600000
 20407396
+2040031f
 20758000
-2040044d
+204063d9
+2040047b
 204002f2
 20406459
 7040a60a
-5800037c
+580003aa
 67e143db
-58000351
+5800037f
 67e143dd
-5800036e
+5800039c
 67e143df
 580062d3
 67e143d3
-58000315
+58000343
 67e143d5
 58006329
 67e143d7
-5800032a
+58000358
 67e143e3
 58006505
 67e14524
-204062c6
+58006340
+67e1451f
+5800639a
+67e14521
+70415e07
+20402969
+2040638d
+204078ad
+204077ac
 2020647d
+20400324
+2040032b
+20400332
+20400337
+2020033e
+70807000
+37d98200
+70807100
+37d98200
+70814d11
+37d98200
+20600000
+70807600
+37d98200
+70807700
+37d98200
+70815011
+37d98200
+20600000
+70807800
+37d98200
+70815101
+37d98200
+20600000
+7080d600
+37d98200
+7080d700
+37d98200
+70815611
+37d98200
+20600000
+7080d800
+37d98200
+70815701
+37d98200
+20600000
 20406f35
 7044ecff
-2040031a
+20400348
 2040701b
 2020739a
 6fe0c6ce
@@ -800,17 +846,17 @@
 efe08011
 6848c6cf
 98467c00
-20228325
+20228353
 1fe20400
-20400328
+20400356
 1a20a201
-c200031f
+c200034d
 20600000
 79200407
 20206edd
-20400455
-20400334
-20400346
+20400483
+20400362
+20400374
 2040676c
 20406858
 2040675a
@@ -819,14 +865,14 @@
 20406311
 202064d9
 da604fc3
-da400337
+da400365
 202042e0
 704fc302
 6fe0cfc4
-c002033e
-c0010340
-c0000342
-c0028344
+c002036c
+c001036e
+c0000370
+c0028372
 20600000
 2040017b
 20200110
@@ -839,7 +885,7 @@
 6fe0cec9
 207a0000
 da604fc1
-da40034b
+da400379
 202042e0
 704fc105
 6fe0cfc2
@@ -848,15 +894,15 @@
 203a4323
 20204325
 1a627e00
-c0200365
-c0188355
+c0200393
+c0188383
 202064e0
 704ec201
-20400358
+20400386
 20600000
 20406730
-203a035b
-20200360
+203a0389
+2020038e
 6fe14f74
 67e14eae
 6fe14f76
@@ -872,18 +918,18 @@
 6fe4450a
 207a0000
 20406730
-243a0379
+243a03a7
 6fe44f02
 67e442d3
 20202e93
 6fe14398
-c0120371
+c012039f
 20600000
 204078ad
 7044f101
 20406730
 2040432b
-243a0379
+243a03a7
 6fe44f02
 67e442d3
 20202e93
@@ -899,7 +945,7 @@
 20407ce1
 78547c00
 2040701b
-20200386
+202003b4
 6fe148ac
 67e1442e
 204065be
@@ -915,7 +961,7 @@
 67e1068c
 18e27e00
 67e1067a
-204003a3
+204003d1
 6fe1068c
 1fe22600
 6fe1067a
@@ -927,7 +973,7 @@
 1fe0a60a
 6fe10678
 1fe27200
-c200038f
+c20003bd
 20600000
 1a60a405
 efe20012
@@ -938,20 +984,20 @@
 24417806
 580003e8
 98467c00
-202003ad
+202003db
 1a608c04
 efe08006
-202003b0
+202003de
 2040656b
 6fe0cec9
 243a655d
 20406561
 20216500
-204003c0
+204003ee
 18e27e00
-c00403b9
+c00403e7
 20206558
-204003bb
+204003e9
 20206371
 da604fb8
 20406730
@@ -977,7 +1023,7 @@
 708ac200
 708ac300
 d8e00006
-204003e4
+20400412
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -985,14 +1031,14 @@
 d8e00005
 2040211c
 2040211e
-204003e4
+20400412
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-202103d9
+20210407
 2020214f
 2000003c
 58000f00
@@ -1018,7 +1064,7 @@
 6fe0c409
 67f080cd
 20000bb8
-20400405
+20400433
 708a08c1
 6a40c419
 df200008
@@ -1029,7 +1075,7 @@
 20600000
 7080cc03
 6ff08129
-c3028406
+c3028434
 68590164
 6049440a
 7080cc00
@@ -1038,7 +1084,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c0080425
+c0080453
 58005762
 67f10907
 70890103
@@ -1049,7 +1095,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c0080422
+c0080450
 58002bb1
 67f10907
 c6978000
@@ -1058,10 +1104,10 @@
 20600000
 58004189
 67f10907
-2020041e
+2020044c
 58008312
 67f10907
-20200413
+20200441
 6fe0c334
 c1000000
 c001b04a
@@ -1073,7 +1119,7 @@
 6fe240ad
 9840fe00
 67e240ad
-20400435
+20400463
 20202425
 600440e7
 d8c08070
@@ -1091,12 +1137,12 @@
 efe08011
 e8408013
 98467c00
-20228448
+20228476
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c2000442
+c2000470
 1a420400
 20600000
 704fcd01
@@ -1109,22 +1155,22 @@
 20600000
 6fe0cfcd
 207a0000
-2040044f
+2040047d
 24610000
 704fce00
 70440701
 20406ff3
 20406feb
-204004cd
-204004ae
+204004fb
+204004dc
 67e14fcb
 da204fc5
-20400467
+20400495
 6fe0c40c
-c2808487
-c300048b
+c28084b5
+c30004b9
 704fd001
-20200489
+202004b7
 efe40011
 67e40670
 20406ff3
@@ -1139,11 +1185,11 @@
 6fe10676
 68490670
 98467c00
-20210483
+202104b1
 68490672
 98467e00
-24210485
-203a0485
+242104b3
+203a04b3
 1fefa264
 6fe10670
 68490672
@@ -1197,8 +1243,8 @@
 67f08a0a
 20600000
 6fe0c407
-c00084b2
-c00104b9
+c00084e0
+c00104e7
 20600000
 580003e8
 67e14405
@@ -1206,7 +1252,7 @@
 6fe14154
 da600e10
 20406fc0
-202004bf
+202004ed
 580003e8
 67e14405
 6849414e
@@ -1218,7 +1264,7 @@
 68494158
 9846fc00
 20207d5f
-204004a1
+204004cf
 6ff08a09
 793ffe07
 67f08a09
@@ -1227,14 +1273,14 @@
 708a0d61
 708a0b00
 20600000
-204004c4
+204004f2
 20406f90
 6fe0c409
 67f080cd
 20406f97
 708a0d60
 7080cd00
-204004c4
+204004f2
 6fe0c409
 67f080cd
 708a0b50
@@ -1242,7 +1288,7 @@
 df00000b
 6de1440a
 7080cc03
-204004e6
+20400514
 68590164
 60494158
 20406f9c
@@ -1253,5 +1299,5 @@
 7080cc00
 20600000
 6ff08129
-c30284e6
+c3028514
 20600000
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/output/sched.rom	(revision 5626)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/output/sched.rom	(working copy)
@@ -722,6 +722,7 @@
 mem_gain_table:04 00 00
 mem_gain_second_agc_en:08	#hw agc: 0:second agc disable
 
+mem_otp_load_check_sum:5a
 
 #adc config
 mem_adc_config_flag:01
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/program/patch.prog	(revision 5626)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/program/patch.prog	(working copy)
@@ -1007,9 +1007,14 @@
 	rtn
 
 p_shutter_dy_init:
+	// jam 0xc3,0x8049
+	// jam 0x01,0x804a
+	// jam 0x1c,0x804b
 	// jam 0,mem_lpm_mode
 	call enable_authrom
+	call p_shutter_lpm_key_init
 	rtn wake
+	call shutter_default_init
 ifdef ADC_1121SB
 	call p_shutter_adc_config_init
 endif	
@@ -1042,11 +1047,68 @@
 
 	setarg shutter_dy_key_change
 	store 2,mem_cb_shutter_keycan
+	setarg shutter_soft_swtich_power_on
+	store 2,mem_shutter_soft_switch_poweron_callback_function
 
-	call shutter_common_init+4
+	setarg shutter_soft_swtich_power_off
+	store 2,mem_shutter_soft_switch_poweroff_callback_function
 
+	jam 7,mem_version
+	call le_modified_name_adv
+	call shutter_init_param
+	// call keyscan_key_init
+	call queue_init
+	call ui_led_init_global
+	// call shutter_common_init+4
 	branch shutter_dy_init+15
 
+p_shutter_lpm_key_init:
+	call p_shutter_key_gpio01
+	call p_shutter_key_gpio67
+	call p_shutter_key_gpio8
+	call p_shutter_key_gpio1819
+	branch p_shutter_key_gpio20
+
+p_shutter_key_gpio01:
+	jam 0x00,0x8070
+	until null,lpo_edge
+	jam 0x00,0x8071
+	until null,lpo_edge
+	jam 0x11,core_gpio_wakeup_cfg
+	until null,lpo_edge
+	rtn
+
+p_shutter_key_gpio67:
+	jam 0x00,0x8076
+	until null,lpo_edge
+	jam 0x00,0x8077
+	until null,lpo_edge
+	jam 0x11,core_gpio_wakeup_cfg+3
+	until null,lpo_edge
+	rtn	
+
+p_shutter_key_gpio8:
+	jam 0x00,0x8078
+	until null,lpo_edge
+	jam 0x01,core_gpio_wakeup_cfg+4
+	until null,lpo_edge
+	rtn
+p_shutter_key_gpio1819:
+	jam 0x00,0x80d6
+	until null,lpo_edge
+	jam 0x00,0x80d7
+	until null,lpo_edge
+	jam 0x11,core_gpio_wakeup_cfg+9
+	until null,lpo_edge
+	rtn			
+
+p_shutter_key_gpio20:
+	jam 0x00,0x80d8
+	until null,lpo_edge
+	jam 0x01,core_gpio_wakeup_cfg+10
+	until null,lpo_edge
+	rtn
+
 p_shutter_le_before_hibernate:
 	call gpio_set_before_lpm
 	jam UI_BUTTON_GPIO_DISABLE,mem_ui_button_gpio
Index: sched/1305.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/sched/1305.dat	(revision 5626)
+++ /1121s/branch/shutter/branch/dy/JXY/yc1089s_jxy_dy_P4_8key/sched/1305.dat	(working copy)
@@ -21,6 +21,7 @@
 mem_gain_table:04 00 00
 mem_gain_second_agc_en:08	#hw agc: 0:second agc disable
 
+mem_otp_load_check_sum:5a
 
 #adc config
 mem_adc_config_flag:01
