blob: d89bbe5ecce2f828e266242d7327c79fff9ca970 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Tom Warrenf7dc4ac2014-01-24 12:46:18 -07002/*
3 * (C) Copyright 2013-2014
4 * NVIDIA Corporation <www.nvidia.com>
Tom Warrenf7dc4ac2014-01-24 12:46:18 -07005 */
6
7#include <common.h>
Tom Warrenf7dc4ac2014-01-24 12:46:18 -07008#include <asm/arch/gpio.h>
Tom Warrenf7dc4ac2014-01-24 12:46:18 -07009#include <asm/arch/pinmux.h>
10#include "pinmux-config-venice2.h"
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070011
12/*
13 * Routine: pinmux_init
14 * Description: Do individual peripheral pinmux configs
15 */
16void pinmux_init(void)
17{
Stephen Warren2eba87a2014-04-22 14:37:57 -060018 pinmux_set_tristate_input_clamping();
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070019
Stephen Warren2eba87a2014-04-22 14:37:57 -060020 gpio_config_table(venice2_gpio_inits,
21 ARRAY_SIZE(venice2_gpio_inits));
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070022
Stephen Warren2eba87a2014-04-22 14:37:57 -060023 pinmux_config_pingrp_table(venice2_pingrps,
24 ARRAY_SIZE(venice2_pingrps));
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070025
Stephen Warren2eba87a2014-04-22 14:37:57 -060026 pinmux_config_drvgrp_table(venice2_drvgrps,
27 ARRAY_SIZE(venice2_drvgrps));
Tom Warrenf7dc4ac2014-01-24 12:46:18 -070028}