aboutsummaryrefslogtreecommitdiff
path: root/board/nvidia/venice2/venice2.c
blob: 15082c4195078db3b8d6265571b809c5cc3131a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * (C) Copyright 2013-2014
 * NVIDIA Corporation <www.nvidia.com>
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#include <common.h>
#include <asm-generic/gpio.h>
#include <asm/arch/gpio.h>
#include <asm/arch/gp_padctrl.h>
#include <asm/arch/pinmux.h>
#include "pinmux-config-venice2.h"
#include <i2c.h>

/*
 * Routine: pinmux_init
 * Description: Do individual peripheral pinmux configs
 */
void pinmux_init(void)
{
	pinmux_config_pingrp_table(tegra124_pinmux_set_nontristate,
		ARRAY_SIZE(tegra124_pinmux_set_nontristate));

	pinmux_config_pingrp_table(tegra124_pinmux_common,
		ARRAY_SIZE(tegra124_pinmux_common));

	pinmux_config_pingrp_table(unused_pins_lowpower,
		ARRAY_SIZE(unused_pins_lowpower));

	/* Initialize any non-default pad configs (APB_MISC_GP regs) */
	pinmux_config_drvgrp_table(venice2_padctrl,
		ARRAY_SIZE(venice2_padctrl));
}