summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/mt8183/drivers/timer/mt_timer.h
blob: 0b8edc51788f3f9473f8798507629e3ab57b9853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * 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 */