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
15047150
Unverified
Commit
15047150
authored
7 years ago
by
davidcunado-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1259 from hzhuang1/fix_uart
hikey960: avoid hardcode on uart port
parents
3d4f6035
135d713c
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
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/hisilicon/hikey960/hikey960_pm.c
+15
-1
plat/hisilicon/hikey960/hikey960_pm.c
with
15 additions
and
1 deletion
+15
-1
plat/hisilicon/hikey960/hikey960_pm.c
View file @
15047150
...
...
@@ -29,6 +29,7 @@
#define DMAC_GLB_REG_SEC 0x694
#define AXI_CONF_BASE 0x820
static
unsigned
int
uart_base
;
static
uintptr_t
hikey960_sec_entrypoint
;
static
void
hikey960_pwr_domain_standby
(
plat_local_state_t
cpu_state
)
...
...
@@ -263,7 +264,7 @@ hikey960_pwr_domain_suspend_finish(const psci_power_state_t *target_state)
if
(
hisi_test_ap_suspend_flag
(
cluster
))
{
hikey960_sr_dma_reinit
();
gicv2_cpuif_enable
();
console_init
(
PL011_UART6_BASE
,
PL011_UART_CLK_IN_HZ
,
console_init
(
uart_base
,
PL011_UART_CLK_IN_HZ
,
PL011_BAUDRATE
);
}
...
...
@@ -295,6 +296,19 @@ static const plat_psci_ops_t hikey960_psci_ops = {
int
plat_setup_psci_ops
(
uintptr_t
sec_entrypoint
,
const
plat_psci_ops_t
**
psci_ops
)
{
unsigned
int
id
=
0
;
int
ret
;
ret
=
hikey960_read_boardid
(
&
id
);
if
(
ret
==
0
)
{
if
(
id
==
5300U
)
uart_base
=
PL011_UART5_BASE
;
else
uart_base
=
PL011_UART6_BASE
;
}
else
{
uart_base
=
PL011_UART6_BASE
;
}
hikey960_sec_entrypoint
=
sec_entrypoint
;
INFO
(
"%s: sec_entrypoint=0x%lx
\n
"
,
__func__
,
...
...
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