mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
feat(mediatek): extend SiP vendor subscription events
Leverage pubsub event framework to customize vendor's event for better software modularization instead of adding call entries in abstraction layer for customized platform function with wrap-up define. Signed-off-by: Leon Chen <leon.chen@mediatek.com> Change-Id: I48be2303c45f759776fa2baa1c21130c1a8f0fa3
This commit is contained in:
parent
029f9b9c01
commit
99d30b72c0
1 changed files with 21 additions and 0 deletions
21
plat/mediatek/include/vendor_pubsub_events.h
Normal file
21
plat/mediatek/include/vendor_pubsub_events.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2022, MediaTek Inc. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef VENDOR_PUBSUB_EVENTS_H
|
||||
#define VENDOR_PUBSUB_EVENTS_H
|
||||
|
||||
#include <lib/el3_runtime/pubsub.h>
|
||||
|
||||
REGISTER_PUBSUB_EVENT(lpm_publish_event);
|
||||
REGISTER_PUBSUB_EVENT(suspend_publish_event);
|
||||
REGISTER_PUBSUB_EVENT(mt_cpupm_publish_pwr_on);
|
||||
REGISTER_PUBSUB_EVENT(mt_cpupm_publish_pwr_off);
|
||||
REGISTER_PUBSUB_EVENT(mt_cpupm_publish_afflv_pwr_on);
|
||||
REGISTER_PUBSUB_EVENT(mt_cpupm_publish_afflv_pwr_off);
|
||||
REGISTER_PUBSUB_EVENT(publish_check_wakeup_irq);
|
||||
REGISTER_PUBSUB_EVENT(watchdog_timeout);
|
||||
|
||||
#endif /* VENDOR_PUBSUB_EVENTS_H */
|
Loading…
Add table
Reference in a new issue