preliminaryDataProcessing.c 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * linux/arch/arm/mach-omap1/mux.c
  3. *
  4. * OMAP1 pin multiplexing configurations
  5. *
  6. * Copyright (C) 2003 - 2008 Nokia Corporation
  7. *
  8. * Written by Tony Lindgren
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. *
  24. */
  25. #include <linux/module.h>
  26. #include <linux/init.h>
  27. #include <linux/io.h>
  28. #include <linux/spinlock.h>
  29. #include <mach/hardware.h>
  30. #include <mach/mux.h>
  31. #ifdef CONFIG_OMAP_MUX
  32. static struct omap_mux_cfg arch_mux_cfg;
  33. #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850)
  34. static struct pin_config __initdata_or_module omap7xx_pins[] = {
  35. MUX_CFG_7XX("E2_7XX_KBR0", 12, 21, 0, 20, 1, 0)
  36. MUX_CFG_7XX("J7_7XX_KBR1", 12, 25, 0, 24, 1, 0)
  37. MUX_CFG_7XX("E1_7XX_KBR2", 12, 29, 0, 28, 1, 0)
  38. MUX_CFG_7XX("F3_7XX_KBR3", 13, 1, 0, 0, 1, 0)
  39. MUX_CFG_7XX("D2_7XX_KBR4", 13, 5, 0, 4, 1, 0)
  40. MUX_CFG_7XX("C2_7XX_KBC0", 13, 9, 0, 8, 1, 0)
  41. MUX_CFG_7XX("D3_7XX_KBC1", 13, 13, 0, 12, 1, 0)
  42. MUX_CFG_7XX("E4_7XX_KBC2", 13, 17, 0, 16, 1, 0)
  43. MUX_CFG_7XX("F4_7XX_KBC3", 13, 21, 0, 20, 1, 0)
  44. MUX_CFG_7XX("E3_7XX_KBC4", 13, 25, 0, 24, 1, 0)
  45. MUX_CFG_7XX("AA17_7XX_USB_DM", 2, 21, 0, 20, 0, 0)
  46. MUX_CFG_7XX("W16_7XX_USB_PU_EN", 2, 25, 0, 24, 0, 0)
  47. MUX_CFG_7XX("W17_7XX_USB_VBUSI", 2, 29, 6, 28, 1, 0)
  48. MUX_CFG_7XX("W18_7XX_USB_DMCK_OUT",3, 3, 1, 2, 0, 0)
  49. MUX_CFG_7XX("W19_7XX_USB_DCRST", 3, 7, 1, 6, 0, 0)
  50. /* MMC Pins */
  51. MUX_CFG_7XX("MMC_7XX_CMD", 2, 9, 0, 8, 1, 0)
  52. MUX_CFG_7XX("MMC_7XX_CLK", 2, 13, 0, 12, 1, 0)
  53. MUX_CFG_7XX("MMC_7XX_DAT0", 2, 17, 0, 16, 1, 0)
  54. /* I2C interface */
  55. MUX_CFG_7XX("I2C_7XX_SCL", 5, 1, 0, 0, 1, 0)
  56. MUX_CFG_7XX("I2C_7XX_SDA", 5, 5, 0, 0, 1, 0)
  57. /* SPI pins */
  58. MUX_CFG_7XX("SPI_7XX_1", 6, 5, 4, 4, 1, 0)
  59. MUX_CFG_7XX("SPI_7XX_2", 6, 9, 4, 8, 1, 0)
  60. MUX_CFG_7XX("SPI_7XX_3", 6, 13, 4, 12, 1, 0)
  61. MUX_CFG_7XX("SPI_7XX_4", 6, 17, 4, 16, 1, 0)
  62. MUX_CFG_7XX("SPI_7XX_5", 8, 25, 0, 24, 0, 0)
  63. MUX_CFG_7XX("SPI_7XX_6", 9, 5, 0, 4, 0, 0)
  64. /* UART pins */
  65. MUX_CFG_7XX("UART_7XX_1", 3, 21, 0, 20, 0, 0)
  66. MUX_CFG_7XX("UART_7XX_2", 8, 1, 6, 0, 0, 0)