coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pingroup.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_NVIDIA_TEGRA_PINGROUP_H__
4 #define __SOC_NVIDIA_TEGRA_PINGROUP_H__
5 
6 #include <stdint.h>
7 
8 void pingroup_set_config(int group_index, uint32_t config);
9 uint32_t pingroup_get_config(int group_index);
10 
11 enum {
12  PINGROUP_HSM = 1 << 2,
13  PINGROUP_SCHMT = 1 << 3,
17  PINGROUP_DRVDN_MASK = 0x7f << 12,
19  PINGROUP_DRVUP_MASK = 0x7f << 20,
21  PINGROUP_SLWR_MASK = 0x3 << 28,
23  PINGROUP_SLWF_MASK = 0x3 << 30
24 };
25 
26 #endif /* __SOC_NVIDIA_TEGRA_PINGROUP_H__ */
enum board_config config
Definition: memory.c:448
unsigned int uint32_t
Definition: stdint.h:14
void pingroup_set_config(int group_index, uint32_t config)
Definition: pingroup.c:10
uint32_t pingroup_get_config(int group_index)
Definition: pingroup.c:15
@ PINGROUP_SLWR_MASK
Definition: pingroup.h:21
@ PINGROUP_HSM
Definition: pingroup.h:12
@ PINGROUP_SLWR_SHIFT
Definition: pingroup.h:20
@ PINGROUP_DRVDN_SHIFT
Definition: pingroup.h:16
@ PINGROUP_LPMD_MASK
Definition: pingroup.h:15
@ PINGROUP_SCHMT
Definition: pingroup.h:13
@ PINGROUP_SLWF_MASK
Definition: pingroup.h:23
@ PINGROUP_DRVDN_MASK
Definition: pingroup.h:17
@ PINGROUP_SLWF_SHIFT
Definition: pingroup.h:22
@ PINGROUP_LPMD_SHIFT
Definition: pingroup.h:14
@ PINGROUP_DRVUP_SHIFT
Definition: pingroup.h:18
@ PINGROUP_DRVUP_MASK
Definition: pingroup.h:19