1 /*
2  * Copyright (c) 2010-2012, NVIDIA CORPORATION.  All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 /* Tegra high-level function multiplexing */
18 
19 #ifndef _TEGRA_FUNCMUX_H_
20 #define _TEGRA_FUNCMUX_H_
21 
22 /**
23  * Select a config for a particular peripheral.
24  *
25  * Each peripheral can operate through a number of configurations,
26  * which are sets of pins that it uses to bring out its signals.
27  * The basic config is 0, and higher numbers indicate different
28  * pinmux settings to bring the peripheral out on other pins,
29  *
30  * This function also disables tristate for the function's pins,
31  * so that they operate in normal mode.
32  *
33  * @param id		Peripheral id
34  * @param config	Configuration to use (FUNCMUX_...), 0 for default
35  * @return 0 if ok, -1 on error (e.g. incorrect id or config)
36  */
37 int funcmux_select(enum periph_id id, int config);
38 
39 #endif	/* _TEGRA_FUNCMUX_H_ */
40