board-pinmux.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. */
  14. #ifndef __MACH_TEGRA_BOARD_PINMUX_H
  15. #define __MACH_TEGRA_BOARD_PINMUX_H
  16. #define GPIO_DEV "tegra-gpio"
  17. #define PINMUX_DEV "tegra-pinmux"
  18. struct tegra_pingroup_config;
  19. struct tegra_gpio_table;
  20. struct tegra_board_pinmux_conf {
  21. struct tegra_pingroup_config *pgs;
  22. int pg_count;
  23. struct tegra_drive_pingroup_config *drives;
  24. int drive_count;
  25. struct tegra_gpio_table *gpios;
  26. int gpio_count;
  27. };
  28. void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a,
  29. struct tegra_board_pinmux_conf *conf_b);
  30. #endif