mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-05 02:38:20 +00:00
3e215d0a19
Recent pinctrl discussions concluded that gpiolib APIs should in fact do whatever is required to mux a GPIO onto pins, by calling pinctrl APIs if required. This change implements this for the Tegra GPIO driver, and removes calls to the Tegra-specific APIs from drivers and board files. Cc: Chris Ball <cjb@laptop.org> Cc: linux-mmc@vger.kernel.org Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Chris Ball <cjb@laptop.org> # for sdhci-tegra.c Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Olof Johansson <olof@lixom.net>
34 lines
951 B
C
34 lines
951 B
C
/*
|
|
* Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __MACH_TEGRA_BOARD_PINMUX_H
|
|
#define __MACH_TEGRA_BOARD_PINMUX_H
|
|
|
|
#define PINMUX_DEV "tegra-pinmux"
|
|
|
|
struct tegra_pingroup_config;
|
|
|
|
struct tegra_board_pinmux_conf {
|
|
struct tegra_pingroup_config *pgs;
|
|
int pg_count;
|
|
|
|
struct tegra_drive_pingroup_config *drives;
|
|
int drive_count;
|
|
};
|
|
|
|
void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a,
|
|
struct tegra_board_pinmux_conf *conf_b);
|
|
|
|
#endif
|