summaryrefslogtreecommitdiffstats
path: root/board/nvidia/venice2/venice2.c
blob: 3e2b9a7745e9542a212c14c1cb4ef9cc3beca22c (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
35
36
37
/*
 * (C) Copyright 2013-2014
 * NVIDIA Corporation <www.nvidia.com>
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#include <common.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pinmux.h>
#include <asm/arch-tegra/gpu.h>
#include "pinmux-config-venice2.h"

/*
 * Routine: pinmux_init
 * Description: Do individual peripheral pinmux configs
 */
void pinmux_init(void)
{
	pinmux_set_tristate_input_clamping();

	gpio_config_table(venice2_gpio_inits,
			  ARRAY_SIZE(venice2_gpio_inits));

	pinmux_config_pingrp_table(venice2_pingrps,
				   ARRAY_SIZE(venice2_pingrps));

	pinmux_config_drvgrp_table(venice2_drvgrps,
				   ARRAY_SIZE(venice2_drvgrps));
}

int ft_board_setup(void *blob, bd_t *bd)
{
	gpu_enable_node(blob, "/gpu@0,57000000");

	return 0;
}
OpenPOWER on IntegriCloud