blob: d89bbe5ecce2f828e266242d7327c79fff9ca970 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Tom Warren15fc9842014-01-24 12:46:18 -07002/*
3 * (C) Copyright 2013-2014
4 * NVIDIA Corporation <www.nvidia.com>
Tom Warren15fc9842014-01-24 12:46:18 -07005 */
6
7#include <common.h>
Tom Warren15fc9842014-01-24 12:46:18 -07008#include <asm/arch/gpio.h>
Tom Warren15fc9842014-01-24 12:46:18 -07009#include <asm/arch/pinmux.h>
10#include "pinmux-config-venice2.h"
Tom Warren15fc9842014-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 Warren89b19c42014-04-22 14:37:57 -060018 pinmux_set_tristate_input_clamping();
Tom Warren15fc9842014-01-24 12:46:18 -070019
Stephen Warren89b19c42014-04-22 14:37:57 -060020 gpio_config_table(venice2_gpio_inits,
21 ARRAY_SIZE(venice2_gpio_inits));
Tom Warren15fc9842014-01-24 12:46:18 -070022
Stephen Warren89b19c42014-04-22 14:37:57 -060023 pinmux_config_pingrp_table(venice2_pingrps,
24 ARRAY_SIZE(venice2_pingrps));
Tom Warren15fc9842014-01-24 12:46:18 -070025
Stephen Warren89b19c42014-04-22 14:37:57 -060026 pinmux_config_drvgrp_table(venice2_drvgrps,
27 ARRAY_SIZE(venice2_drvgrps));
Tom Warren15fc9842014-01-24 12:46:18 -070028}