Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
1cde9b94
Commit
1cde9b94
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1089 from Leo-Yan/hikey_enable_debug_module
Hikey: enable CPU debug module
parents
508a0f2a
e246617b
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plat/hisilicon/hikey/hikey_pm.c
+2
-0
plat/hisilicon/hikey/hikey_pm.c
plat/hisilicon/hikey/hisi_pwrc.c
+15
-0
plat/hisilicon/hikey/hisi_pwrc.c
plat/hisilicon/hikey/include/hisi_pwrc.h
+2
-0
plat/hisilicon/hikey/include/hisi_pwrc.h
with
19 additions
and
0 deletions
+19
-0
plat/hisilicon/hikey/hikey_pm.c
View file @
1cde9b94
...
...
@@ -40,7 +40,9 @@ static int hikey_pwr_domain_on(u_register_t mpidr)
hisi_ipc_cluster_on
(
cpu
,
cluster
);
hisi_pwrc_set_core_bx_addr
(
cpu
,
cluster
,
hikey_sec_entrypoint
);
hisi_pwrc_enable_debug
(
cpu
,
cluster
);
hisi_ipc_cpu_on
(
cpu
,
cluster
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
plat/hisilicon/hikey/hisi_pwrc.c
View file @
1cde9b94
...
...
@@ -51,6 +51,21 @@ void hisi_pwrc_set_cluster_wfi(unsigned int cluster)
}
}
void
hisi_pwrc_enable_debug
(
unsigned
int
core
,
unsigned
int
cluster
)
{
unsigned
int
val
,
enable
;
enable
=
1U
<<
(
core
+
PDBGUP_CLUSTER1_SHIFT
*
cluster
);
/* Enable debug module */
val
=
mmio_read_32
(
ACPU_SC_PDBGUP_MBIST
);
mmio_write_32
(
ACPU_SC_PDBGUP_MBIST
,
val
|
enable
);
do
{
/* RAW barrier */
val
=
mmio_read_32
(
ACPU_SC_PDBGUP_MBIST
);
}
while
(
!
(
val
&
enable
));
}
int
hisi_pwrc_setup
(
void
)
{
unsigned
int
reg
,
sec_entrypoint
;
...
...
This diff is collapsed.
Click to expand it.
plat/hisilicon/hikey/include/hisi_pwrc.h
View file @
1cde9b94
...
...
@@ -13,6 +13,8 @@ void hisi_pwrc_set_cluster_wfi(unsigned int id);
void
hisi_pwrc_set_core_bx_addr
(
unsigned
int
core
,
unsigned
int
cluster
,
uintptr_t
entry_point
);
void
hisi_pwrc_enable_debug
(
unsigned
int
core
,
unsigned
int
cluster
);
int
hisi_pwrc_setup
(
void
);
#endif
/*__ASSEMBLY__*/
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help