coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
clk_rst.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for clk_rst.h:

Go to the source code of this file.

Data Structures

struct  clk_rst_ctlr
 

Macros

#define CLK_RST_REG(field_)    (&(((struct clk_rst_ctlr *)TEGRA_CLK_RST_BASE)->field_))
 
#define DEV_CONFIG_BLOCKS   7
 
#define TEGRA_DEV_L   0
 
#define TEGRA_DEV_H   1
 
#define TEGRA_DEV_U   2
 
#define TEGRA_DEV_V   0
 
#define TEGRA_DEV_W   1
 
#define SIMPLE_PLLX   (CLOCK_ID_XCPU - CLOCK_ID_FIRST_SIMPLE)
 
#define CLK_ENB_CPU   (1 << 0)
 
#define SWR_TRIG_SYS_RST   (1 << 2)
 
#define SWR_CSITE_RST   (1 << 9)
 
#define CLK_ENB_CSITE   (1 << 9)
 
#define CLK_ENB_EMC_DLL   (1 << 14)
 
#define CCLK_BURST_POLICY_VAL   0x20008888
 
#define CLK_M_DIVISOR_MASK   (0x3 << 2)
 
#define CLK_M_DIVISOR_BY_2   (1 << 2)
 
#define SUPER_CDIV_ENB_ENABLE   (1 << 31)
 
#define EN_PPSB_STOPCLK   (1 << 0)
 
#define CPU3_CLK_STP_SHIFT   11
 
#define CPU2_CLK_STP_SHIFT   10
 
#define CPU1_CLK_STP_SHIFT   9
 
#define CPU0_CLK_STP_SHIFT   8
 
#define CPU0_CLK_STP_MASK   (1U << CPU0_CLK_STP_SHIFT)
 
#define OSC_FREQ_SHIFT   28
 
#define OSC_FREQ_MASK   (0xf << OSC_FREQ_SHIFT)
 
#define OSC_PREDIV_SHIFT   26
 
#define OSC_PREDIV_MASK   (0x3 << OSC_PREDIV_SHIFT)
 
#define OSC_XOFS_SHIFT   4
 
#define OSC_XOFS_MASK   (0x3F << OSC_XOFS_SHIFT)
 
#define OSC_DRIVE_STRENGTH   7
 
#define OSC_XOBP   (1 << 1)
 
#define OSC_XOE   (1 << 0)
 
#define PLL_BASE_BYPASS   (1U << 31)
 
#define PLL_BASE_ENABLE   (1U << 30)
 
#define PLL_BASE_REF_DIS   (1U << 29)
 
#define PLL_BASE_OVRRIDE   (1U << 28)
 
#define PLL_BASE_LOCK   (1U << 27)
 
#define PLLC_BASE_LOCK   (1U << 26)
 
#define PLL_BASE_DIVP_SHIFT   20
 
#define PLL_BASE_DIVP_MASK   (7U << PLL_BASE_DIVP_SHIFT)
 
#define PLL_BASE_DIVN_SHIFT   8
 
#define PLL_BASE_DIVN_MASK   (0x3ffU << PLL_BASE_DIVN_SHIFT)
 
#define PLL_BASE_DIVM_SHIFT   0
 
#define PLL_BASE_DIVM_MASK   (0x1f << PLL_BASE_DIVM_SHIFT)
 
#define PLLCX_BASE_DIVP_MASK   (0xfU << PLL_BASE_DIVP_SHIFT)
 
#define PLLM_BASE_DIVP_MASK   (0x1fU << PLL_BASE_DIVP_SHIFT)
 
#define PLLCMX_BASE_DIVN_MASK   (0xffU << PLL_BASE_DIVN_SHIFT)
 
#define PLLCMX_BASE_DIVM_MASK   (0xffU << PLL_BASE_DIVM_SHIFT)
 
#define PLLC_MISC_RESET   (1U << 30)
 
#define PLLC_MISC_1_IDDQ   (1U << 27)
 
#define PLLD_N_SHIFT   11
 
#define PLLD_M_SHIFT   0
 
#define PLLD_P_SHIFT   20
 
#define PLLD_MISC1_SETUP   0x20
 
#define PLLD_MISC_EN_SDM   (1 << 16)
 
#define PLLD_MISC_SDM_DIN   0x9aa
 
#define PLLM_MISC1_SETUP_SHIFT   0
 
#define PLLM_MISC1_PD_LSHIFT_PH45_SHIFT   28
 
#define PLLM_MISC1_PD_LSHIFT_PH90_SHIFT   29
 
#define PLLM_MISC1_PD_LSHIFT_PH135_SHIFT   30
 
#define PLLM_MISC2_KCP_SHIFT   1
 
#define PLLM_MISC2_KVCO_SHIFT   0
 
#define PLLM_OUT1_RSTN_RESET_DISABLE   (1 << 0)
 
#define PLLM_EN_LCKDET   (1 << 4)
 
#define PLLU_MISC_IDDQ   (1U << 31)
 
#define UTMIP_CFG0_PLL_MDIV_SHIFT   (8)
 
#define UTMIP_CFG0_PLL_NDIV_SHIFT   (16)
 
#define UTMIP_CFG1_XTAL_FREQ_COUNT_SHIFT   (0)
 
#define UTMIP_CFG1_FORCE_PLL_ACTIVE_POWERDOWN_DISABLE   (0 << 12)
 
#define UTMIP_CFG1_FORCE_PLL_ENABLE_POWERDOWN_DISABLE   (0 << 14)
 
#define UTMIP_CFG1_FORCE_PLL_ENABLE_POWERUP_ENABLE   (1 << 15)
 
#define UTMIP_CFG1_FORCE_PLLU_POWERDOWN_ENABLE   (1 << 16)
 
#define UTMIP_CFG1_PLLU_ENABLE_DLY_COUNT_SHIFT   (27)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_A_POWERDOWN_DISABLE   (0 << 0)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_A_POWERUP_ENABLE   (1 << 1)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_B_POWERDOWN_DISABLE   (0 << 2)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_B_POWERUP_ENABLE   (1 << 3)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_C_POWERDOWN_DISABLE   (0 << 4)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_C_POWERUP_ENABLE   (1 << 5)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_D_POWERDOWN_DISABLE   (0 << 24)
 
#define UTMIP_CFG2_FORCE_PD_SAMP_D_POWERUP_ENABLE   (1 << 25)
 
#define UTMIP_CFG2_PLLU_STABLE_COUNT_SHIFT   (6)
 
#define UTMIP_CFG2_PLL_ACTIVE_DLY_COUNT_SHIFT   (18)
 
#define UTMIP_CFG2_PHY_XTAL_CLOCKEN   (1U << 30)
 
#define PLL_BASE_DIV_MASK   (0xffffff)
 
#define PLL_OUT_RSTN   (1 << 0)
 
#define PLL_OUT_CLKEN   (1 << 1)
 
#define PLL_OUT_OVR   (1 << 2)
 
#define PLL_OUT_RATIO_SHIFT   8
 
#define PLL_OUT_RATIO_MASK   (0xffU << PLL_OUT_RATIO_SHIFT)
 
#define PLL_OUT1_SHIFT   0
 
#define PLL_OUT2_SHIFT   16
 
#define PLL_OUT3_SHIFT   0
 
#define PLL_OUT4_SHIFT   16
 
#define PLLDPD2_MISC_LOCK_ENABLE   (1 << 30)
 
#define PLLU_MISC_LOCK_ENABLE   (1 << 29)
 
#define PLLD_MISC_LOCK_ENABLE   (1 << 18)
 
#define PLLD_MISC_CLK_ENABLE   (1 << 21)
 
#define PLLPAXS_MISC_LOCK_ENABLE   (1 << 18)
 
#define PLLE_MISC_LOCK_ENABLE   (1 << 9)
 
#define PLLX_BASE_PLLX_ENABLE   (1 << 30)
 
#define PLLX_IDDQ_SHIFT   3
 
#define PLLX_IDDQ_MASK   (1U << PLLX_IDDQ_SHIFT)
 
#define CLK_DIVISOR_MASK   (0xffff)
 
#define CLK_SOURCE_SHIFT   29
 
#define CLK_SOURCE_MASK   (0x7 << CLK_SOURCE_SHIFT)
 
#define CLK_SOURCE_EMC_MC_EMC_SAME_FREQ   (1 << 16)
 
#define EMC_2X_CLK_SRC_SHIFT   29
 
#define PLLM_UD   4
 
#define CLK_UART_DIV_OVERRIDE   (1 << 24)
 
#define SCLK_SYS_STATE_SHIFT   28U
 
#define SCLK_SYS_STATE_MASK   (15U << SCLK_SYS_STATE_SHIFT)
 
#define SCLK_COP_FIQ_MASK   (1 << 27)
 
#define SCLK_CPU_FIQ_MASK   (1 << 26)
 
#define SCLK_COP_IRQ_MASK   (1 << 25)
 
#define SCLK_CPU_IRQ_MASK   (1 << 24)
 
#define SCLK_FIQ_SHIFT   12
 
#define SCLK_FIQ_MASK   (7 << SCLK_FIQ_SHIFT)
 
#define SCLK_IRQ_SHIFT   8
 
#define SCLK_IRQ_MASK   (7 << SCLK_FIQ_SHIFT)
 
#define SCLK_RUN_SHIFT   4
 
#define SCLK_RUN_MASK   (7 << SCLK_FIQ_SHIFT)
 
#define SCLK_IDLE_SHIFT   0
 
#define SCLK_IDLE_MASK   (7 << SCLK_FIQ_SHIFT)
 
#define SCLK_DIV_ENB   (1 << 31)
 
#define SCLK_DIVIDEND_SHIFT   8
 
#define SCLK_DIVIDEND_MASK   (0xff << SCLK_DIVIDEND_SHIFT)
 
#define SCLK_DIVISOR_SHIFT   0
 
#define SCLK_DIVISOR_MASK   (0xff << SCLK_DIVISOR_SHIFT)
 
#define HCLK_DISABLE   (1 << 7)
 
#define HCLK_DIVISOR_SHIFT   4
 
#define HCLK_DIVISOR_MASK   (3 << AHB_RATE_SHIFT)
 
#define PCLK_DISABLE   (1 << 3)
 
#define PCLK_DIVISOR_SHIFT   0
 
#define PCLK_DIVISOR_MASK   (3 << AHB_RATE_SHIFT)
 
#define CAR2PMC_CPU_ACK_WIDTH_MASK   0xfff
 
#define MSELECT_CLK_SRC_PLLP_OUT0   (0 << 29)
 
#define SET_CLK_ENB_CPUG_ENABLE   (1 << 0)
 
#define SET_CLK_ENB_CPULP_ENABLE   (1 << 1)
 
#define SET_CLK_ENB_MSELECT_ENABLE   (1 << 3)
 
#define PLLU_POWERDOWN   (1 << 16)
 
#define PLL_ENABLE_POWERDOWN   (1 << 14)
 
#define PLL_ACTIVE_POWERDOWN   (1 << 12)
 
#define UTMIP_FORCE_PD_SAMP_C_POWERDOWN   (1 << 4)
 
#define UTMIP_FORCE_PD_SAMP_B_POWERDOWN   (1 << 2)
 
#define UTMIP_FORCE_PD_SAMP_A_POWERDOWN   (1 << 0)
 
#define TIMERUS_CNTR_1US   0x0
 
#define TIMERUS_USEC_CFG   0x4
 
#define TIMERUS_USEC_CFG_19P2_CLK_M   0x045F
 

Enumerations

enum  {
  OSC_FREQ_12 = 8 , OSC_FREQ_13 = 0 , OSC_FREQ_16P8 = 1 , OSC_FREQ_19P2 = 4 ,
  OSC_FREQ_26 = 12 , OSC_FREQ_38P4 = 5 , OSC_FREQ_48 = 9
}
 
enum  {
  SCLK_SYS_STATE_STDBY , SCLK_SYS_STATE_IDLE , SCLK_SYS_STATE_RUN , SCLK_SYS_STATE_IRQ = 4U ,
  SCLK_SYS_STATE_FIQ = 8U
}
 
enum  {
  SCLK_SOURCE_CLKM , SCLK_SOURCE_PLLC_OUT1 , SCLK_SOURCE_PLLP_OUT4 , SCLK_SOURCE_PLLP_OUT3 ,
  SCLK_SOURCE_PLLP_OUT2 , SCLK_SOURCE_PLLC_OUT0 , SCLK_SOURCE_CLKS , SCLK_SOURCE_PLLM_OUT1
}
 
enum  { CRC_CCLK_BRST_POL_PLLX_OUT0 = 0x8 , CRC_CCLK_BRST_POL_CPU_STATE_RUN = 0x2 }
 
enum  { CRC_SUPER_CCLK_DIVIDER_SUPER_CDIV_ENB = 1 << 31 }
 
enum  { CRC_CLK_CLR_CPU0_STP = 0x1 << 8 , CRC_CLK_CLR_CPU1_STP = 0x1 << 9 , CRC_CLK_CLR_CPU2_STP = 0x1 << 10 , CRC_CLK_CLR_CPU3_STP = 0x1 << 11 }
 
enum  {
  CRC_RST_CPUG_CLR_CPU0 = 0x1 << 0 , CRC_RST_CPUG_CLR_CPU1 = 0x1 << 1 , CRC_RST_CPUG_CLR_CPU2 = 0x1 << 2 , CRC_RST_CPUG_CLR_CPU3 = 0x1 << 3 ,
  CRC_RST_CPUG_CLR_DBG0 = 0x1 << 12 , CRC_RST_CPUG_CLR_DBG1 = 0x1 << 13 , CRC_RST_CPUG_CLR_DBG2 = 0x1 << 14 , CRC_RST_CPUG_CLR_DBG3 = 0x1 << 15 ,
  CRC_RST_CPUG_CLR_CORE0 = 0x1 << 16 , CRC_RST_CPUG_CLR_CORE1 = 0x1 << 17 , CRC_RST_CPUG_CLR_CORE2 = 0x1 << 18 , CRC_RST_CPUG_CLR_CORE3 = 0x1 << 19 ,
  CRC_RST_CPUG_CLR_CX0 = 0x1 << 20 , CRC_RST_CPUG_CLR_CX1 = 0x1 << 21 , CRC_RST_CPUG_CLR_CX2 = 0x1 << 22 , CRC_RST_CPUG_CLR_CX3 = 0x1 << 23 ,
  CRC_RST_CPUG_CLR_L2 = 0x1 << 24 , CRC_RST_CPUG_CLR_NONCPU = 0x1 << 29 , CRC_RST_CPUG_CLR_PDBG = 0x1 << 30
}
 
enum  {
  CRC_RST_CPULP_CLR_CPU0 = 0x1 << 0 , CRC_RST_CPULP_CLR_DBG0 = 0x1 << 12 , CRC_RST_CPULP_CLR_CORE0 = 0x1 << 16 , CRC_RST_CPULP_CLR_CX0 = 0x1 << 20 ,
  CRC_RST_CPULP_CLR_L2 = 0x1 << 24 , CRC_RST_CPULP_CLR_NONCPU = 0x1 << 29 , CRC_RST_CPULP_CLR_PDBG = 0x1 << 30
}
 

Functions

 check_member (clk_rst_ctlr, clk_src_qspi, 0x6C4)
 

Macro Definition Documentation

◆ CAR2PMC_CPU_ACK_WIDTH_MASK

#define CAR2PMC_CPU_ACK_WIDTH_MASK   0xfff

Definition at line 524 of file clk_rst.h.

◆ CCLK_BURST_POLICY_VAL

#define CCLK_BURST_POLICY_VAL   0x20008888

Definition at line 325 of file clk_rst.h.

◆ CLK_DIVISOR_MASK

#define CLK_DIVISOR_MASK   (0xffff)

Definition at line 463 of file clk_rst.h.

◆ CLK_ENB_CPU

#define CLK_ENB_CPU   (1 << 0)

Definition at line 318 of file clk_rst.h.

◆ CLK_ENB_CSITE

#define CLK_ENB_CSITE   (1 << 9)

Definition at line 321 of file clk_rst.h.

◆ CLK_ENB_EMC_DLL

#define CLK_ENB_EMC_DLL   (1 << 14)

Definition at line 322 of file clk_rst.h.

◆ CLK_M_DIVISOR_BY_2

#define CLK_M_DIVISOR_BY_2   (1 << 2)

Definition at line 328 of file clk_rst.h.

◆ CLK_M_DIVISOR_MASK

#define CLK_M_DIVISOR_MASK   (0x3 << 2)

Definition at line 327 of file clk_rst.h.

◆ CLK_RST_REG

#define CLK_RST_REG (   field_)     (&(((struct clk_rst_ctlr *)TEGRA_CLK_RST_BASE)->field_))

Definition at line 303 of file clk_rst.h.

◆ CLK_SOURCE_EMC_MC_EMC_SAME_FREQ

#define CLK_SOURCE_EMC_MC_EMC_SAME_FREQ   (1 << 16)

Definition at line 468 of file clk_rst.h.

◆ CLK_SOURCE_MASK

#define CLK_SOURCE_MASK   (0x7 << CLK_SOURCE_SHIFT)

Definition at line 466 of file clk_rst.h.

◆ CLK_SOURCE_SHIFT

#define CLK_SOURCE_SHIFT   29

Definition at line 465 of file clk_rst.h.

◆ CLK_UART_DIV_OVERRIDE

#define CLK_UART_DIV_OVERRIDE   (1 << 24)

Definition at line 472 of file clk_rst.h.

◆ CPU0_CLK_STP_MASK

#define CPU0_CLK_STP_MASK   (1U << CPU0_CLK_STP_SHIFT)

Definition at line 341 of file clk_rst.h.

◆ CPU0_CLK_STP_SHIFT

#define CPU0_CLK_STP_SHIFT   8

Definition at line 340 of file clk_rst.h.

◆ CPU1_CLK_STP_SHIFT

#define CPU1_CLK_STP_SHIFT   9

Definition at line 339 of file clk_rst.h.

◆ CPU2_CLK_STP_SHIFT

#define CPU2_CLK_STP_SHIFT   10

Definition at line 338 of file clk_rst.h.

◆ CPU3_CLK_STP_SHIFT

#define CPU3_CLK_STP_SHIFT   11

Definition at line 337 of file clk_rst.h.

◆ DEV_CONFIG_BLOCKS

#define DEV_CONFIG_BLOCKS   7

Definition at line 307 of file clk_rst.h.

◆ EMC_2X_CLK_SRC_SHIFT

#define EMC_2X_CLK_SRC_SHIFT   29

Definition at line 469 of file clk_rst.h.

◆ EN_PPSB_STOPCLK

#define EN_PPSB_STOPCLK   (1 << 0)

Definition at line 334 of file clk_rst.h.

◆ HCLK_DISABLE

#define HCLK_DISABLE   (1 << 7)

Definition at line 516 of file clk_rst.h.

◆ HCLK_DIVISOR_MASK

#define HCLK_DIVISOR_MASK   (3 << AHB_RATE_SHIFT)

Definition at line 518 of file clk_rst.h.

◆ HCLK_DIVISOR_SHIFT

#define HCLK_DIVISOR_SHIFT   4

Definition at line 517 of file clk_rst.h.

◆ MSELECT_CLK_SRC_PLLP_OUT0

#define MSELECT_CLK_SRC_PLLP_OUT0   (0 << 29)

Definition at line 527 of file clk_rst.h.

◆ OSC_DRIVE_STRENGTH

#define OSC_DRIVE_STRENGTH   7

Definition at line 350 of file clk_rst.h.

◆ OSC_FREQ_MASK

#define OSC_FREQ_MASK   (0xf << OSC_FREQ_SHIFT)

Definition at line 345 of file clk_rst.h.

◆ OSC_FREQ_SHIFT

#define OSC_FREQ_SHIFT   28

Definition at line 344 of file clk_rst.h.

◆ OSC_PREDIV_MASK

#define OSC_PREDIV_MASK   (0x3 << OSC_PREDIV_SHIFT)

Definition at line 347 of file clk_rst.h.

◆ OSC_PREDIV_SHIFT

#define OSC_PREDIV_SHIFT   26

Definition at line 346 of file clk_rst.h.

◆ OSC_XOBP

#define OSC_XOBP   (1 << 1)

Definition at line 351 of file clk_rst.h.

◆ OSC_XOE

#define OSC_XOE   (1 << 0)

Definition at line 352 of file clk_rst.h.

◆ OSC_XOFS_MASK

#define OSC_XOFS_MASK   (0x3F << OSC_XOFS_SHIFT)

Definition at line 349 of file clk_rst.h.

◆ OSC_XOFS_SHIFT

#define OSC_XOFS_SHIFT   4

Definition at line 348 of file clk_rst.h.

◆ PCLK_DISABLE

#define PCLK_DISABLE   (1 << 3)

Definition at line 519 of file clk_rst.h.

◆ PCLK_DIVISOR_MASK

#define PCLK_DIVISOR_MASK   (3 << AHB_RATE_SHIFT)

Definition at line 521 of file clk_rst.h.

◆ PCLK_DIVISOR_SHIFT

#define PCLK_DIVISOR_SHIFT   0

Definition at line 520 of file clk_rst.h.

◆ PLL_ACTIVE_POWERDOWN

#define PLL_ACTIVE_POWERDOWN   (1 << 12)

Definition at line 537 of file clk_rst.h.

◆ PLL_BASE_BYPASS

#define PLL_BASE_BYPASS   (1U << 31)

Definition at line 365 of file clk_rst.h.

◆ PLL_BASE_DIV_MASK

#define PLL_BASE_DIV_MASK   (0xffffff)

Definition at line 433 of file clk_rst.h.

◆ PLL_BASE_DIVM_MASK

#define PLL_BASE_DIVM_MASK   (0x1f << PLL_BASE_DIVM_SHIFT)

Definition at line 379 of file clk_rst.h.

◆ PLL_BASE_DIVM_SHIFT

#define PLL_BASE_DIVM_SHIFT   0

Definition at line 378 of file clk_rst.h.

◆ PLL_BASE_DIVN_MASK

#define PLL_BASE_DIVN_MASK   (0x3ffU << PLL_BASE_DIVN_SHIFT)

Definition at line 376 of file clk_rst.h.

◆ PLL_BASE_DIVN_SHIFT

#define PLL_BASE_DIVN_SHIFT   8

Definition at line 375 of file clk_rst.h.

◆ PLL_BASE_DIVP_MASK

#define PLL_BASE_DIVP_MASK   (7U << PLL_BASE_DIVP_SHIFT)

Definition at line 373 of file clk_rst.h.

◆ PLL_BASE_DIVP_SHIFT

#define PLL_BASE_DIVP_SHIFT   20

Definition at line 372 of file clk_rst.h.

◆ PLL_BASE_ENABLE

#define PLL_BASE_ENABLE   (1U << 30)

Definition at line 366 of file clk_rst.h.

◆ PLL_BASE_LOCK

#define PLL_BASE_LOCK   (1U << 27)

Definition at line 369 of file clk_rst.h.

◆ PLL_BASE_OVRRIDE

#define PLL_BASE_OVRRIDE   (1U << 28)

Definition at line 368 of file clk_rst.h.

◆ PLL_BASE_REF_DIS

#define PLL_BASE_REF_DIS   (1U << 29)

Definition at line 367 of file clk_rst.h.

◆ PLL_ENABLE_POWERDOWN

#define PLL_ENABLE_POWERDOWN   (1 << 14)

Definition at line 536 of file clk_rst.h.

◆ PLL_OUT1_SHIFT

#define PLL_OUT1_SHIFT   0

Definition at line 443 of file clk_rst.h.

◆ PLL_OUT2_SHIFT

#define PLL_OUT2_SHIFT   16

Definition at line 444 of file clk_rst.h.

◆ PLL_OUT3_SHIFT

#define PLL_OUT3_SHIFT   0

Definition at line 445 of file clk_rst.h.

◆ PLL_OUT4_SHIFT

#define PLL_OUT4_SHIFT   16

Definition at line 446 of file clk_rst.h.

◆ PLL_OUT_CLKEN

#define PLL_OUT_CLKEN   (1 << 1)

Definition at line 437 of file clk_rst.h.

◆ PLL_OUT_OVR

#define PLL_OUT_OVR   (1 << 2)

Definition at line 438 of file clk_rst.h.

◆ PLL_OUT_RATIO_MASK

#define PLL_OUT_RATIO_MASK   (0xffU << PLL_OUT_RATIO_SHIFT)

Definition at line 441 of file clk_rst.h.

◆ PLL_OUT_RATIO_SHIFT

#define PLL_OUT_RATIO_SHIFT   8

Definition at line 440 of file clk_rst.h.

◆ PLL_OUT_RSTN

#define PLL_OUT_RSTN   (1 << 0)

Definition at line 436 of file clk_rst.h.

◆ PLLC_BASE_LOCK

#define PLLC_BASE_LOCK   (1U << 26)

Definition at line 370 of file clk_rst.h.

◆ PLLC_MISC_1_IDDQ

#define PLLC_MISC_1_IDDQ   (1U << 27)

Definition at line 389 of file clk_rst.h.

◆ PLLC_MISC_RESET

#define PLLC_MISC_RESET   (1U << 30)

Definition at line 388 of file clk_rst.h.

◆ PLLCMX_BASE_DIVM_MASK

#define PLLCMX_BASE_DIVM_MASK   (0xffU << PLL_BASE_DIVM_SHIFT)

Definition at line 385 of file clk_rst.h.

◆ PLLCMX_BASE_DIVN_MASK

#define PLLCMX_BASE_DIVN_MASK   (0xffU << PLL_BASE_DIVN_SHIFT)

Definition at line 384 of file clk_rst.h.

◆ PLLCX_BASE_DIVP_MASK

#define PLLCX_BASE_DIVP_MASK   (0xfU << PLL_BASE_DIVP_SHIFT)

Definition at line 382 of file clk_rst.h.

◆ PLLD_M_SHIFT

#define PLLD_M_SHIFT   0

Definition at line 391 of file clk_rst.h.

◆ PLLD_MISC1_SETUP

#define PLLD_MISC1_SETUP   0x20

Definition at line 393 of file clk_rst.h.

◆ PLLD_MISC_CLK_ENABLE

#define PLLD_MISC_CLK_ENABLE   (1 << 21)

Definition at line 452 of file clk_rst.h.

◆ PLLD_MISC_EN_SDM

#define PLLD_MISC_EN_SDM   (1 << 16)

Definition at line 394 of file clk_rst.h.

◆ PLLD_MISC_LOCK_ENABLE

#define PLLD_MISC_LOCK_ENABLE   (1 << 18)

Definition at line 451 of file clk_rst.h.

◆ PLLD_MISC_SDM_DIN

#define PLLD_MISC_SDM_DIN   0x9aa

Definition at line 395 of file clk_rst.h.

◆ PLLD_N_SHIFT

#define PLLD_N_SHIFT   11

Definition at line 390 of file clk_rst.h.

◆ PLLD_P_SHIFT

#define PLLD_P_SHIFT   20

Definition at line 392 of file clk_rst.h.

◆ PLLDPD2_MISC_LOCK_ENABLE

#define PLLDPD2_MISC_LOCK_ENABLE   (1 << 30)

Definition at line 449 of file clk_rst.h.

◆ PLLE_MISC_LOCK_ENABLE

#define PLLE_MISC_LOCK_ENABLE   (1 << 9)

Definition at line 454 of file clk_rst.h.

◆ PLLM_BASE_DIVP_MASK

#define PLLM_BASE_DIVP_MASK   (0x1fU << PLL_BASE_DIVP_SHIFT)

Definition at line 383 of file clk_rst.h.

◆ PLLM_EN_LCKDET

#define PLLM_EN_LCKDET   (1 << 4)

Definition at line 405 of file clk_rst.h.

◆ PLLM_MISC1_PD_LSHIFT_PH135_SHIFT

#define PLLM_MISC1_PD_LSHIFT_PH135_SHIFT   30

Definition at line 401 of file clk_rst.h.

◆ PLLM_MISC1_PD_LSHIFT_PH45_SHIFT

#define PLLM_MISC1_PD_LSHIFT_PH45_SHIFT   28

Definition at line 399 of file clk_rst.h.

◆ PLLM_MISC1_PD_LSHIFT_PH90_SHIFT

#define PLLM_MISC1_PD_LSHIFT_PH90_SHIFT   29

Definition at line 400 of file clk_rst.h.

◆ PLLM_MISC1_SETUP_SHIFT

#define PLLM_MISC1_SETUP_SHIFT   0

Definition at line 398 of file clk_rst.h.

◆ PLLM_MISC2_KCP_SHIFT

#define PLLM_MISC2_KCP_SHIFT   1

Definition at line 402 of file clk_rst.h.

◆ PLLM_MISC2_KVCO_SHIFT

#define PLLM_MISC2_KVCO_SHIFT   0

Definition at line 403 of file clk_rst.h.

◆ PLLM_OUT1_RSTN_RESET_DISABLE

#define PLLM_OUT1_RSTN_RESET_DISABLE   (1 << 0)

Definition at line 404 of file clk_rst.h.

◆ PLLM_UD

#define PLLM_UD   4

Definition at line 470 of file clk_rst.h.

◆ PLLPAXS_MISC_LOCK_ENABLE

#define PLLPAXS_MISC_LOCK_ENABLE   (1 << 18)

Definition at line 453 of file clk_rst.h.

◆ PLLU_MISC_IDDQ

#define PLLU_MISC_IDDQ   (1U << 31)

Definition at line 408 of file clk_rst.h.

◆ PLLU_MISC_LOCK_ENABLE

#define PLLU_MISC_LOCK_ENABLE   (1 << 29)

Definition at line 450 of file clk_rst.h.

◆ PLLU_POWERDOWN

#define PLLU_POWERDOWN   (1 << 16)

Definition at line 535 of file clk_rst.h.

◆ PLLX_BASE_PLLX_ENABLE

#define PLLX_BASE_PLLX_ENABLE   (1 << 30)

Definition at line 457 of file clk_rst.h.

◆ PLLX_IDDQ_MASK

#define PLLX_IDDQ_MASK   (1U << PLLX_IDDQ_SHIFT)

Definition at line 461 of file clk_rst.h.

◆ PLLX_IDDQ_SHIFT

#define PLLX_IDDQ_SHIFT   3

Definition at line 460 of file clk_rst.h.

◆ SCLK_COP_FIQ_MASK

#define SCLK_COP_FIQ_MASK   (1 << 27)

Definition at line 484 of file clk_rst.h.

◆ SCLK_COP_IRQ_MASK

#define SCLK_COP_IRQ_MASK   (1 << 25)

Definition at line 486 of file clk_rst.h.

◆ SCLK_CPU_FIQ_MASK

#define SCLK_CPU_FIQ_MASK   (1 << 26)

Definition at line 485 of file clk_rst.h.

◆ SCLK_CPU_IRQ_MASK

#define SCLK_CPU_IRQ_MASK   (1 << 24)

Definition at line 487 of file clk_rst.h.

◆ SCLK_DIV_ENB

#define SCLK_DIV_ENB   (1 << 31)

Definition at line 509 of file clk_rst.h.

◆ SCLK_DIVIDEND_MASK

#define SCLK_DIVIDEND_MASK   (0xff << SCLK_DIVIDEND_SHIFT)

Definition at line 511 of file clk_rst.h.

◆ SCLK_DIVIDEND_SHIFT

#define SCLK_DIVIDEND_SHIFT   8

Definition at line 510 of file clk_rst.h.

◆ SCLK_DIVISOR_MASK

#define SCLK_DIVISOR_MASK   (0xff << SCLK_DIVISOR_SHIFT)

Definition at line 513 of file clk_rst.h.

◆ SCLK_DIVISOR_SHIFT

#define SCLK_DIVISOR_SHIFT   0

Definition at line 512 of file clk_rst.h.

◆ SCLK_FIQ_MASK

#define SCLK_FIQ_MASK   (7 << SCLK_FIQ_SHIFT)

Definition at line 490 of file clk_rst.h.

◆ SCLK_FIQ_SHIFT

#define SCLK_FIQ_SHIFT   12

Definition at line 489 of file clk_rst.h.

◆ SCLK_IDLE_MASK

#define SCLK_IDLE_MASK   (7 << SCLK_FIQ_SHIFT)

Definition at line 496 of file clk_rst.h.

◆ SCLK_IDLE_SHIFT

#define SCLK_IDLE_SHIFT   0

Definition at line 495 of file clk_rst.h.

◆ SCLK_IRQ_MASK

#define SCLK_IRQ_MASK   (7 << SCLK_FIQ_SHIFT)

Definition at line 492 of file clk_rst.h.

◆ SCLK_IRQ_SHIFT

#define SCLK_IRQ_SHIFT   8

Definition at line 491 of file clk_rst.h.

◆ SCLK_RUN_MASK

#define SCLK_RUN_MASK   (7 << SCLK_FIQ_SHIFT)

Definition at line 494 of file clk_rst.h.

◆ SCLK_RUN_SHIFT

#define SCLK_RUN_SHIFT   4

Definition at line 493 of file clk_rst.h.

◆ SCLK_SYS_STATE_MASK

#define SCLK_SYS_STATE_MASK   (15U << SCLK_SYS_STATE_SHIFT)

Definition at line 476 of file clk_rst.h.

◆ SCLK_SYS_STATE_SHIFT

#define SCLK_SYS_STATE_SHIFT   28U

Definition at line 475 of file clk_rst.h.

◆ SET_CLK_ENB_CPUG_ENABLE

#define SET_CLK_ENB_CPUG_ENABLE   (1 << 0)

Definition at line 530 of file clk_rst.h.

◆ SET_CLK_ENB_CPULP_ENABLE

#define SET_CLK_ENB_CPULP_ENABLE   (1 << 1)

Definition at line 531 of file clk_rst.h.

◆ SET_CLK_ENB_MSELECT_ENABLE

#define SET_CLK_ENB_MSELECT_ENABLE   (1 << 3)

Definition at line 532 of file clk_rst.h.

◆ SIMPLE_PLLX

#define SIMPLE_PLLX   (CLOCK_ID_XCPU - CLOCK_ID_FIRST_SIMPLE)

Definition at line 315 of file clk_rst.h.

◆ SUPER_CDIV_ENB_ENABLE

#define SUPER_CDIV_ENB_ENABLE   (1 << 31)

Definition at line 331 of file clk_rst.h.

◆ SWR_CSITE_RST

#define SWR_CSITE_RST   (1 << 9)

Definition at line 320 of file clk_rst.h.

◆ SWR_TRIG_SYS_RST

#define SWR_TRIG_SYS_RST   (1 << 2)

Definition at line 319 of file clk_rst.h.

◆ TEGRA_DEV_H

#define TEGRA_DEV_H   1

Definition at line 310 of file clk_rst.h.

◆ TEGRA_DEV_L

#define TEGRA_DEV_L   0

Definition at line 309 of file clk_rst.h.

◆ TEGRA_DEV_U

#define TEGRA_DEV_U   2

Definition at line 311 of file clk_rst.h.

◆ TEGRA_DEV_V

#define TEGRA_DEV_V   0

Definition at line 312 of file clk_rst.h.

◆ TEGRA_DEV_W

#define TEGRA_DEV_W   1

Definition at line 313 of file clk_rst.h.

◆ TIMERUS_CNTR_1US

#define TIMERUS_CNTR_1US   0x0

Definition at line 597 of file clk_rst.h.

◆ TIMERUS_USEC_CFG

#define TIMERUS_USEC_CFG   0x4

Definition at line 598 of file clk_rst.h.

◆ TIMERUS_USEC_CFG_19P2_CLK_M

#define TIMERUS_USEC_CFG_19P2_CLK_M   0x045F

Definition at line 599 of file clk_rst.h.

◆ UTMIP_CFG0_PLL_MDIV_SHIFT

#define UTMIP_CFG0_PLL_MDIV_SHIFT   (8)

Definition at line 411 of file clk_rst.h.

◆ UTMIP_CFG0_PLL_NDIV_SHIFT

#define UTMIP_CFG0_PLL_NDIV_SHIFT   (16)

Definition at line 412 of file clk_rst.h.

◆ UTMIP_CFG1_FORCE_PLL_ACTIVE_POWERDOWN_DISABLE

#define UTMIP_CFG1_FORCE_PLL_ACTIVE_POWERDOWN_DISABLE   (0 << 12)

Definition at line 414 of file clk_rst.h.

◆ UTMIP_CFG1_FORCE_PLL_ENABLE_POWERDOWN_DISABLE

#define UTMIP_CFG1_FORCE_PLL_ENABLE_POWERDOWN_DISABLE   (0 << 14)

Definition at line 415 of file clk_rst.h.

◆ UTMIP_CFG1_FORCE_PLL_ENABLE_POWERUP_ENABLE

#define UTMIP_CFG1_FORCE_PLL_ENABLE_POWERUP_ENABLE   (1 << 15)

Definition at line 416 of file clk_rst.h.

◆ UTMIP_CFG1_FORCE_PLLU_POWERDOWN_ENABLE

#define UTMIP_CFG1_FORCE_PLLU_POWERDOWN_ENABLE   (1 << 16)

Definition at line 417 of file clk_rst.h.

◆ UTMIP_CFG1_PLLU_ENABLE_DLY_COUNT_SHIFT

#define UTMIP_CFG1_PLLU_ENABLE_DLY_COUNT_SHIFT   (27)

Definition at line 418 of file clk_rst.h.

◆ UTMIP_CFG1_XTAL_FREQ_COUNT_SHIFT

#define UTMIP_CFG1_XTAL_FREQ_COUNT_SHIFT   (0)

Definition at line 413 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_A_POWERDOWN_DISABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_A_POWERDOWN_DISABLE   (0 << 0)

Definition at line 419 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_A_POWERUP_ENABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_A_POWERUP_ENABLE   (1 << 1)

Definition at line 420 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_B_POWERDOWN_DISABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_B_POWERDOWN_DISABLE   (0 << 2)

Definition at line 421 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_B_POWERUP_ENABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_B_POWERUP_ENABLE   (1 << 3)

Definition at line 422 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_C_POWERDOWN_DISABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_C_POWERDOWN_DISABLE   (0 << 4)

Definition at line 423 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_C_POWERUP_ENABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_C_POWERUP_ENABLE   (1 << 5)

Definition at line 424 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_D_POWERDOWN_DISABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_D_POWERDOWN_DISABLE   (0 << 24)

Definition at line 425 of file clk_rst.h.

◆ UTMIP_CFG2_FORCE_PD_SAMP_D_POWERUP_ENABLE

#define UTMIP_CFG2_FORCE_PD_SAMP_D_POWERUP_ENABLE   (1 << 25)

Definition at line 426 of file clk_rst.h.

◆ UTMIP_CFG2_PHY_XTAL_CLOCKEN

#define UTMIP_CFG2_PHY_XTAL_CLOCKEN   (1U << 30)

Definition at line 429 of file clk_rst.h.

◆ UTMIP_CFG2_PLL_ACTIVE_DLY_COUNT_SHIFT

#define UTMIP_CFG2_PLL_ACTIVE_DLY_COUNT_SHIFT   (18)

Definition at line 428 of file clk_rst.h.

◆ UTMIP_CFG2_PLLU_STABLE_COUNT_SHIFT

#define UTMIP_CFG2_PLLU_STABLE_COUNT_SHIFT   (6)

Definition at line 427 of file clk_rst.h.

◆ UTMIP_FORCE_PD_SAMP_A_POWERDOWN

#define UTMIP_FORCE_PD_SAMP_A_POWERDOWN   (1 << 0)

Definition at line 542 of file clk_rst.h.

◆ UTMIP_FORCE_PD_SAMP_B_POWERDOWN

#define UTMIP_FORCE_PD_SAMP_B_POWERDOWN   (1 << 2)

Definition at line 541 of file clk_rst.h.

◆ UTMIP_FORCE_PD_SAMP_C_POWERDOWN

#define UTMIP_FORCE_PD_SAMP_C_POWERDOWN   (1 << 4)

Definition at line 540 of file clk_rst.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OSC_FREQ_12 
OSC_FREQ_13 
OSC_FREQ_16P8 
OSC_FREQ_19P2 
OSC_FREQ_26 
OSC_FREQ_38P4 
OSC_FREQ_48 

Definition at line 354 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
SCLK_SYS_STATE_STDBY 
SCLK_SYS_STATE_IDLE 
SCLK_SYS_STATE_RUN 
SCLK_SYS_STATE_IRQ 
SCLK_SYS_STATE_FIQ 

Definition at line 477 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
SCLK_SOURCE_CLKM 
SCLK_SOURCE_PLLC_OUT1 
SCLK_SOURCE_PLLP_OUT4 
SCLK_SOURCE_PLLP_OUT3 
SCLK_SOURCE_PLLP_OUT2 
SCLK_SOURCE_PLLC_OUT0 
SCLK_SOURCE_CLKS 
SCLK_SOURCE_PLLM_OUT1 

Definition at line 497 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
CRC_CCLK_BRST_POL_PLLX_OUT0 
CRC_CCLK_BRST_POL_CPU_STATE_RUN 

Definition at line 545 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
CRC_SUPER_CCLK_DIVIDER_SUPER_CDIV_ENB 

Definition at line 551 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
CRC_CLK_CLR_CPU0_STP 
CRC_CLK_CLR_CPU1_STP 
CRC_CLK_CLR_CPU2_STP 
CRC_CLK_CLR_CPU3_STP 

Definition at line 556 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
CRC_RST_CPUG_CLR_CPU0 
CRC_RST_CPUG_CLR_CPU1 
CRC_RST_CPUG_CLR_CPU2 
CRC_RST_CPUG_CLR_CPU3 
CRC_RST_CPUG_CLR_DBG0 
CRC_RST_CPUG_CLR_DBG1 
CRC_RST_CPUG_CLR_DBG2 
CRC_RST_CPUG_CLR_DBG3 
CRC_RST_CPUG_CLR_CORE0 
CRC_RST_CPUG_CLR_CORE1 
CRC_RST_CPUG_CLR_CORE2 
CRC_RST_CPUG_CLR_CORE3 
CRC_RST_CPUG_CLR_CX0 
CRC_RST_CPUG_CLR_CX1 
CRC_RST_CPUG_CLR_CX2 
CRC_RST_CPUG_CLR_CX3 
CRC_RST_CPUG_CLR_L2 
CRC_RST_CPUG_CLR_NONCPU 
CRC_RST_CPUG_CLR_PDBG 

Definition at line 564 of file clk_rst.h.

◆ anonymous enum

anonymous enum
Enumerator
CRC_RST_CPULP_CLR_CPU0 
CRC_RST_CPULP_CLR_DBG0 
CRC_RST_CPULP_CLR_CORE0 
CRC_RST_CPULP_CLR_CX0 
CRC_RST_CPULP_CLR_L2 
CRC_RST_CPULP_CLR_NONCPU 
CRC_RST_CPULP_CLR_PDBG 

Definition at line 587 of file clk_rst.h.

Function Documentation

◆ check_member()

check_member ( clk_rst_ctlr  ,
clk_src_qspi  ,
0x6C4   
)