tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / soc / nvidia / tegra / pingroup.c
blob9082829cbd98fbdd1d173a09711f5fd1a635ca36
1 /*
2 * This file is part of the coreboot project.
4 * Copyright 2013 Google Inc.
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.
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.
16 #include <arch/io.h>
17 #include <soc/addressmap.h>
19 #include "pingroup.h"
21 static uint32_t *pingroup_regs = (void *)TEGRA_APB_PINGROUP_BASE;
23 void pingroup_set_config(int group_index, uint32_t config)
25 write32(&pingroup_regs[group_index], config);
28 uint32_t pingroup_get_config(int group_index)
30 return read32(&pingroup_regs[group_index]);