blob: 3cbbb2027d38a6cb76196d865dc5dba89e4e72b1 [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.
Gabe Black08d5a892013-10-03 04:35:01 -070014 */
15
16#ifndef __SOC_NVIDIA_TEGRA_PINGROUP_H__
17#define __SOC_NVIDIA_TEGRA_PINGROUP_H__
18
19#include <stdint.h>
20
21void pingroup_set_config(int group_index, uint32_t config);
22uint32_t pingroup_get_config(int group_index);
23
24enum {
25 PINGROUP_HSM = 1 << 2,
26 PINGROUP_SCHMT = 1 << 3,
27 PINGROUP_LPMD_SHIFT = 4,
28 PINGROUP_LPMD_MASK = 3 << 4,
29 PINGROUP_DRVDN_SHIFT = 12,
30 PINGROUP_DRVDN_MASK = 0x7f << 12,
31 PINGROUP_DRVUP_SHIFT = 20,
32 PINGROUP_DRVUP_MASK = 0x7f << 20,
33 PINGROUP_SLWR_SHIFT = 28,
34 PINGROUP_SLWR_MASK = 0x3 << 28,
35 PINGROUP_SLWF_SHIFT = 30,
36 PINGROUP_SLWF_MASK = 0x3 << 30
37};
38
39#endif /* __SOC_NVIDIA_TEGRA_PINGROUP_H__ */