coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
timer_common.h File Reference
#include <types.h>
Include dependency graph for timer_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  GPT6_CON_EN = BIT(0) , GPT6_CON_CLR = BIT(1) , GPT6_MODE_FREERUN = 3 , GPT6_CLK_CLK6_SYS = 0 ,
  GPT6_CLK_CLKDIV_DIV1 = 0
}
 

Functions

void timer_prepare (void)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GPT6_CON_EN 
GPT6_CON_CLR 
GPT6_MODE_FREERUN 
GPT6_CLK_CLK6_SYS 
GPT6_CLK_CLKDIV_DIV1 

Definition at line 8 of file timer_common.h.

Function Documentation

◆ timer_prepare()

void timer_prepare ( void  )

Definition at line 13 of file timer.c.

References clrbits32, COMP_25_MASK, COMP_FEATURE_MASK, GPT_MHZ, mt8173_mcucfg, setbits32, SYSTIMER_BASE, write32(), mt8173_mcucfg_regs::xgpt_ctl, and mt8173_mcucfg_regs::xgpt_idx.

Referenced by init_timer().

Here is the call graph for this function:
Here is the caller graph for this function: