paz00.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved.
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0
  8. */
  9. #include <common.h>
  10. #include <asm/io.h>
  11. #include <asm/arch/tegra.h>
  12. #include <asm/arch/pinmux.h>
  13. #include <asm/gpio.h>
  14. #ifdef CONFIG_TEGRA_MMC
  15. /*
  16. * Routine: pin_mux_mmc
  17. * Description: setup the pin muxes/tristate values for the SDMMC(s)
  18. */
  19. void pin_mux_mmc(void)
  20. {
  21. /* SDMMC4: config 3, x8 on 2nd set of pins */
  22. pinmux_set_func(PMUX_PINGRP_ATB, PMUX_FUNC_SDIO4);
  23. pinmux_set_func(PMUX_PINGRP_GMA, PMUX_FUNC_SDIO4);
  24. pinmux_set_func(PMUX_PINGRP_GME, PMUX_FUNC_SDIO4);
  25. pinmux_tristate_disable(PMUX_PINGRP_ATB);
  26. pinmux_tristate_disable(PMUX_PINGRP_GMA);
  27. pinmux_tristate_disable(PMUX_PINGRP_GME);
  28. /* SDIO1: SDIO1_CLK, SDIO1_CMD, SDIO1_DAT[3:0] */
  29. pinmux_set_func(PMUX_PINGRP_SDIO1, PMUX_FUNC_SDIO1);
  30. pinmux_tristate_disable(PMUX_PINGRP_SDIO1);
  31. /* For power GPIO PV1 */
  32. pinmux_tristate_disable(PMUX_PINGRP_UAC);
  33. /* For CD GPIO PV5 */
  34. pinmux_tristate_disable(PMUX_PINGRP_GPV);
  35. }
  36. #endif
  37. #ifdef CONFIG_DM_VIDEO
  38. /* this is a weak define that we are overriding */
  39. void pin_mux_display(void)
  40. {
  41. debug("init display pinmux\n");
  42. /* EN_VDD_PANEL GPIO A4 */
  43. pinmux_tristate_disable(PMUX_PINGRP_DAP2);
  44. }
  45. #endif