summaryrefslogtreecommitdiff
path: root/chip/mt_scp/rv32i_common/scp_timer.h
blob: 1eed1d779210ff9e8bbebbd9243138a87560750f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __SCP_TIMER_H
#define __SCP_TIMER_H

/* detect existance of 26m clock in S3 stage */
#define TIMER_SR 4

void timer_enable(int n);
void timer_disable(int n);
uint32_t timer_read_raw_sr(void);

#endif /* __SCP_TIMER_H */