2014-01-24 19:46:18 +00:00
|
|
|
/*
|
|
|
|
* (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)
|
|
|
|
{
|
2014-03-21 18:28:56 +00:00
|
|
|
pinmux_config_pingrp_table(tegra124_pinmux_set_nontristate,
|
|
|
|
ARRAY_SIZE(tegra124_pinmux_set_nontristate));
|
2014-01-24 19:46:18 +00:00
|
|
|
|
2014-03-21 18:28:56 +00:00
|
|
|
pinmux_config_pingrp_table(tegra124_pinmux_common,
|
|
|
|
ARRAY_SIZE(tegra124_pinmux_common));
|
2014-01-24 19:46:18 +00:00
|
|
|
|
2014-03-21 18:28:56 +00:00
|
|
|
pinmux_config_pingrp_table(unused_pins_lowpower,
|
|
|
|
ARRAY_SIZE(unused_pins_lowpower));
|
2014-01-24 19:46:18 +00:00
|
|
|
|
|
|
|
/* Initialize any non-default pad configs (APB_MISC_GP regs) */
|
2014-03-21 18:28:56 +00:00
|
|
|
pinmux_config_drvgrp_table(venice2_padctrl,
|
|
|
|
ARRAY_SIZE(venice2_padctrl));
|
2014-01-24 19:46:18 +00:00
|
|
|
}
|