Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
895a7fb4
Commit
895a7fb4
authored
Sep 30, 2015
by
danh-arm
Browse files
Merge pull request #393 from mtk09422/misc-updates
mt8173: Update SPM and fix watchdog setting
parents
cdb8f1c8
2bab3d52
Changes
2
Show whitespace changes
Inline
Side-by-side
plat/mediatek/mt8173/drivers/spm/spm_suspend.c
View file @
895a7fb4
...
@@ -148,68 +148,69 @@ static const unsigned int suspend_binary_ca7[] = {
...
@@ -148,68 +148,69 @@ static const unsigned int suspend_binary_ca7[] = {
0x17c07c1f
,
0x17c07c1f
,
0x1840001f
,
0x00000001
,
0xa1d48407
,
0x1990001f
,
0x17c07c1f
,
0x17c07c1f
,
0x1840001f
,
0x00000001
,
0xa1d48407
,
0x1990001f
,
0x10006b08
,
0x1a50001f
,
0x10006610
,
0x8246a401
,
0xe8208000
,
0x10006b6c
,
0x10006b08
,
0x1a50001f
,
0x10006610
,
0x8246a401
,
0xe8208000
,
0x10006b6c
,
0x00000000
,
0x1b00001f
,
0x2f7be75f
,
0x81469801
,
0xd8004305
,
0x17c07c1f
,
0x00000000
,
0x1b00001f
,
0x2f7be75f
,
0x81469801
,
0xd8004305
,
0x17c07c1f
,
0x1b80001f
,
0xd00f0000
,
0x8880000c
,
0x2f7be75f
,
0xd8005d
6
2
,
0x17c07c1f
,
0x1b80001f
,
0xd00f0000
,
0x8880000c
,
0x2f7be75f
,
0xd8005d
a
2
,
0x17c07c1f
,
0xd0004340
,
0x17c07c1f
,
0x1b80001f
,
0x500f0000
,
0xe8208000
,
0x10006354
,
0xd0004340
,
0x17c07c1f
,
0x1b80001f
,
0x500f0000
,
0xe8208000
,
0x10006354
,
0xfffe7b47
,
0xc0c069
0
0
,
0x81401801
,
0xd80048
a
5
,
0x17c07c1f
,
0x81f60407
,
0xfffe7b47
,
0xc0c069
4
0
,
0x81401801
,
0xd80048
e
5
,
0x17c07c1f
,
0x81f60407
,
0x18c0001f
,
0x10006200
,
0xc0c05e
2
0
,
0x12807c1f
,
0xe8208000
,
0x1000625c
,
0x18c0001f
,
0x10006200
,
0xc0c05e
6
0
,
0x12807c1f
,
0xe8208000
,
0x1000625c
,
0x00000001
,
0x1b80001f
,
0x20000080
,
0xc0c05e
2
0
,
0x1280041f
,
0x18c0001f
,
0x00000001
,
0x1b80001f
,
0x20000080
,
0xc0c05e
6
0
,
0x1280041f
,
0x18c0001f
,
0x10006204
,
0xc0c06
1c
0
,
0x1280041f
,
0x18c0001f
,
0x10006208
,
0xc0c05e
2
0
,
0x10006204
,
0xc0c06
20
0
,
0x1280041f
,
0x18c0001f
,
0x10006208
,
0xc0c05e
6
0
,
0x12807c1f
,
0xe8208000
,
0x10006244
,
0x00000001
,
0x1b80001f
,
0x20000080
,
0x12807c1f
,
0xe8208000
,
0x10006244
,
0x00000001
,
0x1b80001f
,
0x20000080
,
0xc0c05e20
,
0x1280041f
,
0x18c0001f
,
0x10006290
,
0xc0c05e20
,
0x1280041f
,
0xc0c05e60
,
0x1280041f
,
0x18d0001f
,
0x10200200
,
0x18c0001f
,
0x10006290
,
0xe8208000
,
0x10006404
,
0x00003101
,
0xc2803780
,
0x1292041f
,
0x81469801
,
0xc0c05e60
,
0x1280041f
,
0xe8208000
,
0x10006404
,
0x00003101
,
0xc2803780
,
0xd8204a05
,
0x17c07c1f
,
0x1b00001f
,
0x2f7be75f
,
0x1b80001f
,
0x30000004
,
0x1292041f
,
0x81469801
,
0xd8204a45
,
0x17c07c1f
,
0x1b00001f
,
0x2f7be75f
,
0x8880000c
,
0x2f7be75f
,
0xd80057c2
,
0x17c07c1f
,
0xc0c06480
,
0x17c07c1f
,
0x1b80001f
,
0x30000004
,
0x8880000c
,
0x2f7be75f
,
0xd8005802
,
0x17c07c1f
,
0x18c0001f
,
0x10006294
,
0xe0f07fff
,
0xe0e00fff
,
0xe0e000ff
,
0x81449801
,
0xc0c064c0
,
0x17c07c1f
,
0x18c0001f
,
0x10006294
,
0xe0f07fff
,
0xe0e00fff
,
0xd8004c45
,
0x17c07c1f
,
0x1a00001f
,
0x10006604
,
0xe2200003
,
0xc0c06540
,
0xe0e000ff
,
0x81449801
,
0xd8004c85
,
0x17c07c1f
,
0x1a00001f
,
0x10006604
,
0x17c07c1f
,
0xe2200005
,
0xc0c06540
,
0x17c07c1f
,
0xa1d38407
,
0xa1d98407
,
0xe2200003
,
0xc0c06580
,
0x17c07c1f
,
0xe2200005
,
0xc0c06580
,
0x17c07c1f
,
0x1800001f
,
0x00000012
,
0x1800001f
,
0x00000e12
,
0x1800001f
,
0x03800e12
,
0xa1d38407
,
0xa1d98407
,
0x1800001f
,
0x00000012
,
0x1800001f
,
0x00000e12
,
0x1800001f
,
0x038e0e12
,
0xe8208000
,
0x10006310
,
0x0b1600f8
,
0x1b00001f
,
0x1800001f
,
0x03800e12
,
0x1800001f
,
0x038e0e12
,
0xe8208000
,
0x10006310
,
0xbfffe7ff
,
0x1b80001f
,
0x90100000
,
0x80c00400
,
0xd8204f63
,
0xa1d58407
,
0x0b1600f8
,
0x1b00001f
,
0xbfffe7ff
,
0x1b80001f
,
0x90100000
,
0x80c00400
,
0xa1dd8407
,
0x1b00001f
,
0x3fffefff
,
0xd0004e20
,
0x17c07c1f
,
0x1890001f
,
0xd8204fa3
,
0xa1d58407
,
0xa1dd8407
,
0x1b00001f
,
0x3fffefff
,
0xd0004e60
,
0x100063e8
,
0x88c0000c
,
0x2f7be75f
,
0xd8005183
,
0x17c07c1f
,
0x80c40001
,
0x17c07c1f
,
0x1890001f
,
0x100063e8
,
0x88c0000c
,
0x2f7be75f
,
0xd80051c3
,
0xd8005103
,
0x17c07c1f
,
0x1b00001f
,
0xbfffe7ff
,
0xd0005140
,
0x17c07c1f
,
0x17c07c1f
,
0x80c40001
,
0xd8005143
,
0x17c07c1f
,
0x1b00001f
,
0xbfffe7ff
,
0x1b00001f
,
0x7ffff7ff
,
0xd0004e20
,
0x17c07c1f
,
0x80c40001
,
0xd8205283
,
0xd0005180
,
0x17c07c1f
,
0x1b00001f
,
0x7ffff7ff
,
0xd0004e60
,
0x17c07c1f
,
0x17c07c1f
,
0xa1de0407
,
0x1b00001f
,
0x7fffe7ff
,
0xd0004e20
,
0x17c07c1f
,
0x80c40001
,
0xd82052c3
,
0x17c07c1f
,
0xa1de0407
,
0x1b00001f
,
0x7fffe7ff
,
0x18c0001f
,
0x10006294
,
0xe0e001fe
,
0xe0e003fc
,
0xe0e007f8
,
0xe0e00ff0
,
0xd0004e60
,
0x17c07c1f
,
0x18c0001f
,
0x10006294
,
0xe0e001fe
,
0xe0e003fc
,
0x1b80001f
,
0x20000020
,
0xe0f07ff0
,
0xe0f07f00
,
0x81449801
,
0xd8005565
,
0xe0e007f8
,
0xe0e00ff0
,
0x1b80001f
,
0x20000020
,
0xe0f07ff0
,
0xe0f07f00
,
0x17c07c1f
,
0x1a00001f
,
0x10006604
,
0xe2200002
,
0xc0c06540
,
0x17c07c1f
,
0x81449801
,
0xd80055a5
,
0x17c07c1f
,
0x1a00001f
,
0x10006604
,
0xe2200002
,
0xe2200004
,
0xc0c06540
,
0x17c07c1f
,
0x1b80001f
,
0x200016a8
,
0x1800001f
,
0xc0c06580
,
0x17c07c1f
,
0xe2200004
,
0xc0c06580
,
0x17c07c1f
,
0x1b80001f
,
0x03800e12
,
0x1b80001f
,
0x20000300
,
0x1800001f
,
0x00000e12
,
0x1b80001f
,
0x200016a8
,
0x1800001f
,
0x03800e12
,
0x1b80001f
,
0x20000300
,
0x1800001f
,
0x20000300
,
0x1800001f
,
0x00000012
,
0x1b80001f
,
0x20000104
,
0x10007c1f
,
0x00000e12
,
0x1b80001f
,
0x20000300
,
0x1800001f
,
0x00000012
,
0x1b80001f
,
0x81f38407
,
0x81f98407
,
0x81f90407
,
0x81f40407
,
0x1b80001f
,
0x200016a8
,
0x20000104
,
0x10007c1f
,
0x81f38407
,
0x81f98407
,
0x81f90407
,
0x81f40407
,
0x81401801
,
0xd8005d65
,
0x17c07c1f
,
0xe8208000
,
0x10006404
,
0x00002101
,
0x1b80001f
,
0x200016a8
,
0x81401801
,
0xd8005da5
,
0x17c07c1f
,
0xe8208000
,
0x18c0001f
,
0x10006290
,
0x1212841f
,
0xc0c05fa0
,
0x12807c1f
,
0xc0c05fa0
,
0x10006404
,
0x00002101
,
0x18c0001f
,
0x10006290
,
0x1212841f
,
0xc0c05fe0
,
0x1280041f
,
0x18c0001f
,
0x10006208
,
0x1212841f
,
0xc0c05fa0
,
0x12807c1f
,
0x12807c1f
,
0xc0c05fe0
,
0x1280041f
,
0x18c0001f
,
0x10006208
,
0x1212841f
,
0xe8208000
,
0x10006244
,
0x00000000
,
0x1b80001f
,
0x20000080
,
0xc0c05fa0
,
0xc0c05fe0
,
0x12807c1f
,
0xe8208000
,
0x10006244
,
0x00000000
,
0x1b80001f
,
0x1280041f
,
0xe8208000
,
0x10200268
,
0x000ffffe
,
0x18c0001f
,
0x10006204
,
0x20000080
,
0xc0c05fe0
,
0x1280041f
,
0xe8208000
,
0x10200268
,
0x000ffffe
,
0x1212841f
,
0xc0c06300
,
0x1280041f
,
0x18c0001f
,
0x10006200
,
0x1212841f
,
0x18c0001f
,
0x10006204
,
0x1212841f
,
0xc0c06340
,
0x1280041f
,
0x18c0001f
,
0xc0c05fa0
,
0x12807c1f
,
0xe8208000
,
0x1000625c
,
0x00000000
,
0x1b80001f
,
0x10006200
,
0x1212841f
,
0xc0c05fe0
,
0x12807c1f
,
0xe8208000
,
0x1000625c
,
0x20000080
,
0xc0c05fa0
,
0x1280041f
,
0x19c0001f
,
0x01411820
,
0x1ac0001f
,
0x00000000
,
0x1b80001f
,
0x20000080
,
0xc0c05fe0
,
0x1280041f
,
0x19c0001f
,
0x55aa55aa
,
0x10007c1f
,
0xf0000000
,
0xd8005eca
,
0x17c07c1f
,
0xe2e0004f
,
0x01411820
,
0x1ac0001f
,
0x55aa55aa
,
0x10007c1f
,
0xf0000000
,
0xd8005f0a
,
0xe2e0006f
,
0xe2e0002f
,
0xd8205f6a
,
0x17c07c1f
,
0xe2e0002e
,
0xe2e0003e
,
0x17c07c1f
,
0xe2e0004f
,
0xe2e0006f
,
0xe2e0002f
,
0xd8205faa
,
0x17c07c1f
,
0xe2e00032
,
0xf0000000
,
0x17c07c1f
,
0xd800606a
,
0x17c07c1f
,
0xe2e00036
,
0xe2e0002e
,
0xe2e0003e
,
0xe2e00032
,
0xf0000000
,
0x17c07c1f
,
0xd80060aa
,
0xe2e0003e
,
0x1380201f
,
0xe2e0003c
,
0xd820618a
,
0x17c07c1f
,
0x1380201f
,
0x17c07c1f
,
0xe2e00036
,
0xe2e0003e
,
0x1380201f
,
0xe2e0003c
,
0xd82061ca
,
0xe2e0007c
,
0x1b80001f
,
0x20000003
,
0xe2e0005c
,
0xe2e0004c
,
0xe2e0004d
,
0x17c07c1f
,
0x1380201f
,
0xe2e0007c
,
0x1b80001f
,
0x20000003
,
0xe2e0005c
,
0xf0000000
,
0x17c07c1f
,
0xd82062c9
,
0x17c07c1f
,
0xe2e0000d
,
0xe2e0000c
,
0xe2e0004c
,
0xe2e0004d
,
0xf0000000
,
0x17c07c1f
,
0xd8206309
,
0x17c07c1f
,
0xe2e0001c
,
0xe2e0001e
,
0xe2e00016
,
0xe2e00012
,
0xf0000000
,
0x17c07c1f
,
0xe2e0000d
,
0xe2e0000c
,
0xe2e0001c
,
0xe2e0001e
,
0xe2e00016
,
0xe2e00012
,
0xd8206449
,
0x17c07c1f
,
0xe2e00016
,
0x1380201f
,
0xe2e0001e
,
0x1380201f
,
0xf0000000
,
0x17c07c1f
,
0xd8206489
,
0x17c07c1f
,
0xe2e00016
,
0x1380201f
,
0xe2e0001c
,
0x1380201f
,
0xe2e0000c
,
0xe2e0000d
,
0xf0000000
,
0x17c07c1f
,
0xe2e0001e
,
0x1380201f
,
0xe2e0001c
,
0x1380201f
,
0xe2e0000c
,
0xe2e0000d
,
0xa1d40407
,
0x1391841f
,
0xa1d90407
,
0x1393041f
,
0xf0000000
,
0x17c07c1f
,
0xf0000000
,
0x17c07c1f
,
0xa1d40407
,
0x1391841f
,
0xa1d90407
,
0x1393041f
,
0x18d0001f
,
0x10006604
,
0x10cf8c1f
,
0xd8206543
,
0x17c07c1f
,
0xf0000000
,
0xf0000000
,
0x17c07c1f
,
0x18d0001f
,
0x10006604
,
0x10cf8c1f
,
0xd8206583
,
0x17c07c1f
,
0xe8208000
,
0x11008014
,
0x00000002
,
0xe8208000
,
0x11008020
,
0x17c07c1f
,
0xf0000000
,
0x17c07c1f
,
0xe8208000
,
0x11008014
,
0x00000002
,
0x00000101
,
0xe8208000
,
0x11008004
,
0x000000d0
,
0x1a00001f
,
0x11008000
,
0xe8208000
,
0x11008020
,
0x00000101
,
0xe8208000
,
0x11008004
,
0x000000d0
,
0xd800680a
,
0xe220005d
,
0xd820682a
,
0xe2200000
,
0xe2200001
,
0xe8208000
,
0x1a00001f
,
0x11008000
,
0xd800684a
,
0xe220005d
,
0xd820686a
,
0xe2200000
,
0x11008024
,
0x00000001
,
0x1b80001f
,
0x20000424
,
0xf0000000
,
0x17c07c1f
,
0xe2200001
,
0xe8208000
,
0x11008024
,
0x00000001
,
0x1b80001f
,
0x20000424
,
0xa1d10407
,
0x1b80001f
,
0x20000020
,
0xf0000000
,
0x17c07c1f
0xf0000000
,
0x17c07c1f
,
0xa1d10407
,
0x1b80001f
,
0x20000020
,
0xf0000000
,
0x17c07c1f
};
};
/*
/*
* PCM binary for suspend scenario
* PCM binary for suspend scenario
*/
*/
static
const
struct
pcm_desc
suspend_pcm_ca7
=
{
static
const
struct
pcm_desc
suspend_pcm_ca7
=
{
.
version
=
"pcm_suspend_
v32.18_20140721_mt8173_v00.03_MD32_EMPTY_CA7
"
,
.
version
=
"pcm_suspend_
20150805_V1
"
,
.
base
=
suspend_binary_ca7
,
.
base
=
suspend_binary_ca7
,
.
size
=
84
5
,
.
size
=
84
7
,
.
sess
=
2
,
.
sess
=
2
,
.
replace
=
0
,
.
replace
=
0
,
.
vec0
=
EVENT_VEC
(
11
,
1
,
0
,
0
),
.
vec0
=
EVENT_VEC
(
11
,
1
,
0
,
0
),
...
...
plat/mediatek/mt8173/plat_pm.c
View file @
895a7fb4
...
@@ -497,8 +497,9 @@ static void __dead2 plat_system_reset(void)
...
@@ -497,8 +497,9 @@ static void __dead2 plat_system_reset(void)
/* Write the System Configuration Control Register */
/* Write the System Configuration Control Register */
INFO
(
"MTK System Reset
\n
"
);
INFO
(
"MTK System Reset
\n
"
);
mmio_clrbits_32
(
MTK_WDT_BASE
,
mmio_clrsetbits_32
(
MTK_WDT_BASE
,
(
MTK_WDT_MODE_DUAL_MODE
|
MTK_WDT_MODE_IRQ
));
(
MTK_WDT_MODE_DUAL_MODE
|
MTK_WDT_MODE_IRQ
),
MTK_WDT_MODE_KEY
);
mmio_setbits_32
(
MTK_WDT_BASE
,
(
MTK_WDT_MODE_KEY
|
MTK_WDT_MODE_EXTEN
));
mmio_setbits_32
(
MTK_WDT_BASE
,
(
MTK_WDT_MODE_KEY
|
MTK_WDT_MODE_EXTEN
));
mmio_setbits_32
(
MTK_WDT_SWRST
,
MTK_WDT_SWRST_KEY
);
mmio_setbits_32
(
MTK_WDT_SWRST
,
MTK_WDT_SWRST_KEY
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment