gpio-bank-q.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-q.h
  2. *
  3. * Copyright 2008 Openmoko, Inc.
  4. * Copyright 2008 Simtec Electronics
  5. * Ben Dooks <ben@simtec.co.uk>
  6. * http://armlinux.simtec.co.uk/
  7. *
  8. * GPIO Bank Q register and configuration definitions
  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 version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #define S3C64XX_GPQCON (S3C64XX_GPQ_BASE + 0x00)
  15. #define S3C64XX_GPQDAT (S3C64XX_GPQ_BASE + 0x04)
  16. #define S3C64XX_GPQPUD (S3C64XX_GPQ_BASE + 0x08)
  17. #define S3C64XX_GPQCONSLP (S3C64XX_GPQ_BASE + 0x0c)
  18. #define S3C64XX_GPQPUDSLP (S3C64XX_GPQ_BASE + 0x10)
  19. #define S3C64XX_GPQ_CONMASK(__gpio) (0x3 << ((__gpio) * 2))
  20. #define S3C64XX_GPQ_INPUT(__gpio) (0x0 << ((__gpio) * 2))
  21. #define S3C64XX_GPQ_OUTPUT(__gpio) (0x1 << ((__gpio) * 2))
  22. #define S3C64XX_GPQ0_MEM0_ADDR18_RAS (0x02 << 0)
  23. #define S3C64XX_GPQ0_EINT_G9_0 (0x03 << 0)
  24. #define S3C64XX_GPQ1_MEM0_ADDR19_CAS (0x02 << 2)
  25. #define S3C64XX_GPQ1_EINT_G9_1 (0x03 << 2)
  26. #define S3C64XX_GPQ2_EINT_G9_2 (0x03 << 4)
  27. #define S3C64XX_GPQ3_EINT_G9_3 (0x03 << 6)
  28. #define S3C64XX_GPQ4_EINT_G9_4 (0x03 << 8)
  29. #define S3C64XX_GPQ5_EINT_G9_5 (0x03 << 10)
  30. #define S3C64XX_GPQ6_EINT_G9_6 (0x03 << 12)
  31. #define S3C64XX_GPQ7_MEM0_ADDR17_WENDMC (0x02 << 14)
  32. #define S3C64XX_GPQ7_EINT_G9_7 (0x03 << 14)
  33. #define S3C64XX_GPQ8_MEM0_ADDR16_APDMC (0x02 << 16)
  34. #define S3C64XX_GPQ8_EINT_G9_8 (0x03 << 16)