rtuSprayTerminalCorrelationCalculation.c 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. * Hardware definitions for Voipac PXA270
  3. *
  4. * Copyright (C) 2010
  5. * Marek Vasut <marek.vasut@gmail.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. */
  12. #include <linux/platform_device.h>
  13. #include <linux/delay.h>
  14. #include <linux/irq.h>
  15. #include <linux/gpio_keys.h>
  16. #include <linux/input.h>
  17. #include <linux/gpio.h>
  18. #include <linux/usb/gpio_vbus.h>
  19. #include <linux/mtd/mtd.h>
  20. #include <linux/mtd/partitions.h>
  21. #include <linux/mtd/physmap.h>
  22. #include <linux/mtd/onenand.h>
  23. #include <linux/dm9000.h>
  24. #include <linux/ucb1400.h>
  25. #include <linux/ata_platform.h>
  26. #include <linux/regulator/max1586.h>
  27. #include <linux/i2c/pxa-i2c.h>
  28. #include <asm/mach-types.h>
  29. #include <asm/mach/arch.h>
  30. #include <mach/pxa27x.h>
  31. #include <mach/audio.h>
  32. #include <mach/vpac270.h>
  33. #include <linux/platform_data/mmc-pxamci.h>
  34. #include <linux/platform_data/video-pxafb.h>
  35. #include <linux/platform_data/usb-ohci-pxa27x.h>
  36. #include <mach/pxa27x-udc.h>
  37. #include <mach/udc.h>
  38. #include <linux/platform_data/ata-pxa.h>
  39. #include "generic.h"
  40. #include "devices.h"
  41. /******************************************************************************
  42. * Pin configuration
  43. ******************************************************************************/
  44. static unsigned long vpac270_pin_config[] __initdata = {
  45. /* MMC */
  46. GPIO32_MMC_CLK,
  47. GPIO92_MMC_DAT_0,
  48. GPIO109_MMC_DAT_1,
  49. GPIO110_MMC_DAT_2,
  50. GPIO111_MMC_DAT_3,
  51. GPIO112_MMC_CMD,
  52. GPIO53_GPIO, /* SD detect */
  53. GPIO52_GPIO, /* SD r/o switch */
  54. /* GPIO KEYS */
  55. GPIO1_GPIO, /* USER BTN */
  56. /* LEDs */
  57. GPIO15_GPIO, /* orange led */
  58. /* FFUART */
  59. GPIO34_FFUART_RXD,
  60. GPIO39_FFUART_TXD,
  61. GPIO27_FFUART_RTS,
  62. GPIO100_FFUART_CTS,
  63. GPIO33_FFUART_DSR,
  64. GPIO40_FFUART_DTR,
  65. GPIO10_FFUART_DCD,
  66. GPIO38_FFUART_RI,
  67. /* LCD */
  68. GPIO58_LCD_LDD_0,
  69. GPIO59_LCD_LDD_1,
  70. GPIO60_LCD_LDD_2,
  71. GPIO61_LCD_LDD_3,
  72. GPIO62_LCD_LDD_4,
  73. GPIO63_LCD_LDD_5,
  74. GPIO64_LCD_LDD_6,
  75. GPIO65_LCD_LDD_7,
  76. GPIO66_LCD_LDD_8,
  77. GPIO67_LCD_LDD_9,
  78. GPIO68_LCD_LDD_10,
  79. GPIO69_LCD_LDD_11,
  80. GPIO70_LCD_LDD_12,
  81. GPIO71_LCD_LDD_13,
  82. GPIO72_LCD_LDD_14,
  83. GPIO73_LCD_LDD_15,
  84. GPIO86_LCD_LDD_16,
  85. GPIO87_LCD_LDD_17,
  86. GPIO74_LCD_FCLK,
  87. GPIO75_LCD_LCLK,
  88. GPIO76_LCD_PCLK,
  89. GPIO77_LCD_BIAS,
  90. /* PCMCIA */
  91. GPIO48_nPOE,
  92. GPIO49_nPWE,
  93. GPIO50_nPIOR,
  94. GPIO51_nPIOW,
  95. GPIO85_nPCE_1,
  96. GPIO54_nPCE_2,
  97. GPIO55_nPREG,
  98. GPIO57_nIOIS16,
  99. GPIO56_nPWAIT,
  100. GPIO104_PSKTSEL,
  101. GPIO84_GPIO, /* PCMCIA CD */
  102. GPIO35_GPIO, /* PCMCIA RDY */
  103. GPIO107_GPIO, /* PCMCIA PPEN */
  104. GPIO11_GPIO, /* PCMCIA RESET */
  105. GPIO17_GPIO, /* CF CD */
  106. GPIO12_GPIO, /* CF RDY */
  107. GPIO16_GPIO, /* CF RESET */
  108. /* UHC */
  109. GPIO88_USBH1_PWR,
  110. GPIO89_USBH1_PEN,
  111. GPIO119_USBH2_PWR,
  112. GPIO120_USBH2_PEN,
  113. /* UDC */
  114. GPIO41_GPIO,
  115. /* Ethernet */
  116. GPIO114_GPIO, /* IRQ */
  117. /* AC97 */
  118. GPIO28_AC97_BITCLK,