colibri_t20_iris.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) 2012 Lucas Stach
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #include <common.h>
  16. #include <asm/gpio.h>
  17. #include <asm/arch/clock.h>
  18. #include <asm/arch/funcmux.h>
  19. #include <asm/arch/pinmux.h>
  20. #include <asm/arch-tegra/board.h>
  21. #include <asm/arch-tegra/mmc.h>
  22. #include "../colibri_t20-common/colibri_t20-common.h"
  23. #ifdef CONFIG_USB_EHCI_TEGRA
  24. void pin_mux_usb(void)
  25. {
  26. colibri_t20_common_pin_mux_usb();
  27. /* USB 1 aka Tegra USB port 3 VBus*/
  28. pinmux_tristate_disable(PINGRP_SPIG);
  29. }
  30. #endif
  31. #ifdef CONFIG_TEGRA_MMC
  32. int board_mmc_init(bd_t *bd)
  33. {
  34. funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_4_BIT);
  35. pinmux_tristate_disable(PINGRP_GMB);
  36. tegra_mmc_init(0, 4, -1, GPIO_PC7);
  37. return 0;
  38. }
  39. #endif