mux.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * mux.c
  3. *
  4. * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation version 2.
  9. *
  10. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  11. * kind, whether express or implied; without even the implied warranty
  12. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <common.h>
  16. #include <asm/arch/mux.h>
  17. #include <asm/arch/hardware.h>
  18. #include <asm/io.h>
  19. /*
  20. * Configure the pin mux for the module
  21. */
  22. void configure_module_pin_mux(struct module_pin_mux *mod_pin_mux)
  23. {
  24. int i;
  25. if (!mod_pin_mux)
  26. return;
  27. for (i = 0; mod_pin_mux[i].reg_offset != -1; i++)
  28. MUX_CFG(mod_pin_mux[i].val, mod_pin_mux[i].reg_offset);
  29. }
  30. /*
  31. * provide a default over-writable definition
  32. */
  33. void __weak set_uart_mux_conf(void)
  34. {
  35. }
  36. /*
  37. * provide a default over-writable definition
  38. */
  39. void __weak set_mux_conf_regs(void)
  40. {
  41. }