board-ams-delta.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * arch/arm/plat-omap/include/mach/board-ams-delta.h
  3. *
  4. * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  12. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  14. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  15. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  16. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  18. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  19. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  20. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  21. *
  22. * You should have received a copy of the GNU General Public License along
  23. * with this program; if not, write to the Free Software Foundation, Inc.,
  24. * 675 Mass Ave, Cambridge, MA 02139, USA.
  25. */
  26. #ifndef __ASM_ARCH_OMAP_AMS_DELTA_H
  27. #define __ASM_ARCH_OMAP_AMS_DELTA_H
  28. #if defined (CONFIG_MACH_AMS_DELTA)
  29. #define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400
  30. #define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800
  31. #define AMS_DELTA_LATCH2_MODEM_CODEC 0x2000
  32. #define AMS_DELTA_GPIO_PIN_KEYBRD_DATA 0
  33. #define AMS_DELTA_GPIO_PIN_KEYBRD_CLK 1
  34. #define AMS_DELTA_GPIO_PIN_MODEM_IRQ 2
  35. #define AMS_DELTA_GPIO_PIN_HOOK_SWITCH 4
  36. #define AMS_DELTA_GPIO_PIN_SCARD_NOFF 6
  37. #define AMS_DELTA_GPIO_PIN_SCARD_IO 7
  38. #define AMS_DELTA_GPIO_PIN_CONFIG 11
  39. #define AMS_DELTA_GPIO_PIN_NAND_RB 12
  40. #define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240
  41. #define AMS_DELTA_GPIO_PIN_LCD_NDISP 241
  42. #define AMS_DELTA_GPIO_PIN_NAND_NCE 242
  43. #define AMS_DELTA_GPIO_PIN_NAND_NRE 243
  44. #define AMS_DELTA_GPIO_PIN_NAND_NWP 244
  45. #define AMS_DELTA_GPIO_PIN_NAND_NWE 245
  46. #define AMS_DELTA_GPIO_PIN_NAND_ALE 246
  47. #define AMS_DELTA_GPIO_PIN_NAND_CLE 247
  48. #define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248
  49. #define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249
  50. #define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250
  51. #define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251
  52. #define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252
  53. #define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253
  54. #define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN
  55. #define AMS_DELTA_LATCH2_NGPIO 16
  56. #ifndef __ASSEMBLY__
  57. void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value);
  58. #define ams_delta_latch2_write(mask, value) \
  59. ams_delta_latch_write(AMS_DELTA_LATCH2_GPIO_BASE, \
  60. AMS_DELTA_LATCH2_NGPIO, (mask), (value))
  61. #endif
  62. #endif /* CONFIG_MACH_AMS_DELTA */
  63. #endif /* __ASM_ARCH_OMAP_AMS_DELTA_H */