blob: c56ef129d6c7a5138994e1e3e213a5dd63d30010 [file] [log] [blame]
Tom Warrenf7dc4ac2014-01-24 12:46:18 -07001/*
2 * (C) Copyright 2013-2014
3 * NVIDIA Corporation <www.nvidia.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#include <common.h>
Tom Warrenf7dc4ac2014-01-24 12:46:18 -07009#include <asm/arch/gpio.h>
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070010#include <asm/arch/pinmux.h>
11#include "pinmux-config-venice2.h"
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070012
13/*
14 * Routine: pinmux_init
15 * Description: Do individual peripheral pinmux configs
16 */
17void pinmux_init(void)
18{
Stephen Warren2eba87a2014-04-22 14:37:57 -060019 pinmux_set_tristate_input_clamping();
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070020
Stephen Warren2eba87a2014-04-22 14:37:57 -060021 gpio_config_table(venice2_gpio_inits,
22 ARRAY_SIZE(venice2_gpio_inits));
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070023
Stephen Warren2eba87a2014-04-22 14:37:57 -060024 pinmux_config_pingrp_table(venice2_pingrps,
25 ARRAY_SIZE(venice2_pingrps));
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070026
Stephen Warren2eba87a2014-04-22 14:37:57 -060027 pinmux_config_drvgrp_table(venice2_drvgrps,
28 ARRAY_SIZE(venice2_drvgrps));
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070029}