funcmux.h 884 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0
  5. */
  6. /* Tegra high-level function multiplexing */
  7. #ifndef _TEGRA_FUNCMUX_H_
  8. #define _TEGRA_FUNCMUX_H_
  9. /**
  10. * Select a config for a particular peripheral.
  11. *
  12. * Each peripheral can operate through a number of configurations,
  13. * which are sets of pins that it uses to bring out its signals.
  14. * The basic config is 0, and higher numbers indicate different
  15. * pinmux settings to bring the peripheral out on other pins,
  16. *
  17. * This function also disables tristate for the function's pins,
  18. * so that they operate in normal mode.
  19. *
  20. * @param id Peripheral id
  21. * @param config Configuration to use (FUNCMUX_...), 0 for default
  22. * @return 0 if ok, -1 on error (e.g. incorrect id or config)
  23. */
  24. int funcmux_select(enum periph_id id, int config);
  25. #endif /* _TEGRA_FUNCMUX_H_ */