blob: f04b66541dd80fb3dd318d45e80091c5b7b26300 [file] [log] [blame]
Gabe Black08d5a892013-10-03 04:35:01 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2013 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef __SOC_NVIDIA_TEGRA_PINGROUP_H__
21#define __SOC_NVIDIA_TEGRA_PINGROUP_H__
22
23#include <stdint.h>
24
25void pingroup_set_config(int group_index, uint32_t config);
26uint32_t pingroup_get_config(int group_index);
27
28enum {
29 PINGROUP_HSM = 1 << 2,
30 PINGROUP_SCHMT = 1 << 3,
31 PINGROUP_LPMD_SHIFT = 4,
32 PINGROUP_LPMD_MASK = 3 << 4,
33 PINGROUP_DRVDN_SHIFT = 12,
34 PINGROUP_DRVDN_MASK = 0x7f << 12,
35 PINGROUP_DRVUP_SHIFT = 20,
36 PINGROUP_DRVUP_MASK = 0x7f << 20,
37 PINGROUP_SLWR_SHIFT = 28,
38 PINGROUP_SLWR_MASK = 0x3 << 28,
39 PINGROUP_SLWF_SHIFT = 30,
40 PINGROUP_SLWF_MASK = 0x3 << 30
41};
42
43#endif /* __SOC_NVIDIA_TEGRA_PINGROUP_H__ */