aboutsummaryrefslogtreecommitdiffstats
path: root/include/plat
diff options
context:
space:
mode:
authorLuka Kovacic <luka.kovacic@sartura.hr>2020-01-13 20:37:35 +0100
committerLuka Kovacic <luka.kovacic@sartura.hr>2020-01-15 07:31:43 +0100
commit8c11ebfcdac0802119293f8c00912a54048ddd02 (patch)
tree89a47aa69aeca606c0497bad92a45f1bc80156e4 /include/plat
parent743600b25ccbea5733a9794241f98f2a9cdd508d (diff)
downloadplatform_external_arm-trusted-firmware-8c11ebfcdac0802119293f8c00912a54048ddd02.tar.gz
platform_external_arm-trusted-firmware-8c11ebfcdac0802119293f8c00912a54048ddd02.tar.bz2
platform_external_arm-trusted-firmware-8c11ebfcdac0802119293f8c00912a54048ddd02.zip
a8k: Implement platform specific power off
Implements a way to add platform specific power off code to a Marvell Armada 8K platform. Marvell Armada 8K boards can now add a board/system_power.c file that contains a system_power_off() function. This function can now send a command to a power management MCU or other board periferals before shutting the board down. Signed-off-by: Luka Kovacic <luka.kovacic@sartura.hr> Cc: Luka Perkov <luka.perkov@sartura.hr> Change-Id: Iaba20bc2f603195679c54ad12c0c18962dd8e3db --- I am working on a device that will be ported later, which has a custom power management MCU that handles LEDs, board power and fans and requires this separation.
Diffstat (limited to 'include/plat')
-rw-r--r--include/plat/marvell/a8k/common/armada_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/plat/marvell/a8k/common/armada_common.h b/include/plat/marvell/a8k/common/armada_common.h
index dd2a24abc..709d009c2 100644
--- a/include/plat/marvell/a8k/common/armada_common.h
+++ b/include/plat/marvell/a8k/common/armada_common.h
@@ -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 */