mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-15 00:47:02 +02:00
add timer driver. Signed-off-by: Fengquan Chen <fengquan.chen@mediatek.com> Change-Id: I60a7273f922233a618a6163b802c0858ed89f75f
21 lines
423 B
C
21 lines
423 B
C
/*
|
|
* Copyright (c) 2020, MediaTek Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef MT_TIMER_H
|
|
#define MT_TIMER_H
|
|
|
|
|
|
#define SYSTIMER_BASE (0x10017000)
|
|
#define CNTCR_REG (SYSTIMER_BASE + 0x0)
|
|
#define CNTSR_REG (SYSTIMER_BASE + 0x4)
|
|
|
|
#define COMP_15_EN (1 << 10)
|
|
#define COMP_20_EN (1 << 11)
|
|
|
|
void mt_systimer_init(void);
|
|
|
|
#endif /* MT_TIMER_H */
|