mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Stephen Warren](/assets/img/avatar_default.png)
This re-imports the entire Venice2 pinmux data from the board's master spreadsheet, and makes use of the new IO clamping GPIO initialization table features. This makes the board port fully compliant with the required HW-defined pinmux initialization sequence. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
30 lines
627 B
C
30 lines
627 B
C
/*
|
|
* (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 "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));
|
|
}
|