coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
clst_clk.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _TEGRA210_CLST_CLK_H_
4 #define _TEGRA210_CLST_CLK_H_
5 
6 /* Cluster Clock (CLUSTER_CLOCKS_PUBLIC_) regs */
8  u32 pllx_base; /* _PLLX_BASE, 0x000 */
9  u32 pllx_misc; /* _PLLX_MISC, 0x004 */
10  u32 pllx_misc1; /* _PLLX_MISC_1, 0x008 */
11  u32 pllx_misc2; /* _PLLX_MISC_2, 0x00c */
12  u32 pllx_misc3; /* _PLLX_MISC_3, 0x010 */
13  u32 pllx_hw_ctrl_cfg; /* _PLLX_HW_CTRL_CFG, 0x014 */
14  u32 pllx_sw_ramp_cfg; /* _PLLX_SW_RAMP_CFG, 0x018 */
15  u32 pllx_hw_ctrl_status; /* _PLLX_HW_CTRL_STATUS, 0x01c */
16  u32 cclk_brst_pol; /* _CCLK_BURST_POLICY, 0x020 */
17  u32 super_cclk_div; /* _SUPER_CCLK_DIVIDER, 0x024 */
18  u32 _rsv1[10]; /* 0x028-04c */
19  u32 shaper; /* _SHAPER, 0x050 */
20  u32 shaper1; /* _SHAPER_1, 0x054 */
21  u32 _rsv2[80]; /* 0x058-194 */
22  u32 misc_ctrl; /* _MISC_CTRL, 0x198 */
23 };
24 check_member(clst_clk_ctlr, misc_ctrl, 0x198);
25 
26 /* CC_CCLK_BRST_POL */
27 enum {
29 };
30 
31 /* CC_SUPER_CCLK_DIVIDER */
32 enum {
34 };
35 
36 /* PLLX_MISC3 */
37 enum {
38  PLLX_IDDQ = 1 << 3,
39 };
40 
41 /* MISC_CTRL */
42 enum {
43  CLK_SWITCH_MATCH = 1 << 5,
44 };
45 
46 #define CLK_SWITCH_TIMEOUT_US 1000
47 #endif /* _TEGRA210_CLST_CLK_H_ */
check_member(clst_clk_ctlr, misc_ctrl, 0x198)
@ CC_SUPER_CCLK_DIVIDER_SUPER_CDIV_ENB
Definition: clst_clk.h:33
@ PLLX_IDDQ
Definition: clst_clk.h:38
@ CLK_SWITCH_MATCH
Definition: clst_clk.h:43
@ CC_CCLK_BRST_POL_PLLX_OUT0_LJ
Definition: clst_clk.h:28
uint32_t u32
Definition: stdint.h:51
Definition: x86.c:23
u32 super_cclk_div
Definition: clst_clk.h:17
u32 pllx_misc2
Definition: clst_clk.h:11
u32 pllx_sw_ramp_cfg
Definition: clst_clk.h:14
u32 pllx_hw_ctrl_cfg
Definition: clst_clk.h:13
u32 cclk_brst_pol
Definition: clst_clk.h:16
u32 pllx_misc
Definition: clst_clk.h:9
u32 pllx_base
Definition: clst_clk.h:8
u32 misc_ctrl
Definition: clst_clk.h:22
u32 pllx_misc1
Definition: clst_clk.h:10
u32 pllx_hw_ctrl_status
Definition: clst_clk.h:15
u32 pllx_misc3
Definition: clst_clk.h:12