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
351ab9f5
Commit
351ab9f5
authored
5 years ago
by
Manish Pandey
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "a8k: Implement platform specific power off" into integration
parents
7bad6e08
8c11ebfc
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
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
include/plat/marvell/a8k/common/armada_common.h
+1
-0
include/plat/marvell/a8k/common/armada_common.h
plat/marvell/a8k/common/a8k_common.mk
+11
-0
plat/marvell/a8k/common/a8k_common.mk
plat/marvell/a8k/common/plat_pm.c
+12
-0
plat/marvell/a8k/common/plat_pm.c
with
24 additions
and
0 deletions
+24
-0
include/plat/marvell/a8k/common/armada_common.h
View file @
351ab9f5
...
...
@@ -124,5 +124,6 @@ int marvell_get_iob_memory_map(struct addr_map_win **win,
uint32_t
*
size
,
uintptr_t
base
);
int
marvell_get_ccu_memory_map
(
int
ap_idx
,
struct
addr_map_win
**
win
,
uint32_t
*
size
);
int
system_power_off
(
void
);
#endif
/* ARMADA_COMMON_H */
This diff is collapsed.
Click to expand it.
plat/marvell/a8k/common/a8k_common.mk
View file @
351ab9f5
...
...
@@ -37,6 +37,13 @@ DOIMAGETOOL ?= ${DOIMAGEPATH}/doimage
ROM_BIN_EXT
?=
$(BUILD_PLAT)
/ble.bin
DOIMAGE_FLAGS
+=
-b
$(ROM_BIN_EXT)
$(NAND_DOIMAGE_FLAGS)
$(DOIMAGE_SEC_FLAGS)
# Check whether to build system_power.c for the platform
ifneq
("$(wildcard $(PLAT_FAMILY_BASE)/$(PLAT)/board/system_power.c)","")
SYSTEM_POWER_SUPPORT
=
1
else
SYSTEM_POWER_SUPPORT
=
0
endif
# This define specifies DDR type for BLE
$(eval
$(call
add_define,CONFIG_DDR4))
...
...
@@ -82,6 +89,10 @@ MARVELL_DRV := $(MARVELL_DRV_BASE)/io_win.c \
BL31_PORTING_SOURCES
:=
$(PLAT_FAMILY_BASE)
/
$(PLAT)
/board/marvell_plat_config.c
ifeq
($(SYSTEM_POWER_SUPPORT),1)
BL31_PORTING_SOURCES
+=
$(PLAT_FAMILY_BASE)
/
$(PLAT)
/board/system_power.c
endif
BL31_SOURCES
+=
lib/cpus/aarch64/cortex_a72.S
\
$(PLAT_COMMON_BASE)
/aarch64/plat_helpers.S
\
$(PLAT_COMMON_BASE)
/aarch64/plat_arch_config.c
\
...
...
This diff is collapsed.
Click to expand it.
plat/marvell/a8k/common/plat_pm.c
View file @
351ab9f5
...
...
@@ -792,8 +792,20 @@ __dead2 a8k_pwr_domain_pwr_down_wfi(const psci_power_state_t *target_state)
* A8K handlers to shutdown/reboot the system
*****************************************************************************
*/
/* Set a weak stub for platforms that don't configure system power off */
#pragma weak system_power_off
int
system_power_off
(
void
)
{
return
0
;
}
static
void
__dead2
a8k_system_off
(
void
)
{
/* Call the platform specific system power off function */
system_power_off
();
/* board doesn't have a system off implementation */
ERROR
(
"%s: needs to be implemented
\n
"
,
__func__
);
panic
();
}
...
...
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