coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
timer_common.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef SOC_MEDIATEK_COMMON_TIMER_COMMON_H
4
#define SOC_MEDIATEK_COMMON_TIMER_COMMON_H
5
6
#include <types.h>
7
8
enum
{
9
GPT6_CON_EN
=
BIT
(0),
10
GPT6_CON_CLR
=
BIT
(1),
11
GPT6_MODE_FREERUN
= 3,
12
GPT6_CLK_CLK6_SYS
= 0,
13
GPT6_CLK_CLKDIV_DIV1
= 0,
14
};
15
16
/*
17
* This is defined as weak no-ops that can be overridden by legacy SOCs. Some
18
* legacy SOCs need specific settings before init timer. And we expect future
19
* SOCs will not need it.
20
*/
21
void
timer_prepare
(
void
);
22
23
#endif
BIT
#define BIT(nr)
Definition:
ec_commands.h:45
GPT6_CON_EN
@ GPT6_CON_EN
Definition:
timer_common.h:9
GPT6_MODE_FREERUN
@ GPT6_MODE_FREERUN
Definition:
timer_common.h:11
GPT6_CON_CLR
@ GPT6_CON_CLR
Definition:
timer_common.h:10
GPT6_CLK_CLK6_SYS
@ GPT6_CLK_CLK6_SYS
Definition:
timer_common.h:12
GPT6_CLK_CLKDIV_DIV1
@ GPT6_CLK_CLKDIV_DIV1
Definition:
timer_common.h:13
timer_prepare
void timer_prepare(void)
Definition:
timer.c:13
src
soc
mediatek
common
include
soc
timer_common.h
Generated by
1.9.1