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
df42c311
Commit
df42c311
authored
5 years ago
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "uniphier: fix typo and coding style" into integration
parents
ce12d794
4dd4bde4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
plat/socionext/uniphier/uniphier_bl31_setup.c
+2
-2
plat/socionext/uniphier/uniphier_bl31_setup.c
plat/socionext/uniphier/uniphier_gicv3.c
+10
-10
plat/socionext/uniphier/uniphier_gicv3.c
plat/socionext/uniphier/uniphier_io_storage.c
+2
-2
plat/socionext/uniphier/uniphier_io_storage.c
plat/socionext/uniphier/uniphier_psci.c
+4
-4
plat/socionext/uniphier/uniphier_psci.c
with
18 additions
and
18 deletions
+18
-18
plat/socionext/uniphier/uniphier_bl31_setup.c
View file @
df42c311
...
...
@@ -35,7 +35,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
{
void
*
from_bl2
;
from_bl2
=
(
void
*
)
arg0
;
from_bl2
=
(
void
*
)
arg0
;
bl_params_node_t
*
bl_params
=
((
bl_params_t
*
)
from_bl2
)
->
head
;
...
...
@@ -76,7 +76,7 @@ void bl31_platform_setup(void)
/* Enable and initialize the System level generic timer */
mmio_write_32
(
UNIPHIER_SYS_CNTCTL_BASE
+
CNTCR_OFF
,
CNTCR_FCREQ
(
0U
)
|
CNTCR_EN
);
CNTCR_FCREQ
(
0U
)
|
CNTCR_EN
);
}
void
bl31_plat_arch_setup
(
void
)
...
...
This diff is collapsed.
Click to expand it.
plat/socionext/uniphier/uniphier_gicv3.c
View file @
df42c311
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -21,34 +21,34 @@ static const interrupt_prop_t uniphier_interrupt_props[] = {
/* SGI0 */
INTR_PROP_DESC
(
8
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP0
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* SGI6 */
INTR_PROP_DESC
(
14
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP0
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* G1S interrupts */
/* Timer */
INTR_PROP_DESC
(
29
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_LEVEL
),
GIC_INTR_CFG_LEVEL
),
/* SGI1 */
INTR_PROP_DESC
(
9
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* SGI2 */
INTR_PROP_DESC
(
10
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* SGI3 */
INTR_PROP_DESC
(
11
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* SGI4 */
INTR_PROP_DESC
(
12
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* SGI5 */
INTR_PROP_DESC
(
13
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_EDGE
),
GIC_INTR_CFG_EDGE
),
/* SGI7 */
INTR_PROP_DESC
(
15
,
GIC_HIGHEST_SEC_PRIORITY
,
INTR_GROUP1S
,
GIC_INTR_CFG_EDGE
)
GIC_INTR_CFG_EDGE
)
};
static
unsigned
int
uniphier_mpidr_to_core_pos
(
u_register_t
mpidr
)
...
...
This diff is collapsed.
Click to expand it.
plat/socionext/uniphier/uniphier_io_storage.c
View file @
df42c311
/*
* Copyright (c) 2017-201
8
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -331,7 +331,7 @@ int plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle,
assert
(
image_id
<
ARRAY_SIZE
(
uniphier_io_policies
));
*
dev_handle
=
*
(
uniphier_io_policies
[
image_id
].
dev_handle
)
;
*
dev_handle
=
*
uniphier_io_policies
[
image_id
].
dev_handle
;
*
image_spec
=
uniphier_io_policies
[
image_id
].
image_spec
;
init_params
=
uniphier_io_policies
[
image_id
].
init_params
;
...
...
This diff is collapsed.
Click to expand it.
plat/socionext/uniphier/uniphier_psci.c
View file @
df42c311
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -14,9 +14,9 @@
#define UNIPHIER_ROM_RSV0 0x59801200
#define UNIPHIER_SLFRSTSEL 0x61843010
#define UNIPHIER_SLFRSTSEL_MASK
(0x3 <<
0)
#define UNIPHIER_SLFRSTSEL_MASK
GENMASK(1,
0)
#define UNIPHIER_SLFRSTCTL 0x61843014
#define UNIPHIER_SLFRSTCTL_RST
(1 <<
0)
#define UNIPHIER_SLFRSTCTL_RST
BIT(
0)
#define MPIDR_AFFINITY_INVALID ((u_register_t)-1)
...
...
@@ -58,7 +58,7 @@ static void __dead2 uniphier_psci_pwr_domain_pwr_down_wfi(
const
psci_power_state_t
*
target_state
)
{
/*
* The Boot ROM cannot distinguish war
n
and cold resets.
* The Boot ROM cannot distinguish war
m
and cold resets.
* Instead of the CPU reset, fake it.
*/
uniphier_holding_pen_release
=
MPIDR_AFFINITY_INVALID
;
...
...
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