2 * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
4 * SPDX-License-Identifier: GPL-2.0
7 /* Tegra30 high-level function multiplexing */
10 #include <asm/arch/clock.h>
11 #include <asm/arch/funcmux.h>
12 #include <asm/arch/pinmux.h>
14 int funcmux_select(enum periph_id id, int config)
16 int bad_config = config != FUNCMUX_DEFAULT;
21 case FUNCMUX_UART1_ULPI:
22 pinmux_set_func(PMUX_PINGRP_ULPI_DATA0_PO1,
24 pinmux_set_func(PMUX_PINGRP_ULPI_DATA1_PO2,
26 pinmux_set_func(PMUX_PINGRP_ULPI_DATA2_PO3,
28 pinmux_set_func(PMUX_PINGRP_ULPI_DATA3_PO4,
30 pinmux_tristate_disable(PMUX_PINGRP_ULPI_DATA0_PO1);
31 pinmux_tristate_disable(PMUX_PINGRP_ULPI_DATA1_PO2);
32 pinmux_tristate_disable(PMUX_PINGRP_ULPI_DATA2_PO3);
33 pinmux_tristate_disable(PMUX_PINGRP_ULPI_DATA3_PO4);
38 /* Add other periph IDs here as needed */
41 debug("%s: invalid periph_id %d", __func__, id);
46 debug("%s: invalid config %d for periph_id %d", __func__,