regs-gpioj.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* arch/arm/mach-s3c2410/include/mach/regs-gpioj.h
  2. *
  3. * Copyright (c) 2004 Simtec Electronics <linux@simtec.co.uk>
  4. * http://www.simtec.co.uk/products/SWLINUX/
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * S3C2440 GPIO J register definitions
  11. */
  12. #ifndef __ASM_ARCH_REGS_GPIOJ_H
  13. #define __ASM_ARCH_REGS_GPIOJ_H "gpioj"
  14. /* Port J consists of 13 GPIO/Camera pins
  15. *
  16. * GPJCON has 2 bits for each of the input pins on port F
  17. * 00 = 0 input, 1 output, 2 Camera
  18. *
  19. * pull up works like all other ports.
  20. */
  21. #define S3C2413_GPJCON S3C2410_GPIOREG(0x80)
  22. #define S3C2413_GPJDAT S3C2410_GPIOREG(0x84)
  23. #define S3C2413_GPJUP S3C2410_GPIOREG(0x88)
  24. #define S3C2413_GPJSLPCON S3C2410_GPIOREG(0x8C)
  25. #define S3C2440_GPJ0_OUTP (0x01 << 0)
  26. #define S3C2440_GPJ0_CAMDATA0 (0x02 << 0)
  27. #define S3C2440_GPJ1_OUTP (0x01 << 2)
  28. #define S3C2440_GPJ1_CAMDATA1 (0x02 << 2)
  29. #define S3C2440_GPJ2_OUTP (0x01 << 4)
  30. #define S3C2440_GPJ2_CAMDATA2 (0x02 << 4)
  31. #define S3C2440_GPJ3_OUTP (0x01 << 6)
  32. #define S3C2440_GPJ3_CAMDATA3 (0x02 << 6)
  33. #define S3C2440_GPJ4_OUTP (0x01 << 8)
  34. #define S3C2440_GPJ4_CAMDATA4 (0x02 << 8)
  35. #define S3C2440_GPJ5_OUTP (0x01 << 10)
  36. #define S3C2440_GPJ5_CAMDATA5 (0x02 << 10)
  37. #define S3C2440_GPJ6_OUTP (0x01 << 12)
  38. #define S3C2440_GPJ6_CAMDATA6 (0x02 << 12)
  39. #define S3C2440_GPJ7_OUTP (0x01 << 14)
  40. #define S3C2440_GPJ7_CAMDATA7 (0x02 << 14)
  41. #define S3C2440_GPJ8_OUTP (0x01 << 16)
  42. #define S3C2440_GPJ8_CAMPCLK (0x02 << 16)
  43. #define S3C2440_GPJ9_OUTP (0x01 << 18)
  44. #define S3C2440_GPJ9_CAMVSYNC (0x02 << 18)
  45. #define S3C2440_GPJ10_OUTP (0x01 << 20)
  46. #define S3C2440_GPJ10_CAMHREF (0x02 << 20)
  47. #define S3C2440_GPJ11_OUTP (0x01 << 22)
  48. #define S3C2440_GPJ11_CAMCLKOUT (0x02 << 22)
  49. #define S3C2440_GPJ12_OUTP (0x01 << 24)
  50. #define S3C2440_GPJ12_CAMRESET (0x02 << 24)
  51. #endif /* __ASM_ARCH_REGS_GPIOJ_H */