drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / soc / nvidia / tegra / pingroup.c
blob65810df8b7085349935bd74f0bd926c213e0841c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/addressmap.h>
6 #include "pingroup.h"
8 static uint32_t *pingroup_regs = (void *)TEGRA_APB_PINGROUP_BASE;
10 void pingroup_set_config(int group_index, uint32_t config)
12 write32(&pingroup_regs[group_index], config);
15 uint32_t pingroup_get_config(int group_index)
17 return read32(&pingroup_regs[group_index]);