diff options
author | Lionel Debieve <lionel.debieve@st.com> | 2019-09-24 16:59:56 +0200 |
---|---|---|
committer | Lionel Debieve <lionel.debieve@st.com> | 2019-10-03 18:57:25 +0000 |
commit | 0711ee5cbc5645b55de1a751bd52dc8ce02ae037 (patch) | |
tree | 53471c214343cd22e8edb4dfb98b145365ac4a0d /plat/marvell | |
parent | cf9319f46a1dd17c842297a8aeb68059f6f3a06f (diff) |
delay: timeout detection support
Introduce timeout_init_us/timeout_elapsed() delay tracking with CNTPCT.
timeout_init_us(some_timeout_us); returns a reference to detect
timeout for the provided microsecond delay value from current time.
timeout_elapsed(reference) return true/false whether the reference
timeout is elapsed.
Cherry picked from OP-TEE implementation [1].
[1] commit 33d30a74502b ("core: timeout detection support")
Minor:
- Remove stm32mp platform duplicated implementation.
- Add new include in marvell ble.mk
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: Iaef6d43c11a2e6992fb48efdc674a0552755ad9c
Diffstat (limited to 'plat/marvell')
-rw-r--r-- | plat/marvell/a8k/common/ble/ble.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plat/marvell/a8k/common/ble/ble.mk b/plat/marvell/a8k/common/ble/ble.mk index b24083fc..b6a9cd29 100644 --- a/plat/marvell/a8k/common/ble/ble.mk +++ b/plat/marvell/a8k/common/ble/ble.mk @@ -19,6 +19,7 @@ BLE_SOURCES += $(BLE_PATH)/ble_main.c \ PLAT_INCLUDES += -I$(MV_DDR_PATH) \ -I$(CURDIR)/include \ + -I$(CURDIR)/include/arch/aarch64 \ -I$(CURDIR)/include/lib/libc \ -I$(CURDIR)/include/lib/libc/aarch64 \ -I$(CURDIR)/drivers/marvell |