gpio-bank-e.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-e.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 E 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_GPECON (S3C64XX_GPE_BASE + 0x00)
  15. #define S3C64XX_GPEDAT (S3C64XX_GPE_BASE + 0x04)
  16. #define S3C64XX_GPEPUD (S3C64XX_GPE_BASE + 0x08)
  17. #define S3C64XX_GPECONSLP (S3C64XX_GPE_BASE + 0x0c)
  18. #define S3C64XX_GPEPUDSLP (S3C64XX_GPE_BASE + 0x10)
  19. #define S3C64XX_GPE_CONMASK(__gpio) (0xf << ((__gpio) * 4))
  20. #define S3C64XX_GPE_INPUT(__gpio) (0x0 << ((__gpio) * 4))
  21. #define S3C64XX_GPE_OUTPUT(__gpio) (0x1 << ((__gpio) * 4))
  22. #define S3C64XX_GPE0_PCM1_SCLK (0x02 << 0)
  23. #define S3C64XX_GPE0_I2S1_CLK (0x03 << 0)
  24. #define S3C64XX_GPE0_AC97_BITCLK (0x04 << 0)
  25. #define S3C64XX_GPE1_PCM1_EXTCLK (0x02 << 4)
  26. #define S3C64XX_GPE1_I2S1_CDCLK (0x03 << 4)
  27. #define S3C64XX_GPE1_AC97_nRESET (0x04 << 4)
  28. #define S3C64XX_GPE2_PCM1_FSYNC (0x02 << 8)
  29. #define S3C64XX_GPE2_I2S1_LRCLK (0x03 << 8)
  30. #define S3C64XX_GPE2_AC97_SYNC (0x04 << 8)
  31. #define S3C64XX_GPE3_PCM1_SIN (0x02 << 12)
  32. #define S3C64XX_GPE3_I2S1_DI (0x03 << 12)
  33. #define S3C64XX_GPE3_AC97_SDI (0x04 << 12)
  34. #define S3C64XX_GPE4_PCM1_SOUT (0x02 << 16)
  35. #define S3C64XX_GPE4_I2S1_D0 (0x03 << 16)
  36. #define S3C64XX_GPE4_AC97_SDO (0x04 << 16)