1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/addressmap.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
]);