mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / nvidia / tegra / pinmux.c
blob20d7507880008c39cc551879eff8f2603b5d9315
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/addressmap.h>
6 #include "pinmux.h"
8 static uint32_t *pinmux_regs = (void *)TEGRA_APB_PINMUX_BASE;
10 void pinmux_set_config(int pin_index, uint32_t config)
12 write32(&pinmux_regs[pin_index], config);
15 uint32_t pinmux_get_config(int pin_index)
17 return read32(&pinmux_regs[pin_index]);